PixelFormat

Pixel format flags. Undefined should be used for all indexed bitmaps, except 16 bit big endian ones, in which case a single BigEndian bit should be set high. Lower 16 bits should be used for general identification, upper 16 bits are general identificators (endianness, valid alpha channel, etc). 0x01 - 0x1F are reserved for 16 bit truecolor, 0x20 - 0x2F are reserved for 24 bit truecolor, 0x30 - 3F are reserved for integer grayscale, 0x40 - 0x5F are reserved for 32 bit truecolor, 0xF00-0xF0F are reserved for "chunky" indexed images, 0xF10-0xF1F are reserved for planar indexed images.

Values

ValueMeaning
BigEndian0x00_01_00_00

Always little endian if bit not set

ValidAlpha0x00_02_00_00

If set, alpha is used

SeparateAlphaField0x00_04_00_00

If set, then there's a separate alpha field

RGBX55510x1
RGBA5551RGBX5551 | ValidAlpha
RGB5650x2
RGB8880x20
Grayscale1Bit0x30
Grayscale2Bit0x31
Grayscale4Bit0x32
Grayscale8Bit0x33
Grayscale16Bit0x34
YX880x3A
YA88YX88 | ValidAlpha
YX16_160x3B
YA16_16YX16_16 | ValidAlpha
RGBX88880x40
RGBA8888RGBX8888 | ValidAlpha
XRGB88880x41
ARGB8888XRGB8888 | ValidAlpha
RGB16_16_160x60
RGBX16_16_16_160x61
RGBA16_16_16_16RGBX16_16_16_16 | ValidAlpha
RGBX_f320x101
RGBA_f32RGBX_f32 | ValidAlpha
Indexed1Bit0xF00
Indexed2Bit0xF01
Indexed4Bit0xF02
Indexed8Bit0xF03
Indexed16Bit0xF04
Planar2Color0xF10
Planar4Color0xF11
Planar8Color0xF12
Planar16Color0xF13
Planar32Color0xF14
Planar64Color0xF15
Planar128Color0xF16
Planar256Color0xF17
Planar512Color0xF18
Planar1024Color0xF19
Planar2048Color0xF1A
Planar4096Color0xF1B
Planar8192Color0xF1C
Planar16384Color0xF1D
Planar32768Color0xF1E
Planar65536Color0xF1F
Undefined0

Meta