InsertImage

data class InsertImage(val bytes: ByteArray, val position: Offset, val intrinsicSize: Size) : Intent

Place an Element.Image at position in world space, sized from intrinsicSize so the placed bitmap preserves its source aspect ratio by default. Hosts that want different placement can dispatch SetElementBounds right after.

Snapshots history once.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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