DPIgetScaledSize Method

Stator | API Documentation
Will return a size object (width and height) adjusted to the current scaling factor
Pass in the base width and height and this function will convert to the display scaling factor

Namespace:  Stator.libPublic.Utilities
Assembly:  libPublic (in libPublic.dll) Version: 4.0.2018.0 (4.0.18103)
Syntax

public static Size getScaledSize(
	int width,
	int height
)

Parameters

width
Type: SystemInt32
The width to scale
height
Type: SystemInt32
The height to scale

Return Value

Type: Size
A size object (width, height) adjusted for the device scale factor.
See Also

Reference