png file to ImageView, WebView, Objest, etc...

roarnold

Active Member
Licensed User
Longtime User
I am having difficulty getting a .png file from the internal storage to view on the screen. I have tried LoadBitMap(File.DirAssets, file.png) but have to make the ImageView an Object otherwise receive a java exception. Tried making ImageView a BitMap also but iget an error from B4A code saying incompatiable with Widget.

Any Ideas?

ImageView2 = LoadBitmap(File.DirAssets, "BottomM.png")

ImageView is declared as an Object, Tried as ImageView as well as WebView, and bitmap.

If I set background image to BottomM.png I get the file to load but over the whole screen as opposed to putting in ImageView in the designer. BottomM.png exists in the DirAssets of the phone.:BangHead:

Thanks,
R
 
Top