TestFrame

class TestFrame(val pixels: ByteArray, val size: Size)(source)

A frame held as tightly packed RGBA_8888, row-major, with no row padding.

Throws

When pixels is not width * height * 4 bytes long.

Constructors

Link copied to clipboard
constructor(pixels: ByteArray, size: Size)

Properties

Link copied to clipboard

The frame's bytes, four per pixel.

Link copied to clipboard
val size: Size

The frame's dimensions in pixels.