Wavelet and Image class library  1.3.2
PixmapFile.hh
Go to the documentation of this file.
00001 /*
00002  * class PixmapFile
00003  *
00004  * $Date$
00005  * $Revision$
00006  *
00007  */
00008 
00009 #ifndef PIXMAP_FILE_HH__
00010 #define PIXMAP_FILE_HH__
00011 
00012 #include "WImage/Image.hh"
00013 #include "WImage/miscdefs.h"
00014 
00023 /*abstract*/
00024 class
00025 PixmapFile
00026 {
00027 public:
00028 
00037   PixmapFile (char const *name, Image *images[], int channels);
00038 
00040   virtual ~PixmapFile (void);
00041 
00044   inline clrmodel colormodel (void) { return m_cmodel; }
00047   inline void colormodel (clrmodel cm) { m_cmodel = cm; }
00048 
00051   inline int channels (void) const { return m_channels; }
00052 
00053 protected:
00054 
00056   Image **m_images;
00058   int m_channels;
00060   char const * m_fname;
00061   /* The way the current image's colors are encoded. */
00062   clrmodel m_cmodel;
00063 
00065   void init (Image *images[]);
00066 }; /* class PixmapFile */
00067 
00070 #endif /* PIXMAP_FILE_HH__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines