00001
00002
00003
00004
00005
00006
00007
00008 #ifndef LIBGUI_CIMAGE_H_
00009 #define LIBGUI_CIMAGE_H_
00010
00011 #include "integer.h"
00012 #include "CGraphicsMono.h"
00013
00014 class CGraphics;
00015
00026 class CImage : protected CGraphicsMono
00027 {
00028 private:
00029 CImage(INT16 width, INT16 height);
00030 CImage(void* mem_addr, INT16 width, INT16 height);
00031 public:
00032 ~CImage();
00042 static CImage* CreateImage(INT16 width, INT16 height);
00055 static CImage* CreateImage(void* mem_addr, INT16 width, INT16 height);
00066 static CImage* CreateXBMImage(UINT8* data, INT16 width, INT16 height);
00078 CGraphics* GetGraphics();
00084 INT16 GetWidth();
00090 INT16 GetHeight();
00150 void GetRGB(INT32* rgbData, INT32 length, INT32 offset, INT16 scanlength,
00151 INT16 x, INT16 y, INT16 width, INT16 height);
00152 private:
00153
00154 };
00155
00156 #endif