文件名称:CooImage
介绍说明--下载内容均来自于网络,请自行研究使用
项目中用的一个图像处理类 CCooImage,支持以下方法:
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) -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)
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) -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)
相关搜索: HBITMAP
(系统自动生成,下载前可以参看下载内容)
下载文件列表
CooImage.cpp
CooImage.h
CooImage.h