Struct DpiOf
Used for dpiOf parameter of functions. Allows to pass either a DPI value or an object from which gets DPI (window, screen etc).
public struct DpiOf
Remarks
Has implicit conversions from:
int- DPI.- wnd - gets DPI of the window.
IntPtrornint- (screen handle) gets DPI of the screen.- POINT - gets DPI of the screen that contains the point.
- RECT - gets DPI of screen that contains the rectangle.
- System.Windows.Forms.Control - gets DPI of the winforms control.
- System.Windows.DependencyObject - gets DPI of the WPF element.
The conversion operators set the DpiOf.Dpi property and the function can use it.
Namespace: Au.Types
Assembly: Au.dll
Constructors
| Name | Description |
|---|---|
| DpiOf(POINT) | |
| DpiOf(RECT) | |
| DpiOf(wnd) | |
| DpiOf(int) | |
| DpiOf(nint) | |
| DpiOf(DependencyObject) | |
| DpiOf(Control) |
Properties
| Name | Description |
|---|---|
| Dpi |