Struct StrokePathCommand
- Namespace
- SixLabors.ImageSharp.Drawing.Processing.Backends
- Assembly
- SixLabors.ImageSharp.Drawing.dll
One stroked path command queued by the canvas batcher.
public readonly struct StrokePathCommand
- Inherited Members
Constructors
StrokePathCommand(IPath, Brush, DrawingOptions, in RasterizerOptions, Rectangle, Point, Pen, IReadOnlyList<IPath>?, bool)
Initializes a new instance of the StrokePathCommand struct.
public StrokePathCommand(IPath sourcePath, Brush brush, DrawingOptions drawingOptions, in RasterizerOptions rasterizerOptions, Rectangle targetBounds, Point destinationOffset, Pen pen, IReadOnlyList<IPath>? clipPaths, bool isInsideLayer)
Parameters
sourcePathIPathThe source stroke path.
brushBrushThe brush used to shade the stroke.
drawingOptionsDrawingOptionsThe drawing options (graphics, shape, transform) used during composition.
rasterizerOptionsRasterizerOptionsThe rasterizer options used to generate coverage.
targetBoundsRectangleThe absolute bounds of the logical target.
destinationOffsetPointThe absolute destination offset of the command.
penPenThe stroke metadata.
clipPathsIReadOnlyList<IPath>Optional clip paths supplied with the command.
isInsideLayerboolTrue if the command was recorded inside a layer.
Properties
Brush
Gets the brush used during composition.
public Brush Brush { get; }
Property Value
ClipPaths
Gets the optional clip paths carried by the command.
public IReadOnlyList<IPath>? ClipPaths { get; }
Property Value
DestinationOffset
Gets the absolute destination offset where the local coverage should be composited.
public Point DestinationOffset { get; }
Property Value
DrawingOptions
Gets the drawing options carried by the command.
public DrawingOptions DrawingOptions { get; }
Property Value
GraphicsOptions
Gets the graphics options used during composition.
public GraphicsOptions GraphicsOptions { get; }
Property Value
IsInsideLayer
Gets a value indicating whether the command was recorded inside a layer.
public bool IsInsideLayer { get; }
Property Value
Pen
Gets the stroke metadata for this command.
public Pen Pen { get; }
Property Value
RasterizerOptions
Gets the rasterizer options used to generate coverage.
public RasterizerOptions RasterizerOptions { get; }
Property Value
ShapeOptions
Gets the shape options carried by the command.
public ShapeOptions ShapeOptions { get; }
Property Value
SourcePath
Gets the source stroke path.
public IPath SourcePath { get; }
Property Value
TargetBounds
Gets the absolute bounds of the logical target for this command.
public Rectangle TargetBounds { get; }
Property Value
Transform
Gets the drawing transform.
public Matrix4x4 Transform { get; }