iOS Question About BitmapCreator in B4I

lgg

Member
Licensed User
Hi, everyone.
I use BitmapCreator to draw pictures in B4I.
I draw a picture and its resolution is 6000 * 2971.
I creat a timer by 1 second and enabling it.
When the time is up, set imageView.bitmap = BitmapCreator.creatBmp, and repeat all the time.
but the ios is very very slow and running for a while, it crashed and closed.
why? please help me :)
 

lgg

Member
Licensed User
This is a huge image. Much larger than the screen resolution. Why do you need to create such a large image?

Can you post the code?
Hi, Erel
My picture is similar to maps, so it's very large:)
I use library of "libzoom" by narek adonts to scale the display.
I know the picture is large, so redrawing may be slow.
But after running for a period of time, APP will crash and shut down automatically. What is the reason?
Is memory overflow?
In addition, I want to know which drawing is faster, BitmapCreator or B4X Canvas?
thank you:)
 

Erel

Administrator
Staff member
Licensed User
But after running for a period of time, APP will crash and shut down automatically. What is the reason?
Is memory overflow?
You need to post the relevant code. Best if you upload a small project that reproduces it.

In addition, I want to know which drawing is faster, BitmapCreator or B4X Canvas?
It depends on what you are drawing.


Redrawing a huge map every second is a mistake. You should only redraw the visible area.
 

lgg

Member
Licensed User
You need to post the relevant code. Best if you upload a small project that reproduces it.


It depends on what you are drawing.


Redrawing a huge map every second is a mistake. You should only redraw the visible area.

OK,I will revise it and try again.
 
Top