Graphics::D rawLine(constPen*,constPoint&,constPoint&) メソッド (gdiplusgraphics.h)

Graphics::D rawLine メソッドは、2 つの点を結ぶ線を描画します。

構文

Status DrawLine(
  [in]      const Pen     *pen,
  [in, ref] const Point & pt1,
  [in, ref] const Point & pt2
);

パラメーター

[in] pen

種類: const Pen*

線の描画に使用されるペンへのポインター。

[in, ref] pt1

型: const Point

線の始点を指定する Point オブジェクトへの参照。

[in, ref] pt2

型: const Point

線の終点を指定する Point オブジェクトへの参照。

戻り値

種類: 状態

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

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

要件

要件
サポートされている最小のクライアント Windows XP、Windows 2000 Professional [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows 2000 Server [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー gdiplusgraphics.h (Gdiplus.h を含む)
Library Gdiplus.lib
[DLL] Gdiplus.dll

こちらもご覧ください

DrawLines メソッド

グラフィックス

ペン、直線、および四角形

Point

ペンを使用した直線と四角形の描画