CanvasIO.dpi

Determines the screen's pixel density. A higher value will effectively scale up the interface, but keeping all detail. The I/O system should trigger a resize when this changes.

Note that this value refers to pixels in the physical sense, as in the dots on the screen, as opposed to pixels as a unit. In other places, Fluid uses pixels (or "px") to refer to 1/96th of an inch.

For primitive systems, a value of (96, 96) may be a good guess. If possible, please fetch this value from the operating system.

interface CanvasIO
const nothrow
dpi
()

Return Value

Type: Vector2

Current dots-per-inch value per axis.

Meta