StickyImage

fun StickyImage(modifier: Modifier = Modifier, property: PainterImageProperty, image: PainterImageItem, onStickyMoved: (Offset) -> Unit, onZoomChanged: (String, Float, Offset) -> Unit, onDeleteSticky: (PainterImageItem) -> Unit)

A composable function that represents a sticky image, which can be moved, zoomed, or deleted. This function displays an image using the provided PainterImageProperty and PainterImageItem.

Parameters

modifier

The modifier to be applied to the sticky image.

property

The properties related to the painter image, including size, color, alignment, etc.

image

The painter image item containing the actual image data.

onStickyMoved

A callback invoked when the sticky image is moved. It provides the new offset.

onZoomChanged

A callback invoked when the zoom level changes. It provides the image ID, scale factor, and offset.

onDeleteSticky

A callback invoked when the sticky image is deleted.


fun StickyImage(modifier: Modifier = Modifier, property: VectorImageProperty, image: VectorImageItem, onStickyMoved: (Offset) -> Unit, onZoomChanged: (String, Float, Offset) -> Unit, onDeleteSticky: (VectorImageItem) -> Unit)

A composable function that represents a sticky vector image, which can be moved, zoomed, or deleted. This function displays an image using the provided VectorImageProperty and VectorImageItem.

Parameters

modifier

The modifier to be applied to the sticky vector image.

property

The properties related to the vector image, including size, color, alignment, etc.

image

The vector image item containing the actual image data.

onStickyMoved

A callback invoked when the sticky image is moved. It provides the new offset.

onZoomChanged

A callback invoked when the zoom level changes. It provides the image ID, scale factor, and offset.

onDeleteSticky

A callback invoked when the sticky image is deleted.


fun StickyImage(modifier: Modifier = Modifier, property: ImageBitmapProperty, image: ImageBitmapItem, onStickyMoved: (Offset) -> Unit, onZoomChanged: (String, Float, Offset) -> Unit, onDeleteSticky: (ImageBitmapItem) -> Unit)

A composable function that represents a sticky image bitmap, which can be moved, zoomed, or deleted. This function displays an image using the provided ImageBitmapProperty and ImageBitmapItem.

Parameters

modifier

The modifier to be applied to the sticky image bitmap.

property

The properties related to the image bitmap, including size, color, alignment, etc.

image

The image bitmap item containing the actual image data.

onStickyMoved

A callback invoked when the sticky image is moved. It provides the new offset.

onZoomChanged

A callback invoked when the zoom level changes. It provides the image ID, scale factor, and offset.

onDeleteSticky

A callback invoked when the sticky image is deleted.