WindowLogicalPixelSize Property |
Gets the number of pixels per logical pixel when on a high DPI display.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public float LogicalPixelSize { get; }
Public ReadOnly Property LogicalPixelSize As Single
Get
member LogicalPixelSize : float32 with get
Property Value
Type:
SingleRemarks
This indicates the number of pixels per logical pixel.
All units in Eto.Forms such as control size, drawing operations, etc are in logical pixels.
When not in high DPI, this will be 1.0;
Retina displays in OS X will return 2; and
in windows this matches the scale set in the monitor settings.
Use the
LogicalPixelSizeChanged to detect when the window is moved to
a display with a different DPI.
See Also