HeadlessFrame

sealed interface HeadlessFrame(source)

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

The frame retains the physical image and a detached, read-only snapshot of logical semantics. Semantics are in core emission order, remain unscaled and unclipped, and no description, tree, or command list is retained. The image size is exactly the checked logical viewport multiplied by pixelScale. All exposed frame, image, and semantics reads are safe from any thread after construction.

Properties

Link copied to clipboard
abstract val image: HeadlessImage

The physical raster for this frame.

Link copied to clipboard
abstract val pixelScale: Int

The positive logical-to-physical pixel scale.

Link copied to clipboard

The detached, read-only logical semantics snapshot.

Link copied to clipboard
abstract val viewport: IntSize

The logical fixed viewport supplied to the render.