RichViewPixelsPerInch Typed Constant
|Top Previous Next|
Number of pixels in one screen inch.
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:
▪calculating sizes of objects when they are measured in twips.
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 © trichview.com