PathPointType enumeration (gdiplusenums.h)

The PathPointType enumeration indicates point types and flags for the data points in a path. Bits 0 through 2 indicate the type of a point, and bits 3 through 7 hold a set of flags that specify attributes of a point. This enumeration is used by the GraphicsPath, GraphicsPathIterator, and PathData classes.

Syntax

typedef enum PathPointType {
  PathPointTypeStart = 0,
  PathPointTypeLine = 1,
  PathPointTypeBezier = 3,
  PathPointTypePathTypeMask = 0x07,
  PathPointTypeDashMode = 0x10,
  PathPointTypePathMarker = 0x20,
  PathPointTypeCloseSubpath = 0x80,
  PathPointTypeBezier3 = 3
} ;

Constants

 
PathPointTypeStart
Value: 0
Indicates that the point is the start of a figure.
PathPointTypeLine
Value: 1
Indicates that the point is one of the two endpoints of a line.
PathPointTypeBezier
Value: 3
Indicates that the point is an endpoint or control point of a cubic Bézier spline.
PathPointTypePathTypeMask
Value: 0x07
Masks all bits except for the three low-order bits, which indicate the point type.
PathPointTypeDashMode
Value: 0x10
Not used.
PathPointTypePathMarker
Value: 0x20
Specifies that the point is a marker.
PathPointTypeCloseSubpath
Value: 0x80
Specifies that the point is the last point in a closed subpath (figure).
PathPointTypeBezier3
Value: 3
Indicates that the point is an endpoint or control point of a cubic Bézier spline.

Remarks

A GraphicsPath object has an array of points and an array of types. Each element in the array of types is a byte that specifies the point type and a set of flags for the corresponding element in the array of points.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header gdiplusenums.h (include Gdiplus.h)

See also

GraphicsPath

GraphicsPathIterator

PathData