Table of Contents

Class Paths

Namespace
ImageMagick
Assembly
Magick.NET-Q16-AnyCPU.dll

Class that can be used to chain path actions.

public sealed class Paths : IPaths<ushort>, IEnumerable<IPath>, IEnumerable
Inheritance
Paths
Implements
IPaths<ushort>
Inherited Members

Constructors

Paths()

Initializes a new instance of the Paths class.

public Paths()

Methods

ArcAbs(params PathArc[])

Draws an elliptical arc from the current point to (X, Y) using absolute coordinates. The size and orientation of the ellipse are defined by two radii(RadiusX, RadiusY) and an RotationX, which indicates how the ellipse as a whole is rotated relative to the current coordinate system. The center of the ellipse is calculated automagically to satisfy the constraints imposed by the other parameters. UseLargeArc and UseSweep contribute to the automatic calculations and help determine how the arc is drawn. If UseLargeArc is true then draw the larger of the available arcs. If UseSweep is true, then draw the arc matching a clock-wise rotation.

public IPaths<ushort> ArcAbs(params PathArc[] coordinates)

Parameters

coordinates PathArc[]

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

ArcAbs(IEnumerable<PathArc>)

Draws an elliptical arc from the current point to (X, Y) using absolute coordinates. The size and orientation of the ellipse are defined by two radii(RadiusX, RadiusY) and an RotationX, which indicates how the ellipse as a whole is rotated relative to the current coordinate system. The center of the ellipse is calculated automagically to satisfy the constraints imposed by the other parameters. UseLargeArc and UseSweep contribute to the automatic calculations and help determine how the arc is drawn. If UseLargeArc is true then draw the larger of the available arcs. If UseSweep is true, then draw the arc matching a clock-wise rotation.

public IPaths<ushort> ArcAbs(IEnumerable<PathArc> coordinates)

Parameters

coordinates IEnumerable<PathArc>

Returns

IPaths<ushort>

ArcRel(params PathArc[])

Draws an elliptical arc from the current point to (X, Y) using relative coordinates. The size and orientation of the ellipse are defined by two radii(RadiusX, RadiusY) and an RotationX, which indicates how the ellipse as a whole is rotated relative to the current coordinate system. The center of the ellipse is calculated automagically to satisfy the constraints imposed by the other parameters. UseLargeArc and UseSweep contribute to the automatic calculations and help determine how the arc is drawn. If UseLargeArc is true then draw the larger of the available arcs. If UseSweep is true, then draw the arc matching a clock-wise rotation.

public IPaths<ushort> ArcRel(params PathArc[] coordinates)

Parameters

coordinates PathArc[]

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

ArcRel(IEnumerable<PathArc>)

Draws an elliptical arc from the current point to (X, Y) using relative coordinates. The size and orientation of the ellipse are defined by two radii(RadiusX, RadiusY) and an RotationX, which indicates how the ellipse as a whole is rotated relative to the current coordinate system. The center of the ellipse is calculated automagically to satisfy the constraints imposed by the other parameters. UseLargeArc and UseSweep contribute to the automatic calculations and help determine how the arc is drawn. If UseLargeArc is true then draw the larger of the available arcs. If UseSweep is true, then draw the arc matching a clock-wise rotation.

public IPaths<ushort> ArcRel(IEnumerable<PathArc> coordinates)

Parameters

coordinates IEnumerable<PathArc>

Returns

IPaths<ushort>

Close()

Adds a path element to the current path which closes the current subpath by drawing a straight line from the current point to the current subpath's most recent starting point (usually, the most recent moveto point).

public IPaths<ushort> Close()

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

CurveToAbs(PointD, PointD, PointD)

Draws a cubic Bezier curve from the current point to (x, y) using (x1, y1) as the control point at the beginning of the curve and (x2, y2) as the control point at the end of the curve using absolute coordinates. At the end of the command, the new current point becomes the final (x, y) coordinate pair used in the polybezier.

public IPaths<ushort> CurveToAbs(PointD controlPointStart, PointD controlPointEnd, PointD end)

Parameters

controlPointStart PointD

Gets the coordinate of control point for curve beginning.

controlPointEnd PointD

Gets the coordinate of control point for curve ending.

end PointD

