Region::IsVisible(REAL,REAL,REAL,REAL,constGraphics*) method (gdiplusheaders.h)

The Region::IsVisible method determines whether a rectangle intersects this region.

Syntax

BOOL IsVisible(
  [in] REAL           x,
  [in] REAL           y,
  [in] REAL           width,
  [in] REAL           height,
  [in] const Graphics *g
);

Parameters

[in] x

Type: REAL

Real number that specifies the x-coordinate of the upper-left corner of the rectangle to test.

[in] y

Type: REAL

Real number that specifies the y-coordinate of the upper-left corner of the rectangle to test.

[in] width

Type: REAL

Real number that specifies the width of the rectangle to test.

[in] height

Type: REAL

Real number that specifies the height of the rectangle to test.

[in] g

Type: const Graphics*

Optional. Pointer to a Graphics object that contains the world and page transformations required to calculate the device coordinates of this region and the rectangle. The default value is NULL.

Return value

Type: BOOL

If the rectangle intersects this region, this method returns TRUE; otherwise, it returns FALSE.

Remarks

Note  A region contains its border.
 

Requirements

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

See also

Graphics

Rect

Region