 |
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.AvaloniaUIAssembly: Ab4d.SharpEngine.AvaloniaUI (in Ab4d.SharpEngine.AvaloniaUI.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntaxpublic static (float , float ) GetDpiScale(
IRenderRoot? visualRoot
)
Parameters
- visualRoot IRenderRoot
- IRenderRoot (can be get by from most Avalonia controls by this.VisualRoot)
Return Value
ValueTupleSingle,
Singletuple with dpiScaleX and dpiScaleY
See Also