HICON 类型怎么转成 GDI+中的 Image类型?
HICON hIcon=:: ExtractIcon(AfxGetInstanceHandle(),m_strPath,0);
取得可执行文件的图标
我想用gdi+来把hIcon画出来
Graphics graphics(memDC.m_hDC);
Image image(hIcon);////////////////////////////////这里怎样转化
UINT width = image.GetWidth();
UINT height = image.GetHeight();
graphics.SetInterpolationMode(InterpolationModeHighQualityBicubic);
graphics.DrawImage(
&image,
Rect(0, 0, 42, 42),
0, 0,
width, height,
UnitPixel);