Rect::Rect(constPoint&,constSize&) メソッド (gdiplustypes.h)

Point オブジェクトを使用して X および Y データ メンバーを初期化し、Size オブジェクトを使用して Width および Height データ メンバーを初期化して Rect オブジェクトを作成します。

構文

void Rect(
  [in, ref] const Point & location,
  [in, ref] const Size &  size
);

パラメーター

[in, ref] location

型: const Point

この四角形の左上隅を指定する Point オブジェクトへの参照。

[in, ref] size

型: const Size

この四角形の幅と高さを指定する Size オブジェクトへの参照。

戻り値

なし

必要条件

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

こちらもご覧ください

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

Point

Rect

Rect コンストラクター

RectF

サイズ

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