ScaleHelperGetScale(Screen) Method

Gets the current scale factor of the specified Screen.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static PointF GetScale(
	this Screen screen
)

Parameters

screen  Screen
The Screen for which the scale factor is requested.

Return Value

PointF
A PointF representing the scale factor of the screen, where X and Y are the horizontal and vertical scale factors, respectively.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Screen. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also