Class WindowScaleChangeEventArgs
This event is triggered when the DPI of a window changes. This can happen if the window is moved between monitors with different DPI scaling settings or if the user changes DPI settings.
Inherited Members
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public class WindowScaleChangeEventArgs : WindowEventArgs
Constructors
WindowScaleChangeEventArgs(WindowHandle, float, float)
Initializes a new instance of the WindowScaleChangeEventArgs class.
Declaration
public WindowScaleChangeEventArgs(WindowHandle window, float scaleX, float scaleY)
Parameters
Type | Name | Description |
---|---|---|
WindowHandle | window | The window whose dpi has changed. |
float | scaleX | The new x axis scale factor. |
float | scaleY | The new y axis scale factor. |
Properties
ScaleX
The new scale value in the x-axis.
Declaration
public float ScaleX { get; }
Property Value
Type | Description |
---|---|
float |
ScaleY
The new scale value in the y-axis.
Declaration
public float ScaleY { get; }
Property Value
Type | Description |
---|---|
float |