O
Ozone
I am developing a windows application for scrolling through multi page tif
documents (similar to ms word style). I am having difficulties achieving a
highly smooth scrolling affect. I load the entire tif into a memory stream
and access it from there. I am using a picturebox like control to view each
page of the tif, I scroll through viewers using the autoscrollbar on the
form. The problem seems to lie in the way the image is being repainted,
when scrolling up or down quickly there is the 'frames' affect, the screen
does not seem to finish repainting the new display area before the paint
event is raised again and another repaint begins (theorizing?). As I
continue to scroll down it looks as if the same small portion of image is
repainted a dozen times until it fills up the screen, the problem is solved
after the scrolling has ended and the paint is able to redraw the screen
completely. How can I smooth out the scrolling??
As well, is there any limit on the size of a form and distance a scroll bar
can scroll?
Thank you
documents (similar to ms word style). I am having difficulties achieving a
highly smooth scrolling affect. I load the entire tif into a memory stream
and access it from there. I am using a picturebox like control to view each
page of the tif, I scroll through viewers using the autoscrollbar on the
form. The problem seems to lie in the way the image is being repainted,
when scrolling up or down quickly there is the 'frames' affect, the screen
does not seem to finish repainting the new display area before the paint
event is raised again and another repaint begins (theorizing?). As I
continue to scroll down it looks as if the same small portion of image is
repainted a dozen times until it fills up the screen, the problem is solved
after the scrolling has ended and the paint is able to redraw the screen
completely. How can I smooth out the scrolling??
As well, is there any limit on the size of a form and distance a scroll bar
can scroll?
Thank you