xulihang Active Member Licensed User Longtime User Apr 8, 2025 #1 Here is the expected behavior. Before zoom: After zoom: I am trying to do this by adjusting the HPosition and VPosition of the ScrollPane by calculating the coordinates in percentage of the mouse cursor in the ImageView. but it is a bit jumpy. Sample project attached. Attachments ZoomTest.zip 3.6 KB · Views: 91 Last edited: Apr 8, 2025
Here is the expected behavior. Before zoom: After zoom: I am trying to do this by adjusting the HPosition and VPosition of the ScrollPane by calculating the coordinates in percentage of the mouse cursor in the ImageView. but it is a bit jumpy. Sample project attached.
P PaulMeuris Well-Known Member Licensed User Apr 8, 2025 #2 There is a very good alternative: ZoomImageView Using the scroll wheel will zoom in or out at the location of the cursor on the image. B4X: ZoomImageView1.ImageView.SetBitmap(fx.LoadImage(File.DirAssets,"angelfish.jpg")) Upvote 0
There is a very good alternative: ZoomImageView Using the scroll wheel will zoom in or out at the location of the cursor on the image. B4X: ZoomImageView1.ImageView.SetBitmap(fx.LoadImage(File.DirAssets,"angelfish.jpg"))
xulihang Active Member Licensed User Longtime User Apr 9, 2025 #3 ZoomImageView works great but it is directly updating the ImageView's top and left, not suitable for my case using scrollpane. Upvote 0
ZoomImageView works great but it is directly updating the ImageView's top and left, not suitable for my case using scrollpane.