00001 #ifndef WINGDC_CLASS
00002 #define WINGDC_CLASS
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "winexdll.h"
00020
00021 #include <basis/portable.h>
00022
00023 class WINDOWS_EXTENSIONS_CLASS_STYLE WinGDC
00024 {
00025 public:
00026 HDC m_hDC;
00027
00028 WinGDC();
00029 virtual ~WinGDC();
00030
00031 HBITMAP WinGCreateBitmap( BITMAPINFO *pHeader, void * *ppBits);
00032
00033 u_int WinGGetDIBColorTable(u_int nStartIndex, u_int nNumberOfEntries,
00034 RGBQUAD *pBuffer);
00035 u_int WinGSetDIBColorTable(u_int nStartIndex, u_int nNumberOfEntries,
00036 RGBQUAD *pBuffer);
00037
00038 bool WinGBitBlt(HDC hdcDest,int nXOriginDest, int nYOriginDest,
00039 int nWidthDest, int nHeightDest, int nXOriginSrc, int nYOriginSrc);
00040 bool WinGStretchBlt(HDC hdcDest,int nXOriginDest, int nYOriginDest,
00041 int nWidthDest, int nHeightDest, int nXOriginSrc, int nYOriginSrc,
00042 int nWidthSrc, int nHeightSrc);
00043
00044 bool WinGRecommendDIBFormat(BITMAPINFO *pHeader);
00045
00046 };
00047
00048 #endif
00049