G Giuliano Cucchiarini Member Licensed User Longtime User Dec 20, 2014 #1 Hi How can I Zoom an ImageView using the pinch gesture? I did this in B4a using the TouchImageView library, but there is no similar library in B4i. Do you have an alternative or another way? Thank You Giuliano C.
Hi How can I Zoom an ImageView using the pinch gesture? I did this in B4a using the TouchImageView library, but there is no similar library in B4i. Do you have an alternative or another way? Thank You Giuliano C.
Erel B4X founder Staff member Licensed User Longtime User Dec 21, 2014 #2 I think that for now the simplest option will be to use WebView for that. Upvote 0
I inakigarm Well-Known Member Licensed User Longtime User Dec 21, 2014 #3 Seems that it's possible implementing pinch zoom with an image view inside scrollview , but don't know if this is accesible from B4i directly or via nativeobject. https://developer.apple.com/library...IScrollView_pg/Introduction/Introduction.html Another option as Erel said should be webview (there're some js clases here, like hammer.js) http://www.queness.com/post/11755/11-multi-touch-and-touch-events-javascript-libraries Upvote 0
Seems that it's possible implementing pinch zoom with an image view inside scrollview , but don't know if this is accesible from B4i directly or via nativeobject. https://developer.apple.com/library...IScrollView_pg/Introduction/Introduction.html Another option as Erel said should be webview (there're some js clases here, like hammer.js) http://www.queness.com/post/11755/11-multi-touch-and-touch-events-javascript-libraries
narek adonts Well-Known Member Licensed User Longtime User Mar 24, 2015 #4 Is it possible to load directly as Bitmap to WebView (without saving the file and loading with url) ?? It will help a lot to use the pinch to zoom feature. Narek Upvote 0
Is it possible to load directly as Bitmap to WebView (without saving the file and loading with url) ?? It will help a lot to use the pinch to zoom feature. Narek
Erel B4X founder Staff member Licensed User Longtime User Mar 25, 2015 #5 Saving the image to a temporary file shouldn't be problematic. As an alternative for small images, you can convert the image to base 64 string and then embed it in a html string: http://stackoverflow.com/questions/1207190/embedding-base64-images Upvote 0
Saving the image to a temporary file shouldn't be problematic. As an alternative for small images, you can convert the image to base 64 string and then embed it in a html string: http://stackoverflow.com/questions/1207190/embedding-base64-images
F fishwolf Well-Known Member Licensed User Longtime User Dec 2, 2015 #6 if i load a big image, i see a part of image, i can zoom+, but not zoom- is it possible reduce the image to size of webview, for see all image. Last edited: Dec 2, 2015 Upvote 0
if i load a big image, i see a part of image, i can zoom+, but not zoom- is it possible reduce the image to size of webview, for see all image.
narek adonts Well-Known Member Licensed User Longtime User Dec 2, 2015 #7 Try this https://www.b4x.com/android/forum/threads/zoomable-imageview.55185/ Upvote 0