ScreenDPI

Viewer interaction

Description

Screen DPI used to map PDF points to pixels: at 100 percent zoom one PDF point becomes ScreenDPI/72 pixels

The value starts at 96, auto-detects from the host monitor when the control window is created and updates on WM_DPICHANGED; assigning a different value clears the bitmap cache and rebuilds the layout, which makes explicit assignment useful for headless render-to-image tests, while values of 0 or below fall back to 96

Syntax

Delphi

Property ScreenDPI: Integer Read FScreenDPI Write SetScreenDPI;

See also

SetZoomPercent, ZoomPercent, RenderedWidth, TPDFlibViewer