Graphics::D rawImage 方法绘制图像。
语法
Status DrawImage(
  Image          *image,
  const PointF & point
);
参数
image
指向指定源 图像的 Image 对象的指针。
point
对 PointF 对象的引用,该对象指定绘制图像的目标位置左上角的坐标。
返回值
如果方法成功,则返回 Ok,这是 Status 枚举的元素。
如果 方法失败,它将返回 Status 枚举的其他元素之一。
注解
示例
以下示例绘制图像。 使用 左上角的点 参数指定的坐标绘制图像。
VOID Example_DrawImage8(HDC hdc)
{
   Graphics graphics(hdc);
   // Create an Image object.
   Image image(L"climber.jpg");
   // Draw the image.
   graphics.DrawImage(&image, PointF(0.0f, 0.0f));
}
要求
| 要求 | 值 | 
|---|---|
| Header | gdiplusgraphics.h |