libUEMF
A portable library for reading and writing WMF, EMF and EMF+ files
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
PMF PixelFormat Enumeration

Macros

#define U_PF_Undefined   0x00000000
 undefined Pixel Format
 
#define U_PF_1bppIndexed   0x00030101
 monochrome with LUT
 
#define U_PF_4bppIndexed   0x00030402
 4 bit with LUT
 
#define U_PF_8bppIndexed   0x00030803
 8 bit with LUT
 
#define U_PF_16bppGrayScale   0x00101004
 16 bits grey values
 
#define U_PF_16bppRGB555   0x00021005
 16 bit RGB values (5,5,5,(1 ignored))
 
#define U_PF_16bppRGB565   0x00021006
 16 bit RGB values (5,6,5)
 
#define U_PF_16bppARGB1555   0x00061007
 16 bit ARGB values (1 alpha, 5,5,5 colors)
 
#define U_PF_24bppRGB   0x00021808
 24 bit RGB values (8,8.8)
 
#define U_PF_32bppRGB   0x00022009
 32 bit RGB value (8,8,8,(8 ignored))
 
#define U_PF_32bppARGB   0x0026200A
 32 bit ARGB values (8 alpha,8,8,8)
 
#define U_PF_32bppPARGB   0x000E200B
 32 bit PARGB values (8,8,8,8, but RGB already multiplied by A)
 
#define U_PF_48bppRGB   0x0010300C
 48 bit RGB (16,16,16)
 
#define U_PF_64bppARGB   0x0034400D
 64 bit ARGB (16 alpha, 16,16,16)
 
#define U_PF_64bppPARGB   0x001A400E
 64 bit PARGB (16,16,16,16, but RGB already multiplied by A)
 

Detailed Description

For U_PMF_BITMAP PxFormat field EMF+ manual 2.1.1.25, Microsoft name: PixelFormat Enumeration (U_PF_*)

  Bitmap for this 32 bit value is:
  0-9 ignored
  10  Set: 32 bit ARGB; Clear: !32 bit ARGB
  11  Set: 16 bits/channel; Clear: !16 bits
  12  Set: colors premultiplied by alpha; Clear: !premultiplied
  13  Set: has Alpha; Clear: !has Alpha
  14  Set: Windows GDI supports; Clear: !Windows GDI supports
  15  Set: uses LUT; Clear  !uses LUT
  16-23   = total number of BITS per pixel
  24-31   = pixel format enumeration index (0->15)