TCustomRichView.GetRealDocumentPixelsPerInch

<< Click to display table of contents >>

TCustomRichView.GetRealDocumentPixelsPerInch

Returns the pixel depth (a number of pixels in a logical inch) used to draw documents.

function GetRealDocumentPixelsPerInch: Integer;

(introduced in version 18)

If DocumentPixelsPerInch contains a positive value, this function returns it.

Otherwise, if RichViewPixelsPerInch (global variable) contains a positive value, this function returns it.

Otherwise, if the application supports multiple monitors having different pixel depth (Delphi 10.1+), this function returns the pixel depth of the monitor that contains a form containing this editor.

Otherwise, this function returns Screen.PixelsPerInch (a pixel depth of the primary monitor).