00001 #ifndef LOPER_PORTABLEBITMAP
00002 #define LOPER_PORTABLEBITMAP
00003
00014 #include "PortablePicture.hpp"
00015
00016 class PortableBitmap : public PortablePicture< bool >
00017 {
00018 public:
00019
00020
00021
00022
00023 PortableBitmap() { width = height = 0; }
00024
00025 void setToBlack() { pixels.assign(pixels.size(), false); }
00026
00027
00028
00029
00030 PortableBitmap getDilatedImage();
00031
00032
00033
00034
00035 void loadFromFile(const char *filename);
00036 void saveAsPbm(const char *filename, bool bAscii=false);
00037
00038 PortableBitmap getEdgeImage();
00039 };
00040
00041
00042 #endif // LOPER_PORTABLEBITMAP