28#define __PNMEXSUPPORT__
33#define ImageModeBitmap 0
34#define ImageModeGrayScale 1
35#define ImageModeIndexedColor 2
36#define ImageModeRGBColor 3
37#define ImageModeCMYKColor 4
38#define ImageModeHSLColor 5
39#define ImageModeHSBColor 6
40#define ImageModeMultichannel 7
41#define ImageModeDuotone 8
42#define ImageModeLabColor 9
43#define ImageModeGray16 10
44#define ImageModeRGB48 11
45#define ImageModeLab48 12
46#define ImageModeCMYK64 13
47#define ImageModeDeepMultichannel 14
48#define ImageModeDuotone16 15
50#define ImageModeRGBA 17
51#define ImageModeGray31 18
52#define ImageModeRGB12 19
53#define ImageModeRGB16 20
54#define ImageModeUnknown 255
65 bool Create(
int width,
int height,
int bpp);
66 bool Create(
int width,
int height,
unsigned char type);
69 unsigned char GetBPP()
const;
72 bool Save(
const char* dest);
73 bool Load(
const char* source);
77 void GetColorTable(
int firstColor,
int numColors,
void* prgbColors);
78 void SetColorTable(
int firstColor,
int numColors,
const void* prgbColors);
83#ifdef __PNMEXSUPPORT__
unsigned int GetWidth() const
static void RegisterPNM()
bool Create(int width, int height, int bpp)
unsigned char * GetBits() const
bool IsTransparencySupported()
int GetMaxColorTableEntries()
void SetMaxValue(int maxValue)
bool Load(const char *source)
void SetColorTable(int firstColor, int numColors, const void *prgbColors)
unsigned int GetHeight() const
void GetColorTable(int firstColor, int numColors, void *prgbColors)
unsigned char GetColorType() const
unsigned char GetBPP() const
bool Save(const char *dest)
int GetChannelDepth() const