BeginSpriteBatch Method (RenderContextBase)
Begins a Sprite Batch, returning the IPathDrawingContext. This is the fastest way to draw sprites and simply a proxy to %DrawSprites(ISprite2D, Rect, IEnumerable<Point>)% method.
Syntax
public abstract IPathDrawingContext BeginSpriteBatch( ISprite2D sprite, double centerX, double centerY, Nullable<double> width, Nullable<double> height )
Parameters
- sprite
- The sprite for the Sprite Batch
- centerX
- The start X coordinate (pixel coord)
- centerY
- The start Y coordinate (pixel coord)
- width
- An optional width override for the sprite. Defaults to Sprite.Width
- height
- An optional height override for the sprite. Defaults to Sprite.Height
Return Value
The IPathDrawingContext to continue the sprite batch
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also