Color Type
Entries
10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
Pixel with 10 bits each for red, green, blue; in 32-bit word
Pixel with 10 bits each for blue, green, red; in 32-bit word
Pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
Pixel with 10 bits each for blue, green, red, alpha; in 64-bit word, extended range
Pixel with half floats in 0,1 for red, green, blue, alpha; in 64-bit word
Pixel with a uint8_t for red and green
Pixel with a half float for red and green
Pixel with a little endian uint16_t for red and green
Pixel with a little endian uint16_t for red, green, blue, and alpha
Properties
Returns the number of bytes required to store a pixel, including unused padding. Returns zero for .UNKNOWN.
Returns a representation of an immutable list of all enum entries, in the order they're declared.
Returns true if ColorType always decodes alpha to 1.0, making the pixel fully opaque. If true, ColorType does not reserve bits to encode alpha.