RichViewPixelsPerInch Typed Constant

Top  Previous  Next

Number of pixels in one screen inch.

Unit RVFuncs.



  RichViewPixelsPerInch : Integer = 0

If 0 (default), RichView uses the screen resolution (Screen.PixelsPerInch).

If non zero, this value is used.

This value is used when converting pixels on the screen to mm, inches, twips, pixels on the printer, and vice versa.

The most important applications are:


RTF export&import;

calculating sizes of objects when they are measured in twips.

This constant does not affect text (TRVStyle.TextStyles.PixelsPerInch property is used for text, it has the same meaning). This constant affects pictures and tables.

The main possible values: 96 (small font mode), 120 (large font mode).

Assigning positive value this constant makes printing and RTF export independent of the screen resolution (small font/large fonts mode).


If you use TRVRuler component (from RichViewActions) and if you assign a positive value to RichViewPixelsPerInch, assign the same value to RVRuler1.ScreenRes property,


TRichView ©