[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Forms' (#lcl)

# TScreen.PixelsPerInch

The number of screen pixels per virtual inch (DPI) for the screen.

## Declaration

Source position: forms.pp line 1304

`public property TScreen.PixelsPerInch : Integer read FPixelsPerInch;`

## Description

PixelsPerInch is a read-only Integer property which contains the number of screen pixels per inch for the display device. The display uses virtual inches, which typically are bigger than physical inches. This requires that text appear bigger on a screen than on a printer.

The default value for the property is set in the constructor for the class instance using the horizontal pixels per inch from the ScreenInfo variable in the graphics unit. The value is updated (from the same source) when the UpdateScreen method is called.

The property value is used at run-time to detected when scaling is needed in forms, controls, and fonts to adjust for different design-time PPI settings.