//design/com.pixelnetica.design.view/ViewPicture

ViewPicture

[androidJvm]\

@Composable

fun ViewPicture(modifier: Modifier, picture: ScanPicture?, imageOrientation: ScanOrientation, scaleToFit: Boolean = true, pagerOrientation: Orientation? = null, params: ZoomImageParams = defaultZoomImageParams(PaddingValues(10.dp)), onPictureReady: suspend (Boolean) -> Unit = { _ -> })

A Composable to show the ScanPicture with zoom and pan.

Parameters

androidJvm

  
modifiera Compose Modifier.
picturethe picture to show
imageOrientationthe ScanOrientation for the picture.
scaleToFitdisable any zoom and pan.
pagerOrientationintegration with a androidx.compose.foundation.pager.Pager
paramsthe ZoomImageParams to configure ViewPicture
onPictureReadya callback function that called when the picture is ready to show.
Top