Class PhotoCaptureOptions
java.lang.Object
com.codename1.camera.PhotoCaptureOptions
Per-capture options for
CameraSession#takePhoto(PhotoCaptureOptions).
A builder; chain calls fluently.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride the destination file path (FileSystemStorage path).Configured destination FileSystemStorage path, ornullif the framework should pick a temp path.intRequested capture height, or0to use the camera default.intJPEG encoding quality 1-100.intgetWidth()Requested capture width, or0to use the camera default.jpegQuality(int q) JPEG encoding quality 1-100.size(int width, int height) Requested photo dimensions.
-
Constructor Details
-
PhotoCaptureOptions
public PhotoCaptureOptions()
-
-
Method Details
-
size
Requested photo dimensions.0(the default for either) means use the camera's default photo size. -
jpegQuality
JPEG encoding quality 1-100. Default 90. -
filePath
Override the destination file path (FileSystemStorage path). When unset, the framework saves to a temp file under the app home. -
getWidth
public int getWidth()Requested capture width, or0to use the camera default. -
getHeight
public int getHeight()Requested capture height, or0to use the camera default. -
getJpegQuality
public int getJpegQuality()JPEG encoding quality 1-100. -
getFilePath
Configured destination FileSystemStorage path, ornullif the framework should pick a temp path.
-