L lgg Member Licensed User Sep 5, 2019 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Sep 5, 2019 #2 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? Upvote 0
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?
L lgg Member Licensed User Sep 5, 2019 #3 Erel said: 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? Click to expand... 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 Upvote 0
Erel said: 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? Click to expand... 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 B4X founder Staff member Licensed User Longtime User Sep 5, 2019 #4 lgg said: But after running for a period of time, APP will crash and shut down automatically. What is the reason? Is memory overflow? Click to expand... You need to post the relevant code. Best if you upload a small project that reproduces it. lgg said: In addition, I want to know which drawing is faster, BitmapCreator or B4X Canvas? Click to expand... It depends on what you are drawing. Redrawing a huge map every second is a mistake. You should only redraw the visible area. Upvote 0
lgg said: But after running for a period of time, APP will crash and shut down automatically. What is the reason? Is memory overflow? Click to expand... You need to post the relevant code. Best if you upload a small project that reproduces it. lgg said: In addition, I want to know which drawing is faster, BitmapCreator or B4X Canvas? Click to expand... It depends on what you are drawing. Redrawing a huge map every second is a mistake. You should only redraw the visible area.
L lgg Member Licensed User Sep 5, 2019 #5 Erel said: 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. Click to expand... OK,I will revise it and try again. Upvote 0
Erel said: 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. Click to expand... OK,I will revise it and try again.