//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

  
modifiera Composable Modifier.
picturea ScanPicture instance. Can be null to show nothing.
orientationan optional ScanOrientation instance. If it is missing, ScanPicture.orientation will be used.
cutouta ScanCutout instance that will be shown and edited.
paramsa CropImageParams to setup CropPicture
onPictureReadya callback function that called when the picture is ready to show.
onCutoutChangeda callback function that called when the cutout is changed by user.
Top