标签:mfc
1.环境配置
填gdiplus.lib
2.头文件
#include <GdiPlus.h> using namespace Gdiplus;
3.初始
static ULONG_PTR m_gdiplusToken; GdiplusStartupInput gdiplusStartupInput; GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
4.画
CClientDC *pDC = new CClientDC(GetDlgItem(IDC_PicBox)); pDC->SetStretchBltMode(HALFTONE); Graphics graphics(pDC->m_hDC); graphics.Clear(Color(255,255,0,0)); graphics.DrawImage(pMask, 0, 0,pMask->GetWidth(), pMask->GetHeight()); delete pDC;
delete以下代码
#ifdef _DEBUG #define new DEBUG_NEW #endif
标签:mfc
原文地址:http://blog.csdn.net/neng18/article/details/41788667