ZoomableImage

fun ZoomableImage(image: ImageBitmap, contentDescription: String, modifier: Modifier = Modifier, marker: Offset? = null, maxZoom: Float = DEFAULT_MAX_ZOOM, labels: ZoomableImageLabels = ZoomableImageLabels())

Shows image fitted to the space, for screenshots and previews. Zoom with the mouse wheel or the plus and minus keys when focused, drag to pan while zoomed, and double-click or press 0 to reset. marker, in image pixels, draws a ring where something happened, such as a tap. The zoom level is internal UI state; it resets when the image size changes while not zoomed. maxZoom must be finite and at least 1; lowering it clamps the current zoom.