derez Expert Licensed User Longtime User Nov 29, 2020 #1 The ZoomImageview is great but I don't know how to keep the image zoom or pan state when the image is supplied by a camera and repeat itself every few seconds. If I zoom at a certain point - I want it to stay like that in the next picture as well. I tried to store the layout of the imageview before the next frame and set the imageview to these values after the bitmap is set but it keeps jumping all over. Any idea ? Last edited: Nov 30, 2020
The ZoomImageview is great but I don't know how to keep the image zoom or pan state when the image is supplied by a camera and repeat itself every few seconds. If I zoom at a certain point - I want it to stay like that in the next picture as well. I tried to store the layout of the imageview before the next frame and set the imageview to these values after the bitmap is set but it keeps jumping all over. Any idea ?
Erel B4X founder Staff member Licensed User Longtime User Nov 30, 2020 #2 Assuming that the images are with similar size, you can replace the image directly: Code: Copy XUIViewsUtils.SetBitmapAndFill(zoom.ImageView, NewBitmap) 'make sure to use latest version of XUI Views. Upvote 0
Assuming that the images are with similar size, you can replace the image directly: Code: Copy XUIViewsUtils.SetBitmapAndFill(zoom.ImageView, NewBitmap) 'make sure to use latest version of XUI Views.
derez Expert Licensed User Longtime User Nov 30, 2020 #3 If I comment the line "reset" at the end of the "set_bitmap" sub, it does what I need I changed the reset sub to public so I can call it separately. Upvote 0
If I comment the line "reset" at the end of the "set_bitmap" sub, it does what I need I changed the reset sub to public so I can call it separately.
derez Expert Licensed User Longtime User Nov 30, 2020 #4 Erel said: Assuming that the images are with similar size, you can replace the image directly: Code: Copy XUIViewsUtils.SetBitmapAndFill(zoom.ImageView, NewBitmap) 'make sure to use latest version of XUI Views. Click to expand... I saw your answer after I finished testing, your solution works of course , thanks. Upvote 0
Erel said: Assuming that the images are with similar size, you can replace the image directly: Code: Copy XUIViewsUtils.SetBitmapAndFill(zoom.ImageView, NewBitmap) 'make sure to use latest version of XUI Views. Click to expand... I saw your answer after I finished testing, your solution works of course , thanks.