//design/com.pixelnetica.design.crop/CropPicture
CropPicture
[androidJvm]\
@Composable
fun CropPicture(modifier: Modifier, picture: ScanPicture?, orientation: ScanOrientation? = null, cutout: ScanCutout? = null, params: CropImageParams = defaultCropImageParams( defaultZoomImageParams( PaddingValues(40.dp) ) ), onPictureReady: suspend (Boolean) -> Unit = { _ -> }, onCutoutChanged: (ScanCutout?) -> Unit)
A Composable to show a picture and edit a document cutout.
Parameters
androidJvm
modifier | a Composable Modifier. |
picture | a ScanPicture instance. Can be null to show nothing. |
orientation | an optional ScanOrientation instance. If it is missing, ScanPicture.orientation will be used. |
cutout | a ScanCutout instance that will be shown and edited. |
params | a CropImageParams to setup CropPicture |
onPictureReady | a callback function that called when the picture is ready to show. |
onCutoutChanged | a callback function that called when the cutout is changed by user. |