Android Question [B4X] HugeImageView: how to set starting point?

Alessandro71

Well-Known Member
Licensed User
Longtime User
HugeImageView starts all zoomed out at the center of the image.
Is it possible to center a specific point in the image and set a zoom level?
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
Change the last line in SetBitmap to:
B4X:
ZoomChanged(pnl.Width / 2, pnl.Height / 2, 2)
This will set the image to be centered and with zoom level 2. You will need to do some match to zoom to a specific point.
The starting point will be different for each image, so I'll try to devise a "reverse geocoding" :)
 
Upvote 0
Top