Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

Image to display with SubSamplingImage. Can be one of:

Link copied to clipboard
sealed interface SubSamplingImageState

State for SubSamplingImage.

Functions

Link copied to clipboard
Link copied to clipboard
fun rememberSubSamplingImageState(imageSource: SubSamplingImageSource, zoomableState: ZoomableState, imageOptions: ImageBitmapOptions = ImageBitmapOptions.Default, errorReporter: SubSamplingImageErrorReporter = SubSamplingImageErrorReporter.NoOpInRelease): SubSamplingImageState

Create a SubSamplingImageState that can be used with SubSamplingImage which uses Modifier.zoomable as its gesture detector.

Link copied to clipboard
fun SubSamplingImage(state: SubSamplingImageState, contentDescription: String?, modifier: Modifier = Modifier, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null)

An Image composable that can render large bitmaps by diving them into tiles so that they can be loaded lazily. This ensures that images maintain their intricate details even when fully zoomed in, without causing any OutOfMemory exceptions.