cheatah
Struct

plot::renderer::Image

cheatah-plot v0.1.0-alpha — Biome Standard 0.6.3-alpha

An RGBA8 raster image — the CPU-side pixel form the rasterizer produces and both writers below serialize.

Pixels are row-major from the top-left, 4 bytes per pixel in R, G, B, A order, so a valid image has rgba.size() == width * height * 4.

Constants & variables

var std::uint32_t width #

Width in pixels.

var std::uint32_t height #

Height in pixels.

var std::vector< std::uint8_t > rgba #

Row-major RGBA bytes, exactly width * height * 4 of them.