//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
modifier | a Compose Modifier. |
picture | the picture to show |
imageOrientation | the ScanOrientation for the picture. |
scaleToFit | disable any zoom and pan. |
pagerOrientation | integration with a androidx.compose.foundation.pager.Pager |
params | the ZoomImageParams to configure ViewPicture |
onPictureReady | a callback function that called when the picture is ready to show. |