image

abstract fun image(source: ImageSource, sourceRegion: IntRect?, size: IntSize?, modifier: Modifier, key: ElementKey<*>?): Element(source)

Creates one nearest-sampled image after resolving source through the active resource manager when necessary.

Return

an immutable retained-element description owning its resolved pixel snapshot.

Parameters

source

immutable pixels or structural resource identifier.

sourceRegion

optional half-open source crop.

size

optional logical destination size.

modifier

active behavior around the image.

key

optional stable sibling identity.