ImageSource

sealed interface ImageSource(source)

Platform-neutral source for an image component or image-backed modifier.

Pixel sources retain an immutable snapshot directly. Resource sources retain only an identifier and are resolved through the active runtime resource manager during screen evaluation, preserving resource-pack replacement.

Inheritors

Types

Link copied to clipboard
data class Pixels(val image: DrawImage) : ImageSource

Uses one immutable caller-provided pixel snapshot.

Link copied to clipboard
data class Resource(val id: ResourceId) : ImageSource

Resolves pixels from the active runtime resource manager.