ReadbackFrame

One frame read back out of the preview pipeline.

Properties

Link copied to clipboard

The color space the pixels are in.

Link copied to clipboard

Tightly packed RGBA_8888, row-major, no row padding. size.width * size.height * 4 bytes. Every pixel is opaque, because the frame is flattened onto the composition's fill before it is read back, so premultiplied and straight alpha are the same bytes here.

Link copied to clipboard

The composition time actually rendered, which may differ from the requested position.

Link copied to clipboard

The preview-only downscale in force, 1f when there is none.

Link copied to clipboard
val size: Size

The frame's dimensions, in pixels.

Functions

Link copied to clipboard
open override fun toString(): String