Enum SvgPathCommand
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
Represents a path commmand. Each command may reference floats 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.
D2D1_SVG_PATH_COMMAND
public enum SvgPathCommand
Fields
ClosePath = 0
Closes the current subpath. Uses no segment data.
MoveAbsolute = 1
Starts a new subpath at the coordinate (x y). Uses 2 floats of segment data.
MoveRelative = 2
Starts a new subpath at the coordinate (x y). Uses 2 floats of segment data.
LineAbsolute = 3
Draws a line to the coordinate (x y). Uses 2 floats of segment data.
LineRelative = 4
Draws a line to the coordinate (x y). Uses 2 floats of segment data.
CubicAbsolute = 5
Draws a cubic Bezier curve (x1 y1 x2 y2 x y). The curve ends at (x, y) and is defined by the two control points (x1, y1) and (x2, y2). Uses 6 floats of segment data.
CubicRelative = 6
Draws a cubic Bezier curve (x1 y1 x2 y2 x y). The curve ends at (x, y) and is defined by the two control points (x1, y1) and (x2, y2). Uses 6 floats of segment data.
QuadraticAbsolute = 7
Draws a quadratic Bezier curve (x1 y1 x y). The curve ends at (x, y) and is defined by the control point (x1 y1). Uses 4 floats of segment data.
QuadraticRelative = 8
Draws a quadratic Bezier curve (x1 y1 x y). The curve ends at (x, y) and is defined by the control point (x1 y1). Uses 4 floats of segment data.
ArcAbsolute = 9
Draws an elliptical arc (rx ry x-axis-rotation large-arc-flag sweep-flag x y). The curve ends at (x, y) and is defined by the arc parameters. The two flags are considered set if their values are non-zero. Uses 7 floats of segment data.
ArcRelative = 10
Draws an elliptical arc (rx ry x-axis-rotation large-arc-flag sweep-flag x y). The curve ends at (x, y) and is defined by the arc parameters. The two flags are considered set if their values are non-zero. Uses 7 floats of segment data.
HorizontalAbsolute = 11
Draws a horizontal line to the coordinate (x). Uses 1 float of segment data.
HorizontalRelative = 12
Draws a horizontal line to the coordinate (x). Uses 1 float of segment data.
VerticalAbsolute = 13
Draws a vertical line to the coordinate (y). Uses 1 float of segment data.
VerticalRelative = 14
Draws a vertical line to the coordinate (y). Uses 1 float of segment data.
CubicSmoothAbsolute = 15
Draws a smooth cubic Bezier curve (x2 y2 x y). The curve ends at (x, y) and is defined by the control point (x2, y2). Uses 4 floats of segment data.
CubicSmoothRelative = 16
Draws a smooth cubic Bezier curve (x2 y2 x y). The curve ends at (x, y) and is defined by the control point (x2, y2). Uses 4 floats of segment data.
QuadraticSmoothAbsolute = 17
Draws a smooth quadratic Bezier curve ending at (x, y). Uses 2 floats of segment data.
QuadraticSmoothRelative = 18
Draws a smooth quadratic Bezier curve ending at (x, y). Uses 2 floats of segment data.