SKColorType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes how to interpret the components of a pixel.
public enum SKColorType
- Inheritance
-
SKColorType
Fields
| Name | Value | Description |
|---|---|---|
| Unknown | 0 | Unknown encoding. |
| Alpha8 | 1 | Represents a 8-bit alpha-only color. |
| Rgb565 | 2 | Represents an opaque 16-bit color with the format RGB, with the red and blue components being 5 bits and the green component being 6 bits. |
| Argb4444 | 3 | Represents a 16-bit color with the format ARGB. |
| Rgba8888 | 4 | Represents a 32-bit color with the format RGBA. |
| Rgb888x | 5 | Represents an opaque 32-bit color with the format RGB, with 8 bits per color component. |
| Bgra8888 | 6 | Represents a 32-bit color with the format BGRA. |
| Rgba1010102 | 7 | Represents a 32-bit color with the format RGBA, with 10 bits per color component and 2 bits for the alpha component. |
| Rgb101010x | 8 | Represents an opaque 32-bit color with the format RGB, with 10 bits per color component. |
| Gray8 | 9 | Represents an opaque 8-bit grayscale color. |
| RgbaF16 | 10 | Represents a floating-point based color with the format RGBA. |
| RgbaF16Clamped | 11 | Represents a half-precision floating-point color with clamped RGBA values in the range 0.0 to 1.0. |
| RgbaF32 | 12 | Represents a 128-bit single-precision floating-point color with the format RGBA. |
| Rg88 | 13 | Represents a 16-bit color with 8 bits each for red and green channels. |
| AlphaF16 | 14 | Represents a 16-bit half-precision floating-point alpha-only color. |
| RgF16 | 15 | Represents a 32-bit half-precision floating-point color with red and green channels. |
| Alpha16 | 16 | Represents a 16-bit alpha-only color. |
| Rg1616 | 17 | Represents a 32-bit color with 16 bits each for red and green channels. |
| Rgba16161616 | 18 | Represents a 64-bit color with 16 bits per RGBA component. |
| Bgra1010102 | 19 | Represents a 32-bit color with the format BGRA, with 10 bits per color component and 2 bits for alpha. |
| Bgr101010x | 20 | Represents an opaque 32-bit color with the format BGR, with 10 bits per color component. |
| Bgr101010xXR | 21 | Represents an extended-range 32-bit color with the format BGR, with 10 bits per color component. |
| Srgba8888 | 22 | Represents a 32-bit sRGB color with the format RGBA. |
| R8Unorm | 23 | Represents a single-channel 8-bit unsigned normalized red color. |
| Rgba10x6 | 24 | Represents a 64-bit color with 10 bits each for RGBA plus 6 bits of padding. |