Gets the coordinate of the end of the curve.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

CurveToAbs(double, double, double, double, double, double)

Applies the PathCurveToAbs operation to the Paths.

public IPaths<ushort> CurveToAbs(double x1, double y1, double x2, double y2, double x, double y)

Parameters

x1 double

X coordinate of control point for curve beginning.

y1 double

Y coordinate of control point for curve beginning.

x2 double

X coordinate of control point for curve ending.

y2 double

Y coordinate of control point for curve ending.

x double

X coordinate of the end of the curve.

y double

Y coordinate of the end of the curve.

Returns

IPaths<ushort>

The Paths instance.

CurveToRel(PointD, PointD, PointD)

Draws a cubic Bezier curve from the current point to (x, y) using (x1,y1) as the control point at the beginning of the curve and (x2, y2) as the control point at the end of the curve using relative coordinates. At the end of the command, the new current point becomes the final (x, y) coordinate pair used in the polybezier.

public IPaths<ushort> CurveToRel(PointD controlPointStart, PointD controlPointEnd, PointD end)

Parameters

controlPointStart PointD

Gets the coordinate of control point for curve beginning.

controlPointEnd PointD

Gets the coordinate of control point for curve ending.

end PointD

Gets the coordinate of the end of the curve.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

CurveToRel(double, double, double, double, double, double)

Applies the PathCurveToRel operation to the Paths.

public IPaths<ushort> CurveToRel(double x1, double y1, double x2, double y2, double x, double y)

Parameters

x1 double

X coordinate of control point for curve beginning.

y1 double

Y coordinate of control point for curve beginning.

x2 double

X coordinate of control point for curve ending.

y2 double

Y coordinate of control point for curve ending.

x double

X coordinate of the end of the curve.

y double

Y coordinate of the end of the curve.

Returns

IPaths<ushort>

The Paths instance.

Drawables()

Converts this instance to a ImageMagick.IDrawables<> instance.

public IDrawables<ushort> Drawables()

Returns

IDrawables<ushort>

A new Drawables() instance.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<IPath> GetEnumerator()

Returns

IEnumerator<IPath>

An enumerator that iterates through the collection.

LineToAbs(params PointD[])

Draws a line path from the current point to the given coordinate using absolute coordinates. The coordinate then becomes the new current point.

public IPaths<ushort> LineToAbs(params PointD[] coordinates)

Parameters

coordinates PointD[]

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

LineToAbs(IEnumerable<PointD>)

Draws a line path from the current point to the given coordinate using absolute coordinates. The coordinate then becomes the new current point.

public IPaths<ushort> LineToAbs(IEnumerable<PointD> coordinates)

Parameters

coordinates IEnumerable<PointD>

Returns

IPaths<ushort>

LineToAbs(double, double)

Draws a line path from the current point to the given coordinate using absolute coordinates. The coordinate then becomes the new current point.

public IPaths<ushort> LineToAbs(double x, double y)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

Returns

IPaths<ushort>

The Paths instance.

LineToHorizontalAbs(double)

Draws a horizontal line path from the current point to the target point using absolute coordinates. The target point then becomes the new current point.

public IPaths<ushort> LineToHorizontalAbs(double x)

Parameters

x double

The X coordinate.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

LineToHorizontalRel(double)

Draws a horizontal line path from the current point to the target point using relative coordinates. The target point then becomes the new current point.

public IPaths<ushort> LineToHorizontalRel(double x)

Parameters

x double

The X coordinate.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

LineToRel(params PointD[])

Draws a line path from the current point to the given coordinate using relative coordinates. The coordinate then becomes the new current point.

public IPaths<ushort> LineToRel(params PointD[] coordinates)

Parameters

coordinates PointD[]

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

LineToRel(IEnumerable<PointD>)

Draws a line path from the current point to the given coordinate using relative coordinates. The coordinate then becomes the new current point.

public IPaths<ushort> LineToRel(IEnumerable<PointD> coordinates)

Parameters

coordinates IEnumerable<PointD>

Returns

IPaths<ushort>

LineToRel(double, double)

Draws a line path from the current point to the given coordinate using absolute coordinates. The coordinate then becomes the new current point.

public IPaths<ushort> LineToRel(double x, double y)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

