GraphicsPath::GraphicsPath(constPointF*,constBYTE*,INT,FillMode) method (gdipluspath.h)

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

[in] 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.

[in] 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.

[in] 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.

[in] 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

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