00001
00002
00003
00004
00005
00006
00007
00008 #ifndef LIBGUI_CGRAPHICSMONO_H_
00009 #define LIBGUI_CGRAPHICSMONO_H_
00010
00011 #include "CGraphics.h"
00012
00013 class CImage;
00014
00019 class CGraphicsMono : public CGraphics
00020 {
00021 public:
00025 CGraphicsMono(INT16 width, INT16 height);
00030 CGraphicsMono(void* mem_addr, INT16 width, INT16 height);
00031 ~CGraphicsMono();
00032 virtual void FillRectangle(INT16 x, INT16 y, INT16 width, INT16 height);
00033
00034 virtual void DrawImage(CImage* img, INT16 x, INT16 y, INT8 anchor);
00035 protected:
00036 virtual INT32 GetPixel(INT16 x, INT16 y);
00037 private:
00038 static const UINT8 m_maskset[8];
00039 static const UINT8 m_maskclear[8];
00040 static const UINT8 m_maskrem[8];
00041 INT16 m_dYoffset;
00042 };
00043
00044 #endif