Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
PathPointTypeStartValue: 0 Indicates that the point is the start of a figure. |
PathPointTypeLineValue: 1 Indicates that the point is one of the two endpoints of a line. |
PathPointTypeBezierValue: 3 Indicates that the point is an endpoint or control point of a cubic Bézier spline. |
PathPointTypePathTypeMaskValue: 0x07 Masks all bits except for the three low-order bits, which indicate the point type. |
PathPointTypeDashModeValue: 0x10 Not used. |
PathPointTypePathMarkerValue: 0x20 Specifies that the point is a marker. |
PathPointTypeCloseSubpathValue: 0x80 Specifies that the point is the last point in a closed subpath (figure). |
PathPointTypeBezier3Value: 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) |