Graphics::IsVisible(REAL,REAL,REAL,REAL) method (gdiplusgraphics.h)

The Graphics::IsVisible method determines whether the specified rectangle intersects the visible clipping region of this Graphics object. The visible clipping region is the intersection of the clipping region of this Graphics object and the clipping region of the window.

Syntax

BOOL IsVisible(
  [in] REAL x,
  [in] REAL y,
  [in] REAL width,
  [in] REAL height
);

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.

Return value

Type: BOOL

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

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 gdiplusgraphics.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Graphics

Graphics::IsVisibleClipEmpty