ScaleHelperGetScale(Screen) Method
Gets the current scale factor of the specified
Screen.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static PointF GetScale(
this Screen screen
)
<ExtensionAttribute>
Public Shared Function GetScale (
screen As Screen
) As PointF
public:
[ExtensionAttribute]
static PointF GetScale(
Screen^ screen
)
[<ExtensionAttribute>]
static member GetScale :
screen : Screen -> PointF
- screen Screen
- The Screen for which the scale factor is requested.
PointFA
PointF representing the scale factor of the screen, where X and Y are the horizontal and vertical scale factors, respectively.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).