canvaskit-wasm 0.39 build 2026-04-29

ColorType

Per-pixel byte layout. Carried on ImageInfo. Determines how many bytes/floats per pixel and the channel order.

All values

ValueBytes / pixelNotes
Alpha_81Single 8-bit alpha channel. Useful for masks.
RGB_56525-bit R, 6-bit G, 5-bit B. No alpha.
RGBA_88884Default. 8-bit per channel, in R, G, B, A order.
BGRA_888848-bit per channel in reverse order — matches the platform's native pixel format on some systems.
RGBA_1010102410-bit RGB + 2-bit alpha. Wide-color HDR pipelines.
RGB_101010x410-bit RGB, alpha implied opaque.
Gray_81Single 8-bit greyscale channel.
RGBA_F168Half-float per channel. HDR.
RGBA_F3216Full-float per channel. Maximum precision; expensive.

See also