Table of Contents

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

Remarks

Stroke commands carry pen geometry only; they do not carry clip state. Backends resolve the active clip stack from the begin/end-clip commands surrounding each draw in the stream.

Properties

Brush

Gets the brush used during composition.

public Brush Brush { get; }

Property Value

Brush

DestinationOffset

Gets the absolute destination offset where the local coverage should be composited.

public Point DestinationOffset { get; }

Property Value

Point

DrawingOptions

Gets the drawing options carried by the command.

public DrawingOptions DrawingOptions { get; }

Property Value

DrawingOptions

GraphicsOptions

Gets the graphics options used during composition.

public GraphicsOptions GraphicsOptions { get; }

Property Value

GraphicsOptions

IsInsideLayer

Gets a value indicating whether the command was recorded inside a layer.

public bool IsInsideLayer { get; }

Property Value

bool

Pen

Gets the stroke metadata for this command.

public Pen Pen { get; }

Property Value

Pen

RasterizerOptions

Gets the rasterizer options used to generate coverage.

public RasterizerOptions RasterizerOptions { get; }

Property Value

RasterizerOptions

SourcePath

Gets the source stroke path.

public IPath SourcePath { get; }

Property Value

IPath

SubPixelOffset

Gets the fractional translation applied after the drawing options transform. Glyph geometry rides an integer destination offset; the sub-pixel remainder travels here so the queued command does not need per-operation drawing options to carry it.

public Vector2 SubPixelOffset { get; }

Property Value

Vector2

TargetBounds

Gets the absolute bounds of the logical target for this command.

public Rectangle TargetBounds { get; }

Property Value

Rectangle

Transform

Gets the drawing transform: the drawing options transform followed by the sub-pixel translation.

public Matrix4x4 Transform { get; }

Property Value

Matrix4x4