00001
00002
00003
00004
00005
00006 #ifndef __GVDIBSECTION_H__
00007 #define __GVDIBSECTION_H__
00008
00013 class gvDIBSection{
00014 public:
00015 BYTE *pBits;
00016 int Width, Height;
00017 unsigned int BytesPerScanline;
00018 HDC hScreenDC, hMemoryDC;
00019 HBITMAP hDefaultBitmap, hDIBitmap;
00020
00021 public:
00022 gvDIBSection();
00023 ~gvDIBSection();
00024 void Destroy(void);
00025 HDC Create(HDC hScreenDC, int width, int height);
00026 void Clear(unsigned char r,unsigned char g,unsigned char b);
00027 void Swap(void);
00028 private:
00029 HBITMAP MakeDIBSection(int width, int height, BYTE **ppBits);
00030 };
00031
00032 #endif
00033