Returns

IPaths<ushort>

The Paths instance.

LineToVerticalAbs(double)

Draws a vertical line path from the current point to the target point using absolute coordinates. The target point then becomes the new current point.

public IPaths<ushort> LineToVerticalAbs(double y)

Parameters

y double

The Y coordinate.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

LineToVerticalRel(double)

Draws a vertical line path from the current point to the target point using relative coordinates. The target point then becomes the new current point.

public IPaths<ushort> LineToVerticalRel(double y)

Parameters

y double

The Y coordinate.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

MoveToAbs(PointD)

Starts a new sub-path at the given coordinate using absolute coordinates. The current point then becomes the specified coordinate.

public IPaths<ushort> MoveToAbs(PointD coordinate)

Parameters

coordinate PointD

Gets the coordinate.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

MoveToAbs(double, double)

Starts a new sub-path at the given coordinate using absolute coordinates. The current point then becomes the specified coordinate.

public IPaths<ushort> MoveToAbs(double x, double y)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

Returns

IPaths<ushort>

The Paths instance.

MoveToRel(PointD)

Starts a new sub-path at the given coordinate using relative coordinates. The current point then becomes the specified coordinate.

public IPaths<ushort> MoveToRel(PointD coordinate)

Parameters

coordinate PointD

Gets the coordinate.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

MoveToRel(double, double)

Starts a new sub-path at the given coordinate using absolute coordinates. The current point then becomes the specified coordinate.

public IPaths<ushort> MoveToRel(double x, double y)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

Returns

IPaths<ushort>

The Paths instance.

QuadraticCurveToAbs(PointD, PointD)

Draws a quadratic Bezier curve from the current point to (x, y) using (x1, y1) as the control point using absolute coordinates. At the end of the command, the new current point becomes the final (x, y) coordinate pair used in the polybezier.

public IPaths<ushort> QuadraticCurveToAbs(PointD controlPoint, PointD end)

Parameters

controlPoint PointD

Gets the coordinate of control point.

end PointD

Gets the coordinate of final point.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

QuadraticCurveToAbs(double, double, double, double)

Draws a quadratic Bezier curve from the current point to (x, y) using (x1, y1) as the control point using relative coordinates. At the end of the command, the new current point becomes the final (x, y) coordinate pair used in the polybezier.

public IPaths<ushort> QuadraticCurveToAbs(double x1, double y1, double x, double y)

Parameters

x1 double

X coordinate of control point.

y1 double

Y coordinate of control point.

x double

X coordinate of final point.

y double

Y coordinate of final point.

Returns

IPaths<ushort>

The Paths instance.

QuadraticCurveToRel(PointD, PointD)

Draws a quadratic Bezier curve from the current point to (x, y) using (x1, y1) as the control point using relative coordinates. At the end of the command, the new current point becomes the final (x, y) coordinate pair used in the polybezier.

public IPaths<ushort> QuadraticCurveToRel(PointD controlPoint, PointD end)

Parameters

controlPoint PointD

Gets the coordinate of control point.

end PointD

Gets the coordinate of final point.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

QuadraticCurveToRel(double, double, double, double)

Draws a quadratic Bezier curve from the current point to (x, y) using (x1, y1) as the control point using relative coordinates. At the end of the command, the new current point becomes the final (x, y) coordinate pair used in the polybezier.

public IPaths<ushort> QuadraticCurveToRel(double x1, double y1, double x, double y)

Parameters

x1 double

X coordinate of control point.

y1 double

Y coordinate of control point.

x double

X coordinate of final point.

y double

Y coordinate of final point.

Returns

IPaths<ushort>

The Paths instance.

SmoothCurveToAbs(PointD, PointD)

Draws a cubic Bezier curve from the current point to (x,y) using absolute coordinates. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an PathCurveToAbs, PathCurveToRel, PathSmoothCurveToAbs or PathSmoothCurveToRel, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

public IPaths<ushort> SmoothCurveToAbs(PointD controlPoint, PointD end)

Parameters

controlPoint PointD

Gets the coordinate of second point.

end PointD

Gets the coordinate of final point.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

SmoothCurveToAbs(double, double, double, double)

