Click or drag to resize

ScreenScale Property

Gets the logical 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 Scale { get; }

Property Value

Type: Single
The logical scale of pixels per point.
Remarks
The scale can be used to translate points to 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 logical scale, this will give you the 'recommended' pixel size that will appear to be the same physical size, even on retina displays.
See Also