Android Question Glide Image Library

Jordi Casas Armengol

Member
Licensed User
Longtime User
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:

strat

Active Member
Licensed User
Longtime User
Try this:


B4X:
Dim c as Canvas
c.Initialize(myImageView)
myImageView.Bitmap=c.CreateBitmap
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…