Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_windows_forms thread: GDI+ flicker-free scrolling


Message #1 by nicholasrobertlim@h... on Wed, 4 Dec 2002 17:05:32
Hi,
I'm trying to get a flicker and pause-free scroll in an image processing 
program. I've implemented double-buffering manually so all draw 
operations occur into a Bitmap only on load of new data/after infrequent 
user interactions, and not while scrolling occurs.

I'm using a PictureBox docked to fill a scrolling Panel, and I set the 
System.Windows.Forms.PictureBox.BackgroundImage to the pre-drawn Bitmap, 
whenever this is updated. (This is an approach used in Eric White's GDI+ 
book).

Resulting scrolling flickers (with the image, not background colour) 
because the image seems to pause as dragged, as painting catches up...

How can I achieve absolutely smooth, flicker-free scrolling, such as the 
Windows accessory Paint program manages with bitmap images?

Nick

  Return to Index