Click or drag to resize
Ab4d.SharpEngine logo

SharpEngineSceneViewGetDpiScale Method

Returns the dpiScaleX and dpiScaleY of the specified visualRoot (can be get by from most Avalonia controls by this.VisualRoot)

Namespace: Ab4d.SharpEngine.AvaloniaUI
Assembly: Ab4d.SharpEngine.AvaloniaUI (in Ab4d.SharpEngine.AvaloniaUI.dll) Version: 4.0.9584+1b7ee6bb29044dc79cb258fb9be4150ffbca20f3
Syntax
C#
public static (float , float ) GetDpiScale(
	IRenderRoot? visualRoot
)

Parameters

visualRoot  IRenderRoot
IRenderRoot (can be get by from most Avalonia controls by this.VisualRoot)

Return Value

ValueTupleSingle, Single
tuple with dpiScaleX and dpiScaleY
See Also