ColorType

class ColorType

Members:

kUnknown_ColorType : uninitialized

kAlpha_8_ColorType : pixel with alpha in 8-bit byte

kRGB_565_ColorType : pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word

kARGB_4444_ColorType : pixel with 4 bits for alpha, red, green, blue; in 16-bit word

kRGBA_8888_ColorType : pixel with 8 bits for red, green, blue, alpha; in 32-bit word

kRGB_888x_ColorType : pixel with 8 bits each for red, green, blue; in 32-bit word

kBGRA_8888_ColorType : pixel with 8 bits for blue, green, red, alpha; in 32-bit word

kRGBA_1010102_ColorType : 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word

kBGRA_1010102_ColorType : 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word

kRGB_101010x_ColorType : pixel with 10 bits each for red, green, blue; in 32-bit word

kBGR_101010x_ColorType : pixel with 10 bits each for blue, green, red; in 32-bit word

kGray_8_ColorType : pixel with grayscale level in 8-bit byte

kRGBA_F16Norm_ColorType : pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word

kRGBA_F16_ColorType : pixel with half floats for red, green, blue, alpha; in 64-bit word

kRGBA_F32_ColorType : pixel using C float for red, green, blue, alpha; in 128-bit word

kR8G8_unorm_ColorType

kA16_float_ColorType

kR16G16_float_ColorType

kA16_unorm_ColorType

kR16G16_unorm_ColorType : pixel with a little endian uint16_t for red and green

kR16G16B16A16_unorm_ColorType : pixel with a little endian uint16_t for red, green, blue

kN32_ColorType

Methods

__init__

Attributes

kA16_float_ColorType

kA16_unorm_ColorType

kARGB_4444_ColorType

kAlpha_8_ColorType

kBGRA_1010102_ColorType

kBGRA_8888_ColorType

kBGR_101010x_ColorType

kGray_8_ColorType

kN32_ColorType

kR16G16B16A16_unorm_ColorType

kR16G16_float_ColorType

kR16G16_unorm_ColorType

kR8G8_unorm_ColorType

kRGBA_1010102_ColorType

kRGBA_8888_ColorType

kRGBA_F16Norm_ColorType

kRGBA_F16_ColorType

kRGBA_F32_ColorType

kRGB_101010x_ColorType

kRGB_565_ColorType

kRGB_888x_ColorType

kUnknown_ColorType

name

value

Methods

ColorType.__init__(self: skia.ColorType, value: int) None

Attributes

ColorType.kA16_float_ColorType = <ColorType.kA16_float_ColorType: 20>
ColorType.kA16_unorm_ColorType = <ColorType.kA16_unorm_ColorType: 22>
ColorType.kARGB_4444_ColorType = <ColorType.kARGB_4444_ColorType: 3>
ColorType.kAlpha_8_ColorType = <ColorType.kAlpha_8_ColorType: 1>
ColorType.kBGRA_1010102_ColorType = <ColorType.kBGRA_1010102_ColorType: 8>
ColorType.kBGRA_8888_ColorType = <ColorType.kBGRA_8888_ColorType: 6>
ColorType.kBGR_101010x_ColorType = <ColorType.kBGR_101010x_ColorType: 10>
ColorType.kGray_8_ColorType = <ColorType.kGray_8_ColorType: 14>
ColorType.kN32_ColorType = <ColorType.kRGBA_8888_ColorType: 4>
ColorType.kR16G16B16A16_unorm_ColorType = <ColorType.kR16G16B16A16_unorm_ColorType: 24>
ColorType.kR16G16_float_ColorType = <ColorType.kR16G16_float_ColorType: 21>
ColorType.kR16G16_unorm_ColorType = <ColorType.kR16G16_unorm_ColorType: 23>
ColorType.kR8G8_unorm_ColorType = <ColorType.kR8G8_unorm_ColorType: 19>
ColorType.kRGBA_1010102_ColorType = <ColorType.kRGBA_1010102_ColorType: 7>
ColorType.kRGBA_8888_ColorType = <ColorType.kRGBA_8888_ColorType: 4>
ColorType.kRGBA_F16Norm_ColorType = <ColorType.kRGBA_F16Norm_ColorType: 15>
ColorType.kRGBA_F16_ColorType = <ColorType.kRGBA_F16_ColorType: 16>
ColorType.kRGBA_F32_ColorType = <ColorType.kRGBA_F32_ColorType: 18>
ColorType.kRGB_101010x_ColorType = <ColorType.kRGB_101010x_ColorType: 9>
ColorType.kRGB_565_ColorType = <ColorType.kRGB_565_ColorType: 2>
ColorType.kRGB_888x_ColorType = <ColorType.kRGB_888x_ColorType: 5>
ColorType.kUnknown_ColorType = <ColorType.kUnknown_ColorType: 0>
ColorType.name
ColorType.value