Click or drag to resize
CanvasSpriteBatchConvertDipsToPixels Method
[Win10_10586] Converts units from device independent pixels (DIPs) to physical pixels based on the 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 int ConvertDipsToPixels(
	float dips,
	CanvasDpiRounding dpiRounding
)

Parameters

dips
Type: SystemSingle
dpiRounding
Type: Microsoft.Graphics.CanvasCanvasDpiRounding

Return Value

Type: Int32

Implements

ICanvasResourceCreatorWithDpiConvertDipsToPixels(Single, CanvasDpiRounding)
Remarks

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

For more information, see DPI and DIPs.
See Also