输出图片的封装类

时间:2015-03-09 08:44:03
【文件属性】:

文件名称:输出图片的封装类

文件大小:2KB

文件格式:ZIP

更新时间:2015-03-09 08:44:03

gdi gdi+ 画图

用gdi和gdi+画图的封装类,可以瓦片式平铺,拉伸和正常输出。可以画bmp, gif ,jpg,png等图片格式 HBITMAP BtimapHandleFromFile(LPCTSTR lpszFIle); HBITMAP BtimapHandleFromResouceID(UINT uID); CBitmap* BtimapFromFile(LPCTSTR lpszFIle); void BitBltBitamp(CBitmap* pImg, CDC* pDC, CRect rcDest, CPoint ptSrc = CPoint(0,0)); void BitBltBitamp(LPCTSTR strFile, CDC* pDC, CRect rcDest, CPoint ptSrc= CPoint(0,0)); void StretchBitamp(CBitmap* pImg, CDC* pDC, CRect rcDest, CRect rcSrc); void StretchBitamp(LPCTSTR strFile, CDC* pDC, CRect rcDest, CRect rcSrc); void StretchBitamp(CBitmap* pImg, CDC* pDC, CRect rcDest); void StretchBitamp(LPCTSTR strFile, CDC* pDC, CRect rcDest); void TileBitmap(CBitmap* pImg, CDC* pDC, CRect rcDest); void TileBitmap(LPCTSTR strFile, CDC* pDC, CRect rcDest); Bitmap* ImageFromFile(LPCTSTR lpszFIle); void BitBltImage(Bitmap* pImg, CDC* pDC, CRect rcDest, CPoint ptSrc = CPoint(0,0)); void BitBltImage(LPCTSTR strFile, CDC* pDC, CRect rcDest, CPoint ptSrc = CPoint(0,0)); void StretchImage(Bitmap* pImg, CDC* pDC, CRect rcDest, CRect rcSrc); void StretchImage(LPCTSTR strFile, CDC* pDC, CRect rcDest, CRect rcSrc); void StretchImage(Bitmap* pImg, CDC* pDC, CRect rcDest); void StretchImage(LPCTSTR strFile, CDC* pDC, CRect rcDest); void TileImage(Bitmap* pImg, CDC* pDC, CRect rcDest); void TileImage(LPCTSTR strFile, CDC* pDC, CRect rcDest);


【文件预览】:
gdiplush.h
DrawHelper.h
DrawHelper.cpp

网友评论