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.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static PointF GetScale(
IntPtr hWnd
)
Public Shared Function GetScale (
hWnd As IntPtr
) As PointF
public:
static PointF GetScale(
IntPtr hWnd
)
static member GetScale :
hWnd : IntPtr -> PointF
- hWnd IntPtr
- The handle of the window for which the scale factor is requested.
PointFA
PointF representing the scale factor of the window, where X and Y are the horizontal and vertical scale factors, respectively.