ReactOS 0.4.15-dev-7958-gcd0bb1a
gdipluspixelformats.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ColorPalette
 

Macros

#define PixelFormatIndexed   0x00010000
 
#define PixelFormatGDI   0x00020000
 
#define PixelFormatAlpha   0x00040000
 
#define PixelFormatPAlpha   0x00080000
 
#define PixelFormatExtended   0x00100000
 
#define PixelFormatCanonical   0x00200000
 
#define PixelFormatUndefined   0
 
#define PixelFormatDontCare   0
 
#define PixelFormat1bppIndexed   (1 | (1 << 8) | PixelFormatIndexed | PixelFormatGDI)
 
#define PixelFormat4bppIndexed   (2 | (4 << 8) | PixelFormatIndexed | PixelFormatGDI)
 
#define PixelFormat8bppIndexed   (3 | (8 << 8) | PixelFormatIndexed | PixelFormatGDI)
 
#define PixelFormat16bppGrayScale   (4 | (16 << 8) | PixelFormatExtended)
 
#define PixelFormat16bppRGB555   (5 | (16 << 8) | PixelFormatGDI)
 
#define PixelFormat16bppRGB565   (6 | (16 << 8) | PixelFormatGDI)
 
#define PixelFormat16bppARGB1555   (7 | (16 << 8) | PixelFormatAlpha | PixelFormatGDI)
 
#define PixelFormat24bppRGB   (8 | (24 << 8) | PixelFormatGDI)
 
#define PixelFormat32bppRGB   (9 | (32 << 8) | PixelFormatGDI)
 
#define PixelFormat32bppARGB   (10 | (32 << 8) | PixelFormatAlpha | PixelFormatGDI | PixelFormatCanonical)
 
#define PixelFormat32bppPARGB   (11 | (32 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatGDI)
 
#define PixelFormat48bppRGB   (12 | (48 << 8) | PixelFormatExtended)
 
#define PixelFormat64bppARGB   (13 | (64 << 8) | PixelFormatAlpha | PixelFormatCanonical | PixelFormatExtended)
 
#define PixelFormat64bppPARGB   (14 | (64 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatExtended)
 
#define PixelFormat32bppCMYK   (15 | (32 << 8))
 
#define PixelFormatMax   16
 

Typedefs

typedef DWORD ARGB
 
typedef INT PixelFormat
 
typedef struct ColorPalette ColorPalette
 
typedef enum DitherType DitherType
 
typedef enum PaletteType PaletteType
 

Enumerations

enum  PaletteFlags { PaletteFlagsHasAlpha = 1 , PaletteFlagsGrayScale = 2 , PaletteFlagsHalftone = 4 }
 
enum  DitherType {
  DitherTypeNone , DitherTypeSolid , DitherTypeOrdered4x4 , DitherTypeOrdered8x8 ,
  DitherTypeOrdered16x16 , DitherTypeSpiral4x4 , DitherTypeSpiral8x8 , DitherTypeDualSpiral4x4 ,
  DitherTypeDualSpiral8x8 , DitherTypeErrorDiffusion , DitherTypeMax
}
 
enum  PaletteType {
  PaletteTypeCustom , PaletteTypeOptimal , PaletteTypeFixedBW , PaletteTypeFixedHalftone8 ,
  PaletteTypeFixedHalftone27 , PaletteTypeFixedHalftone64 , PaletteTypeFixedHalftone125 , PaletteTypeFixedHalftone216 ,
  PaletteTypeFixedHalftone252 , PaletteTypeFixedHalftone256
}
 

Functions

static BOOL IsIndexedPixelFormat (PixelFormat format)
 
static BOOL IsAlphaPixelFormat (PixelFormat format)
 
static BOOL IsCanonicalPixelFormat (PixelFormat format)
 
static BOOL IsExtendedPixelFormat (PixelFormat format)
 
static UINT GetPixelFormatSize (PixelFormat format)
 

Macro Definition Documentation

◆ PixelFormat16bppARGB1555

#define PixelFormat16bppARGB1555   (7 | (16 << 8) | PixelFormatAlpha | PixelFormatGDI)

Definition at line 41 of file gdipluspixelformats.h.

◆ PixelFormat16bppGrayScale

#define PixelFormat16bppGrayScale   (4 | (16 << 8) | PixelFormatExtended)

Definition at line 38 of file gdipluspixelformats.h.

◆ PixelFormat16bppRGB555

#define PixelFormat16bppRGB555   (5 | (16 << 8) | PixelFormatGDI)

Definition at line 39 of file gdipluspixelformats.h.

◆ PixelFormat16bppRGB565

#define PixelFormat16bppRGB565   (6 | (16 << 8) | PixelFormatGDI)

Definition at line 40 of file gdipluspixelformats.h.

◆ PixelFormat1bppIndexed

#define PixelFormat1bppIndexed   (1 | (1 << 8) | PixelFormatIndexed | PixelFormatGDI)

Definition at line 35 of file gdipluspixelformats.h.

◆ PixelFormat24bppRGB

#define PixelFormat24bppRGB   (8 | (24 << 8) | PixelFormatGDI)

Definition at line 42 of file gdipluspixelformats.h.

◆ PixelFormat32bppARGB

#define PixelFormat32bppARGB   (10 | (32 << 8) | PixelFormatAlpha | PixelFormatGDI | PixelFormatCanonical)

Definition at line 44 of file gdipluspixelformats.h.

◆ PixelFormat32bppCMYK

#define PixelFormat32bppCMYK   (15 | (32 << 8))

Definition at line 49 of file gdipluspixelformats.h.

◆ PixelFormat32bppPARGB

#define PixelFormat32bppPARGB   (11 | (32 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatGDI)

