System::Drawing::Imaging::PixelFormat enum

PixelFormat enum

Specifies the color data format of a pixel.

enum class PixelFormat

Values

NameValueDescription
Indexed65536Specifies that the pixel data contains color indexed values which means they are an index to colors in the system color table.
Gdi131072Specifies that the pixel data contains GDI colors.
Alpha262144Specifies that the pixel data contains alpha values which are not pre-multiplied.
PAlpha524288Specifies that the pixel data contains pre-multipled alpha values.
Extended1048576Reserved.
Canonical2097152Specifies the pixel format of 32 bits per pixel with 24-bit color depth and an 8-bit alpha channel.
Undefined0Specifies that the pixel format is undefined.
DontCare0The pixel format is not specified.
Format1bppIndexedn/aSpecifies that pixel format is 1 bit per pixel indexed color.
Format4bppIndexedn/aSpecifies that pixel format is 4 bits per pixel indexed color.
Format8bppIndexedn/aSpecifies that pixel format is 8 bits per pixel indexed color.
Format16bppGrayScalen/aSpecifies that the pixel format is 16 bits per pixel. The color information specifies 65536 shades of gray.
Format16bppRgb555n/aSpecifies that the pixel format is 16 bits per pixel with 5 bits for each of red, green, and blue components and remaining bit not used.
Format16bppRgb565n/aSpecifies that the pixel format is 16 bits per pixel with 5 bits for red, 6 bits for green and 5 bits for blue components.
Format16bppArgb1555n/aSpecifies that the pixel format is 16 bits per pixel with 5 bits for each of red, green, and blue components and 1 bit for alpha.
Format24bppRgbn/aSpecifies that the pixel format is 24 bits per pixel with 8 bits for each of red, green, and blue components.
Format32bppRgbn/aSpecifies that the pixel format is 32 bits per pixel with 8 bits for each of red, green, and blue components and remaining 8 bits not used.
Format32bppArgbn/aSpecifies that the pixel format is 32 bits per pixel with 8 bits for each of red, green, and blue components and 8 bits for alpha.
Format32bppPArgbn/aSpecifies that the pixel format is 32 bits per pixel with 8 bits for each of red, green, and blue components and 8 bits for alpha. The red, green and blue components are pre-multiplied according to the value of alpha component.
Format48bppRgbn/aSpecifies that the pixel format is 48 bits per pixel with 16 bits for each of red, green, and blue components.
Format64bppArgbn/aSpecifies that the pixel format is 64 bits per pixel with 16 bits for each of red, green, and blue components and 16 bits for alpha.
Format64bppPArgbn/aSpecifies that the pixel format is 64 bits per pixel with 16 bits for each of red, green, and blue components and 16 bits for alpha. The red, green and blue components are pre-multiplied according to the value of alpha component.
Format32bppCMYKn/aSpecifies that the pixel format is 32 bits per pixel with 8 bits for each of the cyan, magenta, yellow and key components.
Max16The max value of this enum.

See Also