导航:  GdiPlus Classes > Enumerations >

PathPointType

上一页返回章节概述下一页

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.

 

C++ Syntax

 

typedef enum {

PathPointTypeStart = 0,

PathPointTypeLine = 1,

PathPointTypeBezier = 3,

PathPointTypePathTypeMask = 0x7,

PathPointTypePathDashMode = 0x10,

PathPointTypePathMarker = 0x20,

PathPointTypeCloseSubpath = 0x80,

PathPointTypeBezier3 = 3

} PathPointType;

 

FreeBASIC 语法

 

enum

PathPointTypeStart           = 0

PathPointTypeLine            = 1

PathPointTypeBezier          = 3

PathPointTypePathTypeMask    = &H07

PathPointTypeDashMode        = &H10

PathPointTypePathMarker      = &H20

PathPointTypeCloseSubpath    = &H80

PathPointTypeBezier3         = 3

end enum

 

常数

 

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 Bezier 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 Bezier spline.