Table of Contents

Class SpriteBatchExtensions

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll
public static class SpriteBatchExtensions
Inheritance
SpriteBatchExtensions
Inherited Members

Methods

AddSprite(ISpriteBatch, RectFloat, in RectInt32?, in ColorRgba128Float?, in Matrix3x2Float?)

Adds a single sprite to the end of this sprite batch.

AddSprites(ISpriteBatch, ReadOnlySpan<RectFloat>, ReadOnlySpan<RectInt32>, ReadOnlySpan<ColorRgba128Float>, ReadOnlySpan<Matrix3x2Float>)

Adds the given sprites to the end of this sprite batch. The number of sprites is governed by the length of the destinationRectangles parameter. You may use a 1-length span for the other spans to apply the same value for that property to each of the sprites. You may use a 0-length span for the other spans to use the default value associated with those properties, which can reduce memory usage and increase performance.