RectF::Intersect(RectF&,constRectF&,constRectF&) method (gdiplustypes.h)

The RectF::Intersect method determines the intersection of two rectangles and stores the result in a RectF object.

Syntax

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

Parameters

[out] c

Type: RectF&

Reference to a RectF object that receives the intersection of the two rectangles.

[in] a

Type: const RectF&

Reference to one of the two rectangles to be intersected.

[in] b

Type: const RectF&

Reference to one of the two rectangles to be intersected.

Return value

Type: BOOL

If the intersection of the two rectangles is not empty, this method returns TRUE; otherwise, it returns FALSE.

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplustypes.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Intersect Methods

Pens, Lines, and Rectangles

Rect

RectF

Using a Pen to Draw Lines and Rectangles