-
- All Implemented Interfaces:
-
java.lang.Cloneable
public class CameraPreviewConfig implements Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description public final static intDEFAULT_ROTATIONpublic final static intDEFAULT_MIRROR
-
Method Summary
Modifier and Type Method Description CameraPreviewConfigsetRotation(int rotation)Sets the clockwise rotation angle in degrees relative to theorientation of the camera. intgetRotation()CameraPreviewConfigsetMirror(int mirror)Sets the mirror mode of the camera. intgetMirror()-
-
Method Detail
-
setRotation
CameraPreviewConfig setRotation(int rotation)
Sets the clockwise rotation angle in degrees relative to theorientation of the camera. This affects the pictures returned fromImageCapture and mp4 returned from VideoCapture.
- Parameters:
rotation- The rotation angle in degrees relative to theorientation of the camera.
-
getRotation
int getRotation()
-
setMirror
CameraPreviewConfig setMirror(int mirror)
Sets the mirror mode of the camera. This affects the pictures returned fromImageCapture and mp4 returned from VideoCapture.
-
getMirror
int getMirror()
-
-
-
-