ScaleHelperGetScale(IntPtr) Method

Gets the current scale factor of the specified window handle. If the handle is invalid or per-monitor DPI awareness is not enabled, it always returns the same value as SystemScale.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static PointF GetScale(
	IntPtr hWnd
)

Parameters

hWnd  IntPtr
The handle of the window for which the scale factor is requested.

Return Value

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

See Also