GraphicsPath::AddLine(constPoint&,constPoint&) メソッド (gdipluspath.h)

GraphicsPath::AddLine メソッドは、このパスの現在の図に行を追加します。

構文

Status AddLine(
  [in, ref] const Point & pt1,
  [in, ref] const Point & pt2
);

パラメーター

[in, ref] pt1

型: const Point

行を開始するポイントへの参照。

[in, ref] pt2

型: const Point

線を終了するポイントへの参照。

戻り値

種類: 状態

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

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

要件

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

こちらもご覧ください

AddLine メソッド

AddLines メソッド

領域でのクリッピング

パスの作成および描画

パス グラデーションの作成

Graphicspath

パス

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

Point

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