PixelFormat Enum

Identifies one of the built-in working pixel representations used to store decoded pixels.

public enum PixelFormat

Remarks

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

NameValueDescription
Unknown0Unknown or unspecified. Never returned by an Image.
Rgba3218-bit red, green, blue and straight alpha components, stored in that byte order (Rgba32).
Bgra3228-bit blue, green, red and straight alpha components, stored in that byte order (Bgra32).
Rgb2438-bit red, green and blue components without alpha (Rgb24).
Rgba64416-bit red, green, blue and straight alpha components in native endianness (Rgba64).
Gray858-bit grayscale without alpha (Gray8).
Gray16616-bit grayscale without alpha in native endianness (Gray16).
RgbaFloat7Single-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.
RgbaHalf8Half-precision floating-point red, green, blue and straight alpha components (RgbaHalf), with the meaning of PixelFormat.RgbaFloat.
La1698-bit gray level and straight alpha components, stored in that byte order (La16).
La321016-bit gray level and straight alpha components in native endianness (La32).
Rgb481116-bit red, green and blue components without alpha in native endianness (Rgb48).
A8128-bit alpha without color (A8): an alpha mask, read as black with its alpha.
Argb32138-bit straight alpha, red, green and blue components, stored in that byte order (Argb32).
Abgr32148-bit straight alpha, blue, green and red components, stored in that byte order (Abgr32).
Bgr565155-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).
Rgba10101021610-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).
Cmyk32178-bit cyan, magenta, yellow and black ink amounts, stored in that byte order (Cmyk32): device CMYK described by the CMYK profile of the image.
Cmyk641816-bit cyan, magenta, yellow and black ink amounts in native endianness (Cmyk64): device CMYK described by the CMYK profile of the image.
GrayFloat19Single-precision floating-point gray level without alpha (GrayFloat): linear light where 1 is the reference white, with values outside [0, 1] allowed, like the colors of PixelFormat.RgbaFloat.
GrayHalf20Half-precision floating-point gray level without alpha (GrayHalf), with the meaning of PixelFormat.GrayFloat.
LaFloat21Single-precision floating-point gray level and straight alpha components (LaFloat), with the meaning of PixelFormat.RgbaFloat.
LaHalf22Half-precision floating-point gray level and straight alpha components (LaHalf), with the meaning of PixelFormat.RgbaFloat.