Click or drag to resize
CanvasSpriteBatchDpi Property
[Win10_10586] Gets the dots-per-inch (DPI) of this sprite batch.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public float Dpi { get; }

Property Value

Type: Single

Implements

ICanvasResourceCreatorWithDpiDpi
Remarks

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

DPI describes the ratio between device independent pixels (DIPs) and actual physical pixels. The identity DPI value is 96, which means DIPs and pixels are the same.

Sprite batches inherit their DPI from the CanvasDrawingSession they were created from.

For more information, see DPI and DIPs.

See Also