19#ifndef _GDIPLUSPIXELFORMATS_H
20#define _GDIPLUSPIXELFORMATS_H
29#define ALPHA_MASK ((ARGB) 0xff << ALPHA_SHIFT)
31#define PixelFormatIndexed 0x00010000
32#define PixelFormatGDI 0x00020000
33#define PixelFormatAlpha 0x00040000
34#define PixelFormatPAlpha 0x00080000
35#define PixelFormatExtended 0x00100000
36#define PixelFormatCanonical 0x00200000
38#define PixelFormatUndefined 0
39#define PixelFormatDontCare 0
41#define PixelFormat1bppIndexed (1 | ( 1 << 8) | PixelFormatIndexed | PixelFormatGDI)
42#define PixelFormat4bppIndexed (2 | ( 4 << 8) | PixelFormatIndexed | PixelFormatGDI)
43#define PixelFormat8bppIndexed (3 | ( 8 << 8) | PixelFormatIndexed | PixelFormatGDI)
44#define PixelFormat16bppGrayScale (4 | (16 << 8) | PixelFormatExtended)
45#define PixelFormat16bppRGB555 (5 | (16 << 8) | PixelFormatGDI)
46#define PixelFormat16bppRGB565 (6 | (16 << 8) | PixelFormatGDI)
47#define PixelFormat16bppARGB1555 (7 | (16 << 8) | PixelFormatAlpha | PixelFormatGDI)
48#define PixelFormat24bppRGB (8 | (24 << 8) | PixelFormatGDI)
49#define PixelFormat32bppRGB (9 | (32 << 8) | PixelFormatGDI)
50#define PixelFormat32bppARGB (10 | (32 << 8) | PixelFormatAlpha | PixelFormatGDI | PixelFormatCanonical)
51#define PixelFormat32bppPARGB (11 | (32 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatGDI)
52#define PixelFormat48bppRGB (12 | (48 << 8) | PixelFormatExtended)
53#define PixelFormat64bppARGB (13 | (64 << 8) | PixelFormatAlpha | PixelFormatCanonical | PixelFormatExtended)
54#define PixelFormat64bppPARGB (14 | (64 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatExtended)
55#define PixelFormat32bppCMYK (15 | (32 << 8))
56#define PixelFormatMax 16
80 return (
format >> 8) & 0xff;