SourceEnum ColorType
from skia import ColorTypeColorType.A16_FLOAT
ColorType.A16_UNORM
ColorType.ALPHA_8
ColorType.ARGB_4444
ColorType.BGRA_1010102
ColorType.BGRA_1010102_XR
ColorType.BGRA_8888
ColorType.BGR_101010X
ColorType.BGR_101010X_XR
ColorType.GRAY_8
ColorType.R16G16B16A16_UNORM
ColorType.R16G16_FLOAT
ColorType.R16G16_UNORM
ColorType.R16_UNORM
ColorType.R8G8_UNORM
ColorType.R8_UNORM
ColorType.RGBAF16
ColorType.RGBAF16_NORM
ColorType.RGBAF32
ColorType.RGBA_1010102
ColorType.RGBA_10X6
ColorType.RGBA_8888
ColorType.RGBA_F16
ColorType.RGBF16_F16_F16X
ColorType.RGB_101010X
ColorType.RGB_565
ColorType.RGB_888X
ColorType.SRGBA_8888
ColorType.UNKNOWNDescribes how pixel bits encode color. A pixel may be an alpha mask, a grayscale, RGB, or ARGB.
The names of each variant implicitly define the channel ordering and size in memory. Due to historical reasons the names do not follow 100% identical convention, but are typically labeled from least significant to most significant.
Unless specified otherwise, a channel's value is treated as an unsigned integer with a range of [0, 2^N-1] and this is mapped uniformly to a floating point value of [0.0, 1.0]. Some color types instead store data directly in 32-bit floating point (assumed to be IEEE), or in 16-bit "half" floating point values.
Note: By default, Skia operates with the assumption of a little-Endian system. The bit patterns shown in the documentation assume LE byte order.