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)

Observes source for Image at the next owner-thread frame cutoff.

Retain caller-owned sources and editing state outside reevaluation. See Observe for shared snapshots, equal-value suppression, and cleanup; literal arguments follow Image. Modifiers and parent data apply to the actual component, while the binding owns its sibling key.


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.