Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PathPointType enumeration

Applies to: desktop apps only

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  {
  PathPointTypeStart          = 0,
  PathPointTypeLine           = 1,
  PathPointTypeBezier         = 3,
  PathPointTypePathTypeMask   = 0x7,
  PathPointTypePathDashMode   = 0x10,
  PathPointTypePathMarker     = 0x20,
  PathPointTypeCloseSubpath   = 0x80,
  PathPointTypeBezier3        = 3 
} PathPointType;

Constants

PathPointTypeStart

Indicates that the point is the start of a figure.

PathPointTypeLine

Indicates that the point is one of the two endpoints of a line.

PathPointTypeBezier

Indicates that the point is an endpoint or control point of a cubic Bézier spline.

PathPointTypePathTypeMask

Masks all bits except for the three low-order bits, which indicate the point type.

PathPointTypePathDashMode

Not used.

PathPointTypePathMarker

Specifies that the point is a marker.

PathPointTypeCloseSubpath

Specifies that the point is the last point in a closed subpath (figure).

PathPointTypeBezier3

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

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusenums.h (include Gdiplus.h)

See also

GraphicsPath
GraphicsPathIterator
PathData

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

Show:
© 2015 Microsoft