image

abstract fun image(resource: ResourceId): DrawImage(source)

Resolves one resource-pack image through the active resource manager.

Return

detached immutable pixels reflecting the currently active pack stack.

Parameters

resource

platform-neutral resource identifier.

Throws

when the resource is missing or cannot be decoded as an image.

when called from another thread or after platform close.