Package-level declarations

Types

Link copied to clipboard
sealed interface HeadlessFrame

An immutable, thread-safe result of one synchronous headless render.

Link copied to clipboard
sealed interface HeadlessImage

An immutable, thread-safe row-major physical ARGB image produced by headless rendering.

Functions

Link copied to clipboard
fun rasterizeHeadless(commands: List<DrawCommand>, viewport: IntSize, scale: Int = 1): HeadlessImage

Rasterizes ordered portable commands into an immutable physical ARGB image.

Link copied to clipboard
fun renderHeadless(description: Element, viewport: IntSize, scale: Int = 1): HeadlessFrame

Synchronously renders an element description through the retained core and rasterizes its paint output.