CanvasSvgPathCommand Enumeration |
Namespace: Microsoft.Graphics.Canvas.Svg
public enum CanvasSvgPathCommand
Member name | Value | Description | |
---|---|---|---|
ClosePath | 0 | [Win10_15063] Closes the current subpath. Uses no segment data. | |
MoveAbsolute | 1 | [Win10_15063] Starts a new subpath at the coordinate (x y). | |
MoveRelative | 2 | [Win10_15063] Starts a new subpath at the coordinate (x y). | |
LineAbsolute | 3 | [Win10_15063] Draws a line to the coordinate (x y). | |
LineRelative | 4 | [Win10_15063] Draws a line to the coordinate (x y). | |
CubicAbsolute | 5 | [Win10_15063] Draws a cubic Bezier curve (x1 y1 x2 y2 x y). | |
CubicRelative | 6 | [Win10_15063] Draws a cubic Bezier curve (x1 y1 x2 y2 x y). | |
QuadraticAbsolute | 7 | [Win10_15063] Draws a quadratic Bezier curve (x1 y1 x y). | |
QuadraticRelative | 8 | [Win10_15063] Draws a quadratic Bezier curve (x1 y1 x y). | |
ArcAbsolute | 9 | [Win10_15063] Draws an elliptical arc (rx ry x-axis-rotation large-arc-flag sweep-flag x y). | |
ArcRelative | 10 | [Win10_15063] Draws an elliptical arc (rx ry x-axis-rotation large-arc-flag sweep-flag x y). | |
HorizontalAbsolute | 11 | [Win10_15063] Draws a horizontal line to the coordinate (x). | |
HorizontalRelative | 12 | [Win10_15063] Draws a horizontal line to the coordinate (x). | |
VerticalAbsolute | 13 | [Win10_15063] Draws a vertical line to the coordinate (x). | |
VerticalRelative | 14 | [Win10_15063] Draws a vertical line to the coordinate (x). | |
CubicSmoothAbsolute | 15 | [Win10_15063] Draws a smooth cubic Bezier curve (x2 y2 x y) | |
CubicSmoothRelative | 16 | [Win10_15063] Draws a smooth cubic Bezier curve (x2 y2 x y) | |
QuadraticSmoothAbsolute | 17 | [Win10_15063] Draws a smooth quadratic Bezier curve ending at (x, y). | |
QuadraticSmoothRelative | 18 | [Win10_15063] Draws a smooth quadratic Bezier curve ending at (x, y). |
This API is only available when running on Windows 10 build 15063 (Creators Update) or greater.
Each command may reference elements from the segment data. Commands ending in Absolute interpret data as absolute coordinate. Commands ending in Relative interpret data as being relative to the previous point.