J jai Active Member Licensed User Longtime User Jun 1, 2016 #1 I have an ImageView that needs to show an image based on certain conditions otherwise it should be blank. B4X: ImageView1.Visible=False is not the right solution for my needs. How do I clear the bitmap contents of an Imageview?
I have an ImageView that needs to show an image based on certain conditions otherwise it should be blank. B4X: ImageView1.Visible=False is not the right solution for my needs. How do I clear the bitmap contents of an Imageview?
narek adonts Well-Known Member Licensed User Longtime User Jun 1, 2016 #2 imageview.Bitmap=null Imageview.color=yourColor Upvote 0
J jai Active Member Licensed User Longtime User Jun 1, 2016 #3 The null Bitmap does not work. ImageView1.Bitmap=Null throws an error saying the object (Null) was not initialized. Upvote 0
The null Bitmap does not work. ImageView1.Bitmap=Null throws an error saying the object (Null) was not initialized.
Erel B4X founder Staff member Licensed User Longtime User Jun 2, 2016 #4 You can hide it: ImageView1.Visible = False Upvote 0
Humberto Active Member Licensed User Longtime User Jun 7, 2016 #5 When I put a new image with transparency both appear. I need too to erase and load a new one. Upvote 0
Derek Johnson Active Member Licensed User Longtime User Jun 8, 2016 #6 Humberto said: When I put a new image with transparency both appear. I need too to erase and load a new one. Click to expand... Humberto, You'd think it would be easy wouldn't you? I'm trying to fix this for you as well! Derek Upvote 0
Humberto said: When I put a new image with transparency both appear. I need too to erase and load a new one. Click to expand... Humberto, You'd think it would be easy wouldn't you? I'm trying to fix this for you as well! Derek