Description: A image process class, have below methods:
BOOL CompareWithBMPFile(LPCTSTR file)
void SetImage(Image* pImage)
BOOL IsCreated()
BOOL SetImage (LPCTSTR strImageFile)
INT GetHeight()
INT GetWidth()
static void DrawTransparentBitmap(HDC hdc, HBITMAP hBitmap, short xStart, short yStart, COLORREF cTransparentColor)
static int GetEncoderClsid(const WCHAR* format, CLSID* pClsid)
static BOOL SaveTargetToBMPFile(LPCTSTR szFile, HDC hDC)
BOOL SaveToBMPFile(LPCTSTR szFile)
void TileImage (CRect& rect, UINT nAlphaBlend=100, CDC*drawDC=NULL)
void StretchImage(int actualWidth, int actualHeight,UINT nAlphaBlend=100, CDC*drawDC=NULL)
void ShowImage(INT x=0, INT y=0, UINT nAlphaBlend=100, CDC*drawDC=NULL)
- [winpaint] - Some examples for graphical programming
- [SavingBitmap] - Saving the bitmap using HBITMAP on the d
File list (Check if you may need any files):
CooImage.cpp
CooImage.h