Method CreateSpriteBatch
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
CreateSpriteBatch()
Creates a new, empty sprite batch. After creating a sprite batch, use AddSprites(int, ReadOnlySpan<RectFloat>, ReadOnlySpan<RectInt32>, ReadOnlySpan<ColorRgba128Float>, ReadOnlySpan<Matrix3x2Float>) to add sprites to it, then use DrawSpriteBatch(ISpriteBatch, IDeviceBitmap, InterpolationMode, SpriteOptions) to draw it.
ISpriteBatch CreateSpriteBatch()