iOS Question LoadBitmap works in b4a not in b4i

John Woodsmall

Active Member
Licensed User
Longtime User
I need to set the background from an image of the main page(activity)

Activity.SetBackgroundImage(File.DirAssets,"blue.jpg"))

But this is not in b4i?
How do I set the background of the main page to an image file?
 

John Woodsmall

Active Member
Licensed User
Longtime User
thank you so very much so your help!

I am sure it goes without saying, but could you please destroy your copy of the program?
 
Upvote 0

vikingivesterled

Active Member
Licensed User
Longtime User
I added an ImageView called BackgroundPicture to the designer, sent it to the background and loaded a jpg picture in code with:
fireworkspic = LoadBitmap(File.DirAssets, "fireworks.jpg")
BackgroundPicture.Bitmap = fireworkspic

It display fine but if I try to take a screenshot in debug mode, debug mode crashes and no screenshot is taken.
If I don't load the picture it takes the screenshot fine.
I have experimented with different sizes of the ImageView, but no difference.
 
Upvote 0
Top