Share via


PixelFormat Values (Compact 2013)

3/26/2014

This feature is being deprecated for this release. Refer to this component: Windows Imaging Component.

These values are flags used to identify the numerical formats of pixels in images.

Value

Description

PixelFormatIndexed

Is an indexes into a palette.

PixelFormatGDI

Is a GDI-supported format.

PixelFormatAlpha

Has an alpha component.

PixelFormatPAlpha

Is the pre-multiplied alpha.

PixelFormatExtended

Is extended color 16 bits/channel.

PixelFormatCanonical

Is in canonical format.

PixelFormatUndefined

Is in an undefined format.

PixelFormatDontCare

Is any format.

PixelFormat1bppIndexed

Is the 1 bit-per-pixel indexed color bitmap.

Definition:

(1 | ( 1 << 8) | PixelFormatIndexed | PixelFormatGDI)

PixelFormat4bppIndexed

Is 4bpp indexed color.

Definition:

(2 | ( 4 << 8) | PixelFormatIndexed | PixelFormatGDI)

PixelFormat8bppIndexed

Is 8bpp indexed color.

Definition:

(3 | ( 8 << 8) | PixelFormatIndexed | PixelFormatGDI)

PixelFormat16bppGrayScale

Is 16bpp grayscale.

Definition:

(4 | (16 << 8) | PixelFormatExtended)

PixelFormat16bppRGB555

Is 16bpp RGB 5-5-5 (blue in low-order bits).

Definition:

(5 | (16 << 8) | PixelFormatGDI)

PixelFormat16bppRGB565

Is 16bpp RGB 5-6-5.

Definition:

(6 | (16 << 8) | PixelFormatGDI)

PixelFormat16bppARGB1555

Is 16bpp ARGB 1-5-5-5.

Definition:

(7 | (16 << 8) | PixelFormatAlpha | PixelFormatGDI)

PixelFormat24bppRGB

Is 24bpp RGB (blue in low-order byte).

Definition:

(8 | (24 << 8) | PixelFormatGDI)

PixelFormat32bppRGB

Is 32bpp RGB (high order byte unused)

Definition:

(9 | (32 << 8) | PixelFormatGDI)

PixelFormat32bppARGB

Is 32bpp ARGB, non-premultiplied alpha.

Definition:

(10 | (32 << 8) | PixelFormatAlpha | PixelFormatGDI | PixelFormatCanonical)

PixelFormat32bppPARGB

Is 32bpp ARGB, premultiplied alpha.

Definition:

(11 | (32 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatGDI)

PixelFormat48bppRGB

Is 48bpp RGB.

Definition:

(12 | (48 << 8) | PixelFormatExtended)

PixelFormat64bppARGB

Is 64bpp ARGB, non-premultiplied alpha

Definition:

(13 | (64 << 8) | PixelFormatAlpha  | PixelFormatCanonical | PixelFormatExtended)

PixelFormat64bppPARGB

Is 64bpp ARGB, premultiplied alpha.

Definition:

(14 | (64 << 8) | PixelFormatAlpha  | PixelFormatPAlpha | PixelFormatExtended)

PixelFormatMax

The underlying value of this macro can be used literally as the upper bound of a loop through all the other pixel formats.

Remarks

Pixel formats that support a 16-bit per color component are called extended formats.

The two 32bpp ARGB formats and the two 64bpp ARGB formats are called canonical formats.

Color values for extended pixel formats are interpreted in XsRGB linear space. Color values for other pixel formats are interpreted in sRGB space.

Alpha values are always interpreted in linear space.

Requirements

Header

imaging.h

See Also

Reference

Imaging Macros