Scale and DPI

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Scale and DPI

THtDocument

 

To set document scale use Document.Surface.ScaleFactor (single). 1 = 100%.

To set current DPI use Document.Surface.DPI property. Note that ScaleFactor contains final scaling, so for DPI 192 and content scale 200% it should be 4.

 

HtPanel

 

property Scale: integer - scaling in percents
property ScaleMin: single  - min scale value
property ScaleMax: single - max scale value
property ScaleFromCenter: boolean - scale from mouse cursor or left top.

 

To set target scaling  for smooth zoom use

 

procedure SetTargetScale(TargetScale: integer);