-
public final class SubSamplingImageStateKt
-
-
Method Summary
Modifier and Type Method Description final static SubSamplingImageStaterememberSubSamplingImageState(SubSamplingImageSource imageSource, ZoomableState zoomableState, ImageBitmapOptions imageOptions, SubSamplingImageErrorReporter errorReporter)Create a SubSamplingImageState that can be used with SubSamplingImage which uses me.saket.telephoto.zoomable. -
-
Method Detail
-
rememberSubSamplingImageState
final static SubSamplingImageState rememberSubSamplingImageState(SubSamplingImageSource imageSource, ZoomableState zoomableState, ImageBitmapOptions imageOptions, SubSamplingImageErrorReporter errorReporter)
Create a SubSamplingImageState that can be used with SubSamplingImage which uses me.saket.telephoto.zoomable.zoomable as its gesture detector.
val zoomableState = rememberZoomableState() val imageState = rememberSubSamplingImageState( zoomableState = zoomableState, imageSource = SubSamplingImageSource.asset("fox.jpg") ) SubSamplingImage( modifier = Modifier .fillMaxSize() .zoomable(zoomableState), state = imageState, contentDescription = …, )
-
-
-
-