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

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

構文

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

パラメーター

[in] pen

種類: const Pen*

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

[in, ref] pt1

型: const PointF

行の開始位置を指定する PointF オブジェクトへの参照。

[in, ref] pt2

型: const PointF

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

戻り値

種類: 状態

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

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

要件

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

こちらもご覧ください

DrawLines メソッド

グラフィックス

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

Pointf

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