Click or drag to resize
CanvasDrawingSessionDpi Property
Gets the dots-per-inch (DPI) of this drawing session.

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

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.

Drawing sessions inherit their DPI from the CanvasControl, CanvasImageSource or CanvasRenderTarget they were created from.

For more information, see DPI and DIPs.

See Also