B4J Question [Solved]How to use BC.SetBitmapToImageView() with B4XImageView

Theera

Expert
Licensed User
Longtime User
After select to use B4XImageView instead of ImageView for Gravity. I 've error message as belows. How to code be correct?
B4X:
'BC.SetBitmapToImageView(BC.Bitmap, ImageView1) --> OK  for as B4XView

BC.SetBitmapToImageView(BC.Bitmap,B4XImageView1.Bitmap.As(B4XView))   ---> Not OK for as B4XImageView

 

Attachments

  • jCircleWithRounded.zip
    2.5 KB · Views: 37
Solution
You can't use SetBitmapToImageView to B4XImageView.
Just need to do it like this
B4X:
B4XImageView1.Bitmap=BC.Bitmap

teddybear

Well-Known Member
Licensed User
You can't use SetBitmapToImageView to B4XImageView.
Just need to do it like this
B4X:
B4XImageView1.Bitmap=BC.Bitmap
 

Attachments

  • jCircleWithRounded.zip
    2.5 KB · Views: 45
Upvote 0
Solution

Theera

Expert
Licensed User
Longtime User
You can't use SetBitmapToImageView to B4XImageView.
Just need to do it like this
B4X:
B4XImageView1.Bitmap=BC.Bitmap
Many thanks, Teddybear
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…