Method DrawSpriteBatch
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
DrawSpriteBatch(ISpriteBatch, IDeviceBitmap, InterpolationMode, SpriteOptions)
Renders all sprites in the given sprite batch to the device context using the specified drawing options.
NOTE: The antialiasing mode must be set to Aliased.
void DrawSpriteBatch(ISpriteBatch spriteBatch, IDeviceBitmap bitmap, InterpolationMode interpolationMode, SpriteOptions spriteOptions)
Parameters
spriteBatch
ISpriteBatchThe sprite batch to draw.
bitmap
IDeviceBitmapThe bitmap from which the sprites are to be sourced. Each sprite's source rectangle refers to a portion of this bitmap.
interpolationMode
InterpolationModeThe interpolation mode to use when drawing this sprite batch. This determines how Direct2D interpolates pixels within the drawn sprites if scaling is performed. This must be NearestNeighbor or Linear./>
spriteOptions
SpriteOptionsThe additional drawing options, if any, to be used for the sprite batch.