00001 #ifndef __CBitmapImage__ 00002 #define __CBitmapImage__ 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 { 00034 class CBitmapImage : public CBaseImage 00035 { 00037 EXPONENT_CLASS_DECLARATION; 00040 // =========================================================================== 00041 00042 public: 00043 00044 // =========================================================================== 00045 00051 CBitmapImage(const CSystemString &filename); 00052 00056 CBitmapImage(); 00057 00061 virtual ~CBitmapImage(); 00062 00063 // =========================================================================== 00068 virtual EImageFormats getImageFormat() const { return e_bitmap; } 00069 00070 // =========================================================================== 00071 00077 virtual bool loadFromFile(const CSystemString &filename); 00078 00079 // =========================================================================== 00080 00087 static CBitmapImage *getNewInstance(const CSystemString &path, const CString &filename); 00088 }; 00089 } 00090 } 00091 } 00092 #endif // End of CBitmapImage.hpp