Share via


Graphics::D rawRectangles(constPen*,constRect*,INT) メソッド (gdiplusgraphics.h)

Graphics::D rawRectangles メソッドは、四角形のシーケンスを描画します。

構文

Status DrawRectangles(
  [in] const Pen  *pen,
  [in] const Rect *rects,
  [in] INT        count
);

パラメーター

[in] pen

種類: const Pen*

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

[in] rects

型: const Rect*

描画する四角形の座標を指定する Rect オブジェクトの配列へのポインター。

[in] count

型: INT

rects 配列内の要素の数を指定する整数。

戻り値

種類: 状態

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

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

要件

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

関連項目

DrawRectangles メソッド

FillRectangle メソッド

グラフィックス

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

Rect

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