Definition at line 45 of file gdipluspixelformats.h.

◆ PixelFormat32bppRGB

#define PixelFormat32bppRGB   (9 | (32 << 8) | PixelFormatGDI)

Definition at line 43 of file gdipluspixelformats.h.

◆ PixelFormat48bppRGB

#define PixelFormat48bppRGB   (12 | (48 << 8) | PixelFormatExtended)

Definition at line 46 of file gdipluspixelformats.h.

◆ PixelFormat4bppIndexed

#define PixelFormat4bppIndexed   (2 | (4 << 8) | PixelFormatIndexed | PixelFormatGDI)

Definition at line 36 of file gdipluspixelformats.h.

◆ PixelFormat64bppARGB

#define PixelFormat64bppARGB   (13 | (64 << 8) | PixelFormatAlpha | PixelFormatCanonical | PixelFormatExtended)

Definition at line 47 of file gdipluspixelformats.h.

◆ PixelFormat64bppPARGB

#define PixelFormat64bppPARGB   (14 | (64 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatExtended)

Definition at line 48 of file gdipluspixelformats.h.

◆ PixelFormat8bppIndexed

#define PixelFormat8bppIndexed   (3 | (8 << 8) | PixelFormatIndexed | PixelFormatGDI)

Definition at line 37 of file gdipluspixelformats.h.

◆ PixelFormatAlpha

#define PixelFormatAlpha   0x00040000

Definition at line 27 of file gdipluspixelformats.h.

◆ PixelFormatCanonical

#define PixelFormatCanonical   0x00200000

Definition at line 30 of file gdipluspixelformats.h.

◆ PixelFormatDontCare

#define PixelFormatDontCare   0

Definition at line 33 of file gdipluspixelformats.h.

◆ PixelFormatExtended

#define PixelFormatExtended   0x00100000

Definition at line 29 of file gdipluspixelformats.h.

◆ PixelFormatGDI

#define PixelFormatGDI   0x00020000

Definition at line 26 of file gdipluspixelformats.h.

◆ PixelFormatIndexed

#define PixelFormatIndexed   0x00010000

Definition at line 25 of file gdipluspixelformats.h.

◆ PixelFormatMax

#define PixelFormatMax   16

Definition at line 50 of file gdipluspixelformats.h.

◆ PixelFormatPAlpha

#define PixelFormatPAlpha   0x00080000

Definition at line 28 of file gdipluspixelformats.h.

◆ PixelFormatUndefined

#define PixelFormatUndefined   0

Definition at line 32 of file gdipluspixelformats.h.

Typedef Documentation

◆ ARGB

typedef DWORD ARGB

Definition at line 22 of file gdipluspixelformats.h.

◆ ColorPalette

◆ DitherType

◆ PaletteType

◆ PixelFormat

typedef INT PixelFormat

Definition at line 23 of file gdipluspixelformats.h.

Enumeration Type Documentation

◆ DitherType

Enumerator
DitherTypeNone 
DitherTypeSolid 
DitherTypeOrdered4x4 
DitherTypeOrdered8x8 
DitherTypeOrdered16x16 
DitherTypeSpiral4x4 
DitherTypeSpiral8x8 
DitherTypeDualSpiral4x4 
DitherTypeDualSpiral8x8 
DitherTypeErrorDiffusion 
DitherTypeMax 

Definition at line 110 of file gdipluspixelformats.h.

◆ PaletteFlags

Enumerator
PaletteFlagsHasAlpha 
PaletteFlagsGrayScale 
PaletteFlagsHalftone 

Definition at line 82 of file gdipluspixelformats.h.

83{
87};
@ PaletteFlagsGrayScale
@ PaletteFlagsHalftone
@ PaletteFlagsHasAlpha

◆ PaletteType

Enumerator
PaletteTypeCustom 
PaletteTypeOptimal 
PaletteTypeFixedBW 
PaletteTypeFixedHalftone8 
PaletteTypeFixedHalftone27 
PaletteTypeFixedHalftone64 
PaletteTypeFixedHalftone125 
PaletteTypeFixedHalftone216 
PaletteTypeFixedHalftone252 
PaletteTypeFixedHalftone256 

Definition at line 125 of file gdipluspixelformats.h.

Function Documentation

◆ GetPixelFormatSize()

static UINT GetPixelFormatSize ( PixelFormat  format)
inlinestatic

Definition at line 77 of file gdipluspixelformats.h.

78{
79 return (format >> 8) & 0xff;
80}
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546

◆ IsAlphaPixelFormat()

static BOOL IsAlphaPixelFormat ( PixelFormat  format)
inlinestatic

Definition at line 59 of file gdipluspixelformats.h.

60{
61 return (format & PixelFormatAlpha) != 0;
62}
#define PixelFormatAlpha

◆ IsCanonicalPixelFormat()

static BOOL IsCanonicalPixelFormat ( PixelFormat  format)
inlinestatic

Definition at line 65 of file gdipluspixelformats.h.

66{
67 return (format & PixelFormatCanonical) != 0;
68}
#define PixelFormatCanonical

◆ IsExtendedPixelFormat()

static BOOL IsExtendedPixelFormat ( PixelFormat  format)
inlinestatic

Definition at line 71 of file gdipluspixelformats.h.

72{
73 return (format & PixelFormatExtended) != 0;
74}
#define PixelFormatExtended

◆ IsIndexedPixelFormat()

static BOOL IsIndexedPixelFormat ( PixelFormat  format)
inlinestatic

Definition at line 53 of file gdipluspixelformats.h.

54{
55 return (format & PixelFormatIndexed) != 0;
56}
#define PixelFormatIndexed