paint

abstract fun paint(scope: PaintScope)(source)

Emits immutable portable image data or an immutable native identifier into the current local display list.

This callback is cached and may not run in a later presentation. It must never invoke a native producer, acquire a source lease, perform readback, or put handles, closures, nodes, or hosts in a command. The destination is the complete positive logical PaintScope.size, using whole-image stretch and nearest sampling.

Parameters

scope

borrowed owner-thread paint scope, valid only until this method returns.

Throws

when command emission fails; no partially produced frame is published.