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

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
)

Parameters

sortMode
Type: Microsoft.Graphics.CanvasCanvasSpriteSortMode
interpolation
Type: Microsoft.Graphics.CanvasCanvasImageInterpolation

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.

See CanvasSpriteBatch for details.

See Also