GraphicsPath::GraphicsPath method

Creates a GraphicsPath::GraphicsPath object based on an array of points, an array of types, and a fill mode.

Syntax

void GraphicsPath(
  IN const PointF *points,
  IN const BYTE   *types,
  IN INT          count,
  IN FillMode     fillMode
);

Parameters

points

Type: const PointF*

Pointer to an array of points that specifies the endpoints and control points of the lines and Bezier splines that are used to draw the path.

types

Type: const BYTE*

Pointer to an array of bytes that holds the point type and a set of flags for each point in the points array. The point type is stored in the three least significant bits, and the flags are stored in the four most significant bits. Possible point types and flags are listed in the PathPointType enumeration.

count

Type: INT

Integer that specifies the number of elements in the points array. This is the same as the number of elements in the types array.

fillMode

Type: FillMode

Optional. Element of the FillMode enumeration that specifies how areas are filled if the path intersects itself. The default value is FillModeAlternate.

Return Value

None

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 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

FillMode

GraphicsPath

GraphicsPath Constructors

PathData

PathGradientBrush

PathPointType

Paths

PointF