#ifndef _MESHWRP_IMAGE_HPP_ #define _MESHWRP_IMAGE_HPP_ #ifndef _COMMON_STRING_HPP_ #include #endif #ifndef _COMMON_GUIWINDOW_HPP_ #include #endif #ifndef _COMMON_GUIWINDOW_HPP_ #include #endif #ifndef _JPGIMG_DIB24_HPP_ #include #endif class Image : public DIB24 { public: Image(void); virtual ~Image(); Image &operator=(const Image &image); bool open(String strPathFileName,GUIWindow &window); bool newImage(LONG width,LONG height,GUIWindow &window); bool display(GUIWindow &window,const Rect &dstRect,const Point &srcPoint); bool display(GUIWindow &window); private: bool handleOpenGIF(const String &strPathFileName,PureDevice &pureDevice); bool handleOpenJPG(const String &strPathFileName,PureDevice &pureDevice); bool handleOpenBMP(const String &strPathFileName,PureDevice &pureDevice); }; inline Image &Image::operator=(const Image &image) { (DIB24&)*this=(DIB24&)image; return *this; } #endif