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.

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>

HasLayers

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

public bool HasLayers { get; }

Property Value

bool