【发布时间】:2013-03-15 17:48:06
【问题描述】:
我有一个WICBitmap,它在我的 MFC 程序中包含一个图像。有没有办法将此位图绘制到设备上下文中?
void DrawBitmap(IWICBitmapSource source, HDC targetDC, int X, int Y, int cx, int cy)
{
//source: The Bitmap to draw
//TargetDC: The HDC to draw onto (e.g. a printer or screen DC)
//X,Y: The location on the DC to draw the bitmap
}
【问题讨论】: