00001 #ifndef IZ_PORTABLE_IMAGE_H 00002 #define IZ_PORTABLE_IMAGE_H 1 00003 00004 #include "image.h" 00005 00006 namespace IZ 00007 { 00008 class PortableImage : public IZ::Image<> 00009 { 00010 public: 00011 PortableImage(); 00012 00013 ~PortableImage(); 00014 00015 public: 00016 int components() const 00017 { return m_components; } 00018 00019 void setComponents(int components) 00020 { m_components = components; } 00021 00022 bool readHeader(const unsigned char* data); 00023 00024 unsigned char* writeHeader(unsigned char* data); 00025 00026 private: 00027 int m_components; 00028 int m_maxVal; 00029 }; 00030 } 00031 00032 #endif