Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Attributes | List of all members
CDib Class Reference
Inheritance diagram for CDib:

Public Member Functions

bool Setup (CDC *pDC, int width, int height, int bits_per_pixel, HDRAWDIB hdd, RGBQUAD *colors=NULL)
 
bool Setup (CDC *pDC, GDALDataset *pDataset, HDRAWDIB hdd, bool progress_callback(int)=NULL)
 
CSize GetSize ()
 
BOOL Attach (HGDIOBJ hbm)
 
BOOL Load (LPCTSTR szPathName)
 
BOOL Load (HINSTANCE hInst, LPCTSTR lpResourceName)
 
BOOL Load (HINSTANCE hInst, UINT uID)
 
BOOL Draw (CDC &dc, const CRect *rcDst=NULL, const CRect *rcSrc=NULL, BOOL bUseDrawDib=TRUE, CPalette *pPal=NULL, BOOL bForeground=FALSE)
 
void GetDIBFromSection ()
 
BOOL DeleteObject ()
 
BOOL CreatePalette (CPalette &pal)
 
CPalette * GetPalette ()
 
UINT GetColorTable (RGBQUAD *colorTab, UINT nColors)
 
void SetPixel24 (int x, int y, const RGBQUAD &rgb)
 
void GetPixel24 (int x, int y, RGBQUAD &rgb)
 
byte GetPixel8 (int x, int y)
 
void SetPixel8 (int x, int y, byte val)
 
int GetWidth ()
 
int GetHeight ()
 
BITMAPINFOHEADERGetDIBHeader ()
 
char * GetData ()
 

Protected Attributes

BITMAP m_bm
 
CPalette m_pal
 
HDRAWDIB m_hdd
 
void * m_data
 
HBITMAP m_hbm
 
BITMAPINFOHEADERm_bmi
 
RGBQUADm_colors
 
int m_stride
 

The documentation for this class was generated from the following files: