B
Bo Boersson
Hello
I have to draw something on a picturebox, the strings I am loading
dynamically from an xml file.
I am using double buffering technique, so I first draw to a bitmap and then
I use a picturebox-control to show it.
I always add a new line, and if the the height is higher than the
picturebox-control, I am still drawing and loading it to the
picturebox-control, so that I can browse through it using a scrollbar.
Sometimes I then have a height of 1500 pix, and onle 240 or 480 of them are
really visible. But as I want to be able to scroll fast, I just draw a
320x1500-bitmap, add it to the picturebox with also 320x1500, and then I am
just moving the top position of the control using the scrollbar.
It is working, but it is also using a loooot of memory to create a
320x1500-bitmap, and on some devices, even today, memory is an issue.
What other technique can I use to do it? I dont think that drawing in
real-time is fast enough?
Thanks
Bo
I have to draw something on a picturebox, the strings I am loading
dynamically from an xml file.
I am using double buffering technique, so I first draw to a bitmap and then
I use a picturebox-control to show it.
I always add a new line, and if the the height is higher than the
picturebox-control, I am still drawing and loading it to the
picturebox-control, so that I can browse through it using a scrollbar.
Sometimes I then have a height of 1500 pix, and onle 240 or 480 of them are
really visible. But as I want to be able to scroll fast, I just draw a
320x1500-bitmap, add it to the picturebox with also 320x1500, and then I am
just moving the top position of the control using the scrollbar.
It is working, but it is also using a loooot of memory to create a
320x1500-bitmap, and on some devices, even today, memory is an issue.
What other technique can I use to do it? I dont think that drawing in
real-time is fast enough?
Thanks
Bo