GraphicsPath::IsOutlineVisible method

The GraphicsPath::IsOutlineVisible method determines whether a specified point touches the outline of this path when the path is drawn by a specified Graphicsobject and a specified pen.


BOOL IsOutlineVisible(
  IN const Point &  point,
  IN const Pen      *pen,
  IN const Graphics *g



Type: const Point

Reference to the point to be tested.


Type: const Pen*

Pointer to a Pen object. This method determines whether the test point touches the path outline that would be drawn by this pen. More points will touch an outline drawn by a wide pen than will touch an outline drawn by a narrow pen.


Type: const Graphics*

Optional. Pointer to a Graphics object that specifies a world-to-device transformation. If the value of this parameter is NULL, the test is done in world coordinates; otherwise, the test is done in device coordinates. The default value is NULL.

Return Value

Type: Type: BOOL

If the test point touches the outline of this path, this method returns TRUE; otherwise, it returns FALSE.


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

See Also

Clipping with a Region

Constructing and Drawing Paths

Creating a Path Gradient



IsOutlineVisible Methods

IsVisible Methods



Pens, Lines, and Rectangles


Setting Pen Width and Alignment