Click or drag to resize
CanvasAnimatedControl.ConvertDipsToPixels Method
Converts units from device independent pixels (DIPs) to physical pixels based on the current DPI of this control.

Namespace:  Microsoft.Graphics.Canvas.UI.Xaml
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: System.Single
dpiRounding
Type: Microsoft.Graphics.Canvas.CanvasDpiRounding

Return Value

Type: Int32

Implements

ICanvasResourceCreatorWithDpi.ConvertDipsToPixels(Single, CanvasDpiRounding)
Remarks
For more information, see DPI and DIPs.
See Also