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.
Describes a line segment.
Syntax
typedef enum __MIDL___MIDL_itf_xpsobjectmodel_0000_0000_0011 {
XPS_SEGMENT_TYPE_ARC_LARGE_CLOCKWISE = 1,
XPS_SEGMENT_TYPE_ARC_LARGE_COUNTERCLOCKWISE,
XPS_SEGMENT_TYPE_ARC_SMALL_CLOCKWISE,
XPS_SEGMENT_TYPE_ARC_SMALL_COUNTERCLOCKWISE,
XPS_SEGMENT_TYPE_BEZIER,
XPS_SEGMENT_TYPE_LINE,
XPS_SEGMENT_TYPE_QUADRATIC_BEZIER
} XPS_SEGMENT_TYPE;
Constants
XPS_SEGMENT_TYPE_ARC_LARGE_CLOCKWISEValue: 1 The line segment is an arc that covers more than 180 degrees and is drawn in a clockwise direction from the start point to the end point. |
XPS_SEGMENT_TYPE_ARC_LARGE_COUNTERCLOCKWISEThe line segment is an arc that covers more than 180 degrees and is drawn in a counterclockwise direction from the start point to the end point. |
XPS_SEGMENT_TYPE_ARC_SMALL_CLOCKWISEThe line segment is an arc that covers at most 180 degrees and is drawn in a clockwise direction from the start point to the end point. |
XPS_SEGMENT_TYPE_ARC_SMALL_COUNTERCLOCKWISEThe line segment is an arc that covers at most 180 degrees and is drawn in a counterclockwise direction from the start point to the end point. |
XPS_SEGMENT_TYPE_BEZIERThe line segment is a cubic Bezier curve that is drawn between two points. |
XPS_SEGMENT_TYPE_LINEThe line segment is a straight line that is drawn between two points. |
XPS_SEGMENT_TYPE_QUADRATIC_BEZIERThe line segment is a quadratic Bezier curve that is drawn between two points. |
Remarks
A geometry segment is described by the start point, the segment type, and additional parameters whose values are determined by the segment type. The coordinates for the start point of the first segment are a property of the geometry figure. The start point of each subsequent segment is the end point of the preceding segment.
The table that follows shows an example of each segment type.
| Examples | |
|---|---|
XPS_SEGMENT_TYPE_ARC_LARGE_CLOCKWISE
|
XPS_SEGMENT_TYPE_ARC_LARGE_COUNTERCLOCKWISE
|
XPS_SEGMENT_TYPE_ARC_SMALL_CLOCKWISE
|
XPS_SEGMENT_TYPE_ARC_SMALL_COUNTERCLOCKWISE
|
XPS_SEGMENT_TYPE_BEZIER
|
XPS_SEGMENT_TYPE_LINE
|
XPS_SEGMENT_TYPE_QUADRATIC_BEZIER
|
|
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
| Header | xpsobjectmodel.h |