PixelFormat Enum
Identifies one of the built-in working pixel representations used to store decoded pixels.
public enum PixelFormatRemarks
A pixel format describes the in-memory storage of an Image<TPixel>, not the compressed encoding of a file. Use ImageInfo.ColorModel and ImageInfo.BitsPerComponent for information about the source encoding.
Fields
| Name | Value | Description |
|---|---|---|
Unknown | 0 | Unknown or unspecified. Never returned by an Image. |
Rgba32 | 1 | 8-bit red, green, blue and straight alpha components, stored in that byte order (Rgba32). |
Bgra32 | 2 | 8-bit blue, green, red and straight alpha components, stored in that byte order (Bgra32). |
Rgb24 | 3 | 8-bit red, green and blue components without alpha (Rgb24). |
Rgba64 | 4 | 16-bit red, green, blue and straight alpha components in native endianness (Rgba64). |
Gray8 | 5 | 8-bit grayscale without alpha (Gray8). |
Gray16 | 6 | 16-bit grayscale without alpha in native endianness (Gray16). |
RgbaFloat | 7 | Single-precision floating-point red, green, blue and straight alpha components (RgbaFloat): linear light where 1 is the reference white, with values outside [0, 1] allowed. |
RgbaHalf | 8 | Half-precision floating-point red, green, blue and straight alpha components (RgbaHalf), with the meaning of PixelFormat.RgbaFloat. |
La16 | 9 | 8-bit gray level and straight alpha components, stored in that byte order (La16). |
La32 | 10 | 16-bit gray level and straight alpha components in native endianness (La32). |
Rgb48 | 11 | 16-bit red, green and blue components without alpha in native endianness (Rgb48). |
A8 | 12 | 8-bit alpha without color (A8): an alpha mask, read as black with its alpha. |
Argb32 | 13 | 8-bit straight alpha, red, green and blue components, stored in that byte order (Argb32). |
Abgr32 | 14 | 8-bit straight alpha, blue, green and red components, stored in that byte order (Abgr32). |
Bgr565 | 15 | 5-bit red, 6-bit green and 5-bit blue components without alpha, packed in a native-endian 16-bit value with blue in the low bits (Bgr565). |
Rgba1010102 | 16 | 10-bit red, green and blue components and a 2-bit straight alpha, packed in a native-endian 32-bit value with red in the low bits (Rgba1010102). |