CMAP.H
Upload User: wep9318
Upload Date: 2007-01-07
Package Size: 893k
Code Size: 1k
Category:

Picture Viewer

Development Platform:

Visual C++

  1. /*
  2.  * Colour map (palette) class
  3.  */
  4. #ifndef CMAPH
  5. #define CMAPH
  6. class CImagePalette: public CPalette
  7. {
  8.  public:
  9.   CImagePalette() {}
  10.   CImagePalette(const CImagePalette *pal);
  11.   CImagePalette(const int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
  12.   ~CImagePalette(void);
  13.   BOOL Create(const int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
  14.   int GetPixel(const unsigned char red, const unsigned char green, const unsigned char blue);
  15.   BOOL GetRGB(const int pixel, unsigned char *red, unsigned char *green, unsigned char *blue);
  16. };
  17. #endif