Page 1 of 1

Zoom bar use tip

Posted: Wednesday 3rd August 2022 4:38pm
by Cedron
Here is a statement that I put in a ScrollBbar to control the Zoom property of an ImageView:
TheImageView.Zoom = Exp((TheScrollBar.Value - 50) * 0.6)
The same distance on the scroll represents the same multiplication factor. You can vary the midpoint (50 on the default ScrollBar range of 0 to 100), which varies the end cases, and you can vary the extent by changing the multiplier (0.6).

This combination of controls is so helpful.

Ced