|
|
@ -337,7 +337,7 @@ just like `android:scaleType="centerCrop"` on an `ImageView`. |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
This means that part of the preview is hidden, and the image output will contain parts of the scene |
|
|
|
This means that part of the preview is hidden, and the image output will contain parts of the scene |
|
|
|
that were not visible during the capture. If this is a problem, see [cameraCropOutput](#cameracropoutput). |
|
|
|
that were not visible during the capture. |
|
|
|
|
|
|
|
|
|
|
|
### Picture Size |
|
|
|
### Picture Size |
|
|
|
|
|
|
|
|
|
|
@ -409,7 +409,6 @@ Most camera parameters can be controlled through XML attributes or linked method |
|
|
|
app:cameraFlash="off" |
|
|
|
app:cameraFlash="off" |
|
|
|
app:cameraGrid="off" |
|
|
|
app:cameraGrid="off" |
|
|
|
app:cameraSessionType="picture" |
|
|
|
app:cameraSessionType="picture" |
|
|
|
app:cameraCropOutput="false" |
|
|
|
|
|
|
|
app:cameraVideoQuality="max480p" |
|
|
|
app:cameraVideoQuality="max480p" |
|
|
|
app:cameraVideoCodec="deviceDefault" |
|
|
|
app:cameraVideoCodec="deviceDefault" |
|
|
|
app:cameraWhiteBalance="auto" |
|
|
|
app:cameraWhiteBalance="auto" |
|
|
@ -426,7 +425,6 @@ Most camera parameters can be controlled through XML attributes or linked method |
|
|
|
|[`cameraFacing`](#camerafacing)|`setFacing()`|`back` `front`|`back`| |
|
|
|
|[`cameraFacing`](#camerafacing)|`setFacing()`|`back` `front`|`back`| |
|
|
|
|[`cameraFlash`](#cameraflash)|`setFlash()`|`off` `on` `auto` `torch`|`off`| |
|
|
|
|[`cameraFlash`](#cameraflash)|`setFlash()`|`off` `on` `auto` `torch`|`off`| |
|
|
|
|[`cameraGrid`](#cameragrid)|`setGrid()`|`off` `draw3x3` `draw4x4` `drawPhi`|`off`| |
|
|
|
|[`cameraGrid`](#cameragrid)|`setGrid()`|`off` `draw3x3` `draw4x4` `drawPhi`|`off`| |
|
|
|
|[`cameraCropOutput`](#cameracropoutput)|`setCropOutput()`|`true` `false`|`false`| |
|
|
|
|
|
|
|
|[`cameraVideoQuality`](#cameravideoquality)|`setVideoQuality()`|`lowest` `highest` `maxQvga` `max480p` `max720p` `max1080p` `max2160p`|`max480p`| |
|
|
|
|[`cameraVideoQuality`](#cameravideoquality)|`setVideoQuality()`|`lowest` `highest` `maxQvga` `max480p` `max720p` `max1080p` `max2160p`|`max480p`| |
|
|
|
|[`cameraVideoCodec`](#cameravideocodec)|`setVideoCodec()`|`deviceDefault` `h263` `h264`|`deviceDefault`| |
|
|
|
|[`cameraVideoCodec`](#cameravideocodec)|`setVideoCodec()`|`deviceDefault` `h263` `h264`|`deviceDefault`| |
|
|
|
|[`cameraWhiteBalance`](#camerawhitebalance)|`setWhiteBalance()`|`auto` `incandescent` `fluorescent` `daylight` `cloudy`|`auto`| |
|
|
|
|[`cameraWhiteBalance`](#camerawhitebalance)|`setWhiteBalance()`|`auto` `incandescent` `fluorescent` `daylight` `cloudy`|`auto`| |
|
|
@ -488,12 +486,6 @@ cameraView.setGrid(Grid.DRAW_4X4); |
|
|
|
cameraView.setGrid(Grid.DRAW_PHI); |
|
|
|
cameraView.setGrid(Grid.DRAW_PHI); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
#### cameraCropOutput |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Whether the output picture should be cropped to fit the aspect ratio of the preview surface. |
|
|
|
|
|
|
|
This can guarantee consistency between what the user sees and the final output, if you fixed |
|
|
|
|
|
|
|
the camera view dimensions. This does not support videos. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### cameraVideoQuality |
|
|
|
#### cameraVideoQuality |
|
|
|
|
|
|
|
|
|
|
|
Sets the desired video quality. |
|
|
|
Sets the desired video quality. |
|
|
|