28 #define __PNMEXSUPPORT__ // modifies FreeImage to support PNM with more than 8 and less than 16 bit per channel 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__
bool Load(const char *source)
static void RegisterPNM()
unsigned char GetBPP() const
unsigned char * GetBits() const
unsigned char GetColorType() const
bool Create(int width, int height, int bpp)
bool IsTransparencySupported()
void GetColorTable(int firstColor, int numColors, void *prgbColors)
void SetColorTable(int firstColor, int numColors, const void *prgbColors)
bool Save(const char *dest)
int GetMaxColorTableEntries()
unsigned int GetHeight() const
int GetChannelDepth() const
unsigned int GetWidth() const
void SetMaxValue(int maxValue)