Draws a cubic Bezier curve from the current point to (x,y) using absolute coordinates. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an PathCurveToAbs, PathCurveToRel, PathSmoothCurveToAbs or PathSmoothCurveToRel, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

public IPaths<ushort> SmoothCurveToAbs(double x2, double y2, double x, double y)

Parameters

x2 double

X coordinate of second point.

y2 double

Y coordinate of second point.

x double

X coordinate of final point.

y double

Y coordinate of final point.

Returns

IPaths<ushort>

The Paths instance.

SmoothCurveToRel(PointD, PointD)

Draws a cubic Bezier curve from the current point to (x,y) using relative coordinates. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an PathCurveToAbs, PathCurveToRel, PathSmoothCurveToAbs or PathSmoothCurveToRel, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

public IPaths<ushort> SmoothCurveToRel(PointD controlPoint, PointD end)

Parameters

controlPoint PointD

Gets the coordinate of second point.

end PointD

Gets the coordinate of final point.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

SmoothCurveToRel(double, double, double, double)

Draws a cubic Bezier curve from the current point to (x,y) using absolute coordinates. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an PathCurveToAbs, PathCurveToRel, PathSmoothCurveToAbs or PathSmoothCurveToRel, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

public IPaths<ushort> SmoothCurveToRel(double x2, double y2, double x, double y)

Parameters

x2 double

X coordinate of second point.

y2 double

Y coordinate of second point.

x double

X coordinate of final point.

y double

Y coordinate of final point.

Returns

IPaths<ushort>

The Paths instance.

SmoothQuadraticCurveToAbs(PointD)

Draws a quadratic Bezier curve (using absolute coordinates) from the current point to (X, Y). The control point is assumed to be the reflection of the control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not a PathQuadraticCurveToAbs, PathQuadraticCurveToRel, PathSmoothQuadraticCurveToAbs or PathSmoothQuadraticCurveToRel, assume the control point is coincident with the current point.). At the end of the command, the new current point becomes the final (X,Y) coordinate pair used in the polybezier.

public IPaths<ushort> SmoothQuadraticCurveToAbs(PointD end)

Parameters

end PointD

Gets the coordinate of final point.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

SmoothQuadraticCurveToAbs(double, double)

Draws a quadratic Bezier curve (using absolute coordinates) from the current point to (X, Y). The control point is assumed to be the reflection of the control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not a PathQuadraticCurveToAbs, PathQuadraticCurveToRel, PathSmoothQuadraticCurveToAbs or PathSmoothQuadraticCurveToRel, assume the control point is coincident with the current point.). At the end of the command, the new current point becomes the final (X,Y) coordinate pair used in the polybezier.

public IPaths<ushort> SmoothQuadraticCurveToAbs(double x, double y)

Parameters

x double

X coordinate of final point.

y double

Y coordinate of final point.

Returns

IPaths<ushort>

The Paths instance.

SmoothQuadraticCurveToRel(PointD)

Draws a quadratic Bezier curve (using relative coordinates) from the current point to (X, Y). The control point is assumed to be the reflection of the control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not a PathQuadraticCurveToAbs, PathQuadraticCurveToRel, PathSmoothQuadraticCurveToAbs or PathSmoothQuadraticCurveToRel, assume the control point is coincident with the current point.). At the end of the command, the new current point becomes the final (X,Y) coordinate pair used in the polybezier.

public IPaths<ushort> SmoothQuadraticCurveToRel(PointD end)

Parameters

end PointD

Gets the coordinate of final point.

Returns

IPaths<ushort>

The ImageMagick.IPaths<> instance.

SmoothQuadraticCurveToRel(double, double)

Draws a quadratic Bezier curve (using absolute coordinates) from the current point to (X, Y). The control point is assumed to be the reflection of the control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not a PathQuadraticCurveToAbs, PathQuadraticCurveToRel, PathSmoothQuadraticCurveToAbs or PathSmoothQuadraticCurveToRel, assume the control point is coincident with the current point.). At the end of the command, the new current point becomes the final (X,Y) coordinate pair used in the polybezier.

public IPaths<ushort> SmoothQuadraticCurveToRel(double x, double y)

Parameters

x double

X coordinate of final point.

y double

Y coordinate of final point.

Returns

IPaths<ushort>

The Paths instance.