cursorImagePointerIcon

fun cursorImagePointerIcon(image: ImageBitmap, imageScale: Float, hotSpot: IntOffset = IntOffset.Zero): PointerIcon(source)

Creates a pointer icon from an image.

The image must have a positive width and height. The hotspot is in source image pixels and is clamped to the image bounds.

Parameters

image

image to use for the cursor.

imageScale

source image pixels per displayed logical cursor unit.

hotSpot

pixel in the source image that points at the target location.