Reposition image in TImageViewer

  

i’m building an FMX app for iOS, it has a TImageViewer on a TPanel with the TImageVieweraligned to Contents. I load a bitmap from file into the TImageViewer and i can then pan around and zoom in/out on the image. Works fine.

What i want now is a button click event to reposition the left edge of the image on the left edge of the TPanel so it looks like the top image below.

Here is example of what it looks like when first loaded:

Here it is after i have panned it around:

I’ve searched and experimented all day but i just can’t get it. I tried reloading the bitmap file but did nothing. Any suggestions?

thanks, russ

Comments are closed.