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
spriteBatchISpriteBatchThe sprite batch to draw.
bitmapIDeviceBitmapThe bitmap from which the sprites are to be sourced. Each sprite's source rectangle refers to a portion of this bitmap.
interpolationModeInterpolationModeThe 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./>
spriteOptionsSpriteOptionsThe additional drawing options, if any, to be used for the sprite batch.