Image

@JvmName(name = "ImageState386405e1017f_1")
fun UiScope.Image(source: StateSource<ImageSource>, size: IntSize? = null, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)
@JvmName(name = "ImageState6751db0e9723_1")
fun UiScope.Image(source: StateSource<ImageSource>, sourceRegion: IntRect, size: IntSize = IntSize(sourceRegion.width, sourceRegion.height), modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Source-backed Image observing source at the next frame cutoff. Sources remain caller-owned; compatible nodes retain editing, focus, and scrolling state. Literal arguments keep their existing contracts. Equal source values do not re-evaluate this component. The complete modifier chain stays on the actual component; the wrapper delegates parent data and owns the sibling key. Keep sources and dedicated editing states outside observed callbacks. Evaluation and input failures follow ordinary runtime cleanup.


fun UiScope.Image(source: ImageSource, size: IntSize? = null, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Emits one immutable nearest-sampled image component.

A resource source is resolved from the active runtime resource manager while a pixel source retains its immutable snapshot directly. The complete source maps to size, or to its natural pixel size when size is null.

Receiver

active owner-thread screen scope.

Parameters

source

platform-neutral pixel or resource source.

size

optional exact logical destination size.

modifier

active behavior applied to the image.

key

optional stable sibling identity.

Throws

when the resolved image or requested destination is invalid.

when no runtime screen evaluation is active.


fun UiScope.Image(source: ImageSource, sourceRegion: IntRect, size: IntSize = IntSize(sourceRegion.width, sourceRegion.height), modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Emits one immutable nearest-sampled source region from an image.

Receiver

active owner-thread screen scope.

Parameters

source

platform-neutral pixel or resource source.

sourceRegion

nonempty half-open source rectangle contained by the resolved image.

size

exact positive logical destination size, defaulting to the source-region size.

modifier

active behavior applied to the image.

key

optional stable sibling identity.

Throws

when the source region or destination is invalid.

when no runtime screen evaluation is active.