00001 #ifndef __CPNGImage__ 00002 #define __CPNGImage__ 00003 00004 #include "CBaseImage.hpp" 00005 using Exponent::GUI::Graphics::CBaseImage; 00006 00007 namespace Exponent 00008 { 00009 namespace GUI 00010 { 00011 namespace Graphics 00012 { 00030 class CPNGImage : public CBaseImage 00031 { 00033 EXPONENT_CLASS_DECLARATION; 00036 // =========================================================================== 00037 00038 public: 00039 00040 // =========================================================================== 00041 00047 CPNGImage(const CSystemString &filename); 00048 00052 CPNGImage(); 00053 00057 virtual ~CPNGImage(); 00058 00059 // =========================================================================== 00060 00065 virtual EImageFormats getImageFormat() const { return e_png; } 00066 00072 virtual bool loadFromFile(const CSystemString &filename); 00073 00074 // =========================================================================== 00075 00082 static CPNGImage *getNewInstance(const CSystemString &path, const CString &filename); 00083 00084 }; 00085 } 00086 } 00087 } 00088 #endif // End of CPNGImage.hpp