Table of Contents

Struct DrawingCommandBatch

Namespace
SixLabors.ImageSharp.Drawing.Processing.Backends
Assembly
SixLabors.ImageSharp.Drawing.dll

One prepared draw-order command batch consumed by a drawing backend.

public readonly struct DrawingCommandBatch
Inherited Members

Constructors

DrawingCommandBatch(IReadOnlyList<CompositionSceneCommand>, bool)

Initializes a new instance of the DrawingCommandBatch struct.

public DrawingCommandBatch(IReadOnlyList<CompositionSceneCommand> commands, bool hasLayers)

Parameters

commands IReadOnlyList<CompositionSceneCommand>

The draw-order scene commands.

hasLayers bool

Indicates whether the command stream contains layer boundaries.

Remarks

Batches created through this constructor never contain apply barriers or clip controls; those commands are only produced by the internal canvas batcher.

Properties

CommandCount

Gets the total number of draw-order commands in the scene.

public int CommandCount { get; }

Property Value

int

Commands

Gets the draw-order scene commands.

public IReadOnlyList<CompositionSceneCommand> Commands { get; }

Property Value

IReadOnlyList<CompositionSceneCommand>

HasApply

Gets a value indicating whether this scene contains apply barriers.

public bool HasApply { get; }

Property Value

bool

HasClipControls

Gets a value indicating whether this scene contains clip control commands.

public bool HasClipControls { get; }

Property Value

bool

HasLayers

Gets a value indicating whether this scene contains inline layer commands.

public bool HasLayers { get; }

Property Value

bool