Click or drag to resize

ScreenRealScale Property

Gets the real scale of the pixels of the screen vs. points.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public float RealScale { get; }

Property Value

Type: Single
The real scale of pixels per point.
Remarks
The scale can be used to translate points to 'real' pixels. E.g.
var pixels = points * screen.Scale;
This is useful when creating fonts that need to be a certain pixel size. Since this is a real scale, this will give you the actual pixel size. This means on retina displays on OS X will appear to be half the physical size as regular displays.
See Also