RectF::Intersect(RectF&,constRectF&,constRectF&) メソッド (gdiplustypes.h)

RectF::Intersect メソッドは、2 つの四角形の積集合を決定し、結果を RectF オブジェクトに格納します。

構文

BOOL Intersect(
  [out] RectF &       c,
  [in]  const RectF & a,
  [in]  const RectF & b
);

パラメーター

[out] c

種類: RectF&

2 つの四角形の交差部分を受け取る RectF オブジェクトへの参照。

[in] a

型: const RectF&

交差する 2 つの四角形のいずれかを参照します。

[in] b

型: const RectF&

交差する 2 つの四角形のいずれかを参照します。

戻り値

種類: BOOL

2 つの四角形の交差部分が空でない場合、このメソッドは TRUE を返します。それ以外の場合は、 FALSE を返します

要件

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

こちらもご覧ください

Intersect メソッド

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

Rect

RectF

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