J Jordi Casas Armengol Member Licensed User Longtime User Feb 26, 2016 #1 Hi there, I'm trying to use Glide library but I can't load an image into a Bitmap, only on an ImageView. This works: B4X: myImageView.Initialize("") GetGlide.RunMethodJO("load", Array(sFile)).RunMethodJO("into", Array(myImageView)) The ImageView is shown correctly if I assign it to activity's background, but if I try to get the associated bitmap (myImageView.Bitmap), it returns null. Do you know how can I get the associated bitmap of the ImageView? Thanks Last edited: Mar 1, 2016
Hi there, I'm trying to use Glide library but I can't load an image into a Bitmap, only on an ImageView. This works: B4X: myImageView.Initialize("") GetGlide.RunMethodJO("load", Array(sFile)).RunMethodJO("into", Array(myImageView)) The ImageView is shown correctly if I assign it to activity's background, but if I try to get the associated bitmap (myImageView.Bitmap), it returns null. Do you know how can I get the associated bitmap of the ImageView? Thanks
Erel B4X founder Staff member Licensed User Longtime User Feb 28, 2016 #2 Jordi Casas Armengol said: Hi Erel, Click to expand... This is a community forum. Please don't limit your questions to a single member. Upvote 0
Jordi Casas Armengol said: Hi Erel, Click to expand... This is a community forum. Please don't limit your questions to a single member.
J Jordi Casas Armengol Member Licensed User Longtime User Mar 1, 2016 #3 Ok sorry about that... Any idea how to get the bitmap from the ImageView?? Upvote 0
S strat Active Member Licensed User Longtime User Mar 1, 2016 #4 Try this: B4X: Dim c as Canvas c.Initialize(myImageView) myImageView.Bitmap=c.CreateBitmap Upvote 0
J Jordi Casas Armengol Member Licensed User Longtime User Mar 1, 2016 #5 It doesn't work. It stops process showing error: "WakeLock already held". Any idea? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2016 #6 There are many simple ways to download images? Why aren't you using the picasso implementation of ImageDownloader? Upvote 0
There are many simple ways to download images? Why aren't you using the picasso implementation of ImageDownloader?