Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsVisible(Point&)

Graphics.IsVisible(const Point&) method

Applies to: desktop apps only

The Graphics::IsVisible method determines whether the specified point is inside 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]  const Point& point
) const;

Parameters

point [in]

Type: const Point&

Reference to a point to be tested to see whether it is inside the visible clipping region.

Return value

Type:

Type: BOOL

If the specified point is inside the visible clipping region, this method returns TRUE; otherwise, it returns FALSE.

Examples

The following example creates a Point object and determines whether the point is visible on the display device. If it is, it fills an ellipse that represents the point.


VOID Example_IsVisible(HDC hdc)
{
   Graphics graphics(hdc);

   // Create a Point object.
   Point visiblePoint(100, 100);

   // Determine whether the point is visible and, if it is, 
   // draw an ellipse.
   if (graphics.IsVisible(visiblePoint))
   {
       graphics.FillEllipse(&SolidBrush(Color(255, 0, 0, 0)), 100, 100, 5, 5);
   }
}

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusgraphics.h (include Gdiplus.h)

Library

Gdiplus.lib

DLL

Gdiplus.dll

See also

Graphics
Graphics::IsVisibleClipEmpty
Point

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2015 Microsoft