Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages   Examples  

ByteImage.h

00001 /* Copyright (c) 2001 C. Grigorescu S.E. Grigorescu */
00002 
00003 #ifndef BYTE_IMAGE_H
00004 #define BYTE_IMAGE_H
00005 
00006 #include "Image.h"
00007 
00008 #define ON  255
00009 #define OFF 0
00010 
00014 class ByteImage : public Image< byte > 
00015 {
00016  public:
00018   ByteImage(char *name = "") : Image< byte >(name) {}
00019 
00021   ByteImage(int w, int h, char *name = "") : Image< byte > (w,h,name) {}
00022 
00026   ByteImage &operator&=(const ByteImage & img);
00027 
00031   ByteImage &operator|=(const ByteImage & img);  
00032 
00036   ByteImage &operator^=(const ByteImage & img);  
00037 
00040   ByteImage &operator!(void);  
00041 
00045   ByteImage &operator=(Image< byte > &img); 
00046 };
00047 
00048 #endif