Graphics::D rawImage(Image*,constPointF&) メソッド (gdiplusgraphics.h)

Graphics::D rawImage メソッドはイメージを描画します。

構文

Status DrawImage(
  Image          *image,
  const PointF & point
);

パラメーター

image

ソース イメージを指定する Image オブジェクトへのポインター。

point

イメージを描画する位置の左上隅の座標を指定する PointF オブジェクトへの参照。

戻り値

メソッドが成功した場合は、Status 列挙の要素である Ok を返します

メソッドが失敗した場合は、 Status 列挙体の他の要素のいずれかを返します。

解説

次の例では、イメージを描画します。 イメージは、 point パラメーターで指定された座標の左上隅に描画されます。

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

こちらもご覧ください

画像の描画、配置、およびクローン作成

グラフィックス

Image

ビットマップの読み込みと表示

Pointf