Click or drag to resize
CanvasDrawingSession.CreateSpriteBatch Method (CanvasSpriteSortMode, CanvasImageInterpolation, CanvasSpriteOptions)
[Win10_10586] Creates a new sprite batch for efficiently drawing many CanvasBitmaps with a specific sort mode, interpolation and options.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public CanvasSpriteBatch CreateSpriteBatch(
	CanvasSpriteSortMode sortMode,
	CanvasImageInterpolation interpolation,
	CanvasSpriteOptions options
)

Parameters

sortMode
Type: Microsoft.Graphics.Canvas.CanvasSpriteSortMode
interpolation
Type: Microsoft.Graphics.Canvas.CanvasImageInterpolation
options
Type: Microsoft.Graphics.Canvas.CanvasSpriteOptions

Return Value

Type: CanvasSpriteBatch
Remarks

This API is only available when running on Windows 10 build 10586 (released November 2015) or greater.

The default sortMode is None.

The default interpolation is Linear. The only other valid interpolation option is NearestNeighbor. Any other values will result in the call failing.

The default value for options is None.

See CanvasSpriteBatch for details.

See Also