00001 #ifndef __CJPEGImage__ 00002 #define __CJPEGImage__ 00003 00004 #include "CBaseImage.hpp" 00005 using Exponent::GUI::Graphics::CBaseImage; 00006 00007 // =========================================================================== 00008 00009 namespace Exponent 00010 { 00011 namespace GUI 00012 { 00013 namespace Graphics 00014 { 00032 class CJPEGImage : public CBaseImage 00033 { 00035 EXPONENT_CLASS_DECLARATION; 00038 // =========================================================================== 00039 00040 public: 00041 00042 // =========================================================================== 00043 00049 CJPEGImage(const CSystemString &filename); 00050 00054 CJPEGImage(); 00055 00059 virtual ~CJPEGImage(); 00060 00061 // =========================================================================== 00062 00067 virtual EImageFormats getImageFormat() const { return e_jpeg; } 00068 00074 virtual bool loadFromFile(const CSystemString &filename); 00075 00076 // =========================================================================== 00077 00084 static CJPEGImage *getNewInstance(const CSystemString &path, const CString &filename); 00085 }; 00086 } 00087 } 00088 } 00089 #endif // End of CJPEGImage.hpp