Table of Contents

Method SetSprites

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

SetSprites(int, int, ReadOnlySpan<RectFloat>, ReadOnlySpan<RectInt32>, ReadOnlySpan<ColorRgba128Float>, ReadOnlySpan<Matrix3x2Float>)

Updates the properties of the specified sprites in the sprite batch. Providing an empty span for any property will leave that property unmodified for the sprites. Providing a 1-length span for any property will use the same value for all of the sprites.

void SetSprites(int startIndex, int spriteCount, ReadOnlySpan<RectFloat> destinationRectangles, ReadOnlySpan<RectInt32> sourceRectangles, ReadOnlySpan<ColorRgba128Float> colors, ReadOnlySpan<Matrix3x2Float> transforms)

Parameters

startIndex int
spriteCount int
destinationRectangles ReadOnlySpan<RectFloat>
sourceRectangles ReadOnlySpan<RectInt32>
colors ReadOnlySpan<ColorRgba128Float>
transforms ReadOnlySpan<Matrix3x2Float>