DroppedImage

data class DroppedImage(val bytes: ByteArray, val intrinsicSize: Size, val dropPositionScreen: Offset)

A single image extracted from a drag-and-drop event.

Constructors

Link copied to clipboard
constructor(bytes: ByteArray, intrinsicSize: Size, dropPositionScreen: Offset)

Properties

Link copied to clipboard

raw encoded payload (PNG / JPEG / WebP / GIF / BMP), whichever the OS handed us. The SDK's decodeImageBitmap accepts the same formats.

Link copied to clipboard

the drop point in screen pixels — the host translates to world coords via viewport.screenToWorld(...) before dispatching the insert intent.

Link copied to clipboard

source pixel dimensions, used by the host to preserve aspect ratio when sizing the placed element.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int