ID2D1DeviceContext3::DrawSpriteBatch(ID2D1SpriteBatch*,ID2D1Bitmap*,D2D1_BITMAP_INTERPOLATION_MODE,D2D1_SPRITE_OPTIONS) method (d2d1_3.h)
Renders all sprites in the given sprite batch to the device context using the specified drawing options.
Syntax
void DrawSpriteBatch(
[in] ID2D1SpriteBatch *spriteBatch,
[in] ID2D1Bitmap *bitmap,
D2D1_BITMAP_INTERPOLATION_MODE interpolationMode,
D2D1_SPRITE_OPTIONS spriteOptions
);
Parameters
[in] spriteBatch
Type: ID2D1SpriteBatch*
The sprite batch to draw.
[in] bitmap
Type: ID2D1Bitmap*
The bitmap from which the sprites are to be sourced. Each sprite’s source rectangle refers to a portion of this bitmap.
interpolationMode
Type: D2D1_BITMAP_INTERPOLATION_MODE
The interpolation mode to use when drawing this sprite batch. This determines how Direct2D interpolates pixels within the drawn sprites if scaling is performed.
spriteOptions
Type: D2D1_SPRITE_OPTIONS
The additional drawing options, if any, to be used for this sprite batch.
Return value
None
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d2d1_3.h |
Library | D2d1.lib |
DLL | D2d1.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for