anyone see any code samples for drawing with buffer to reduce flicker?

  • Thread starter Thread starter Katie
  • Start date Start date
Hi Katie,

All you need to do is create a Bitmap object and an associated Graphics
object and draw to it instead of the screen Graphics object. Once drawing
is done you can draw the Bitmap to the screen all at once.

If you are moving an object around then you may want to optimize drawing by
tracking the moving object and only redrawing the areas that were "dirtied"
by it.

I have written a splash screen sample which demonstrates this but the
article is still being prepared for publishing:

http://download.microsoft.com/downl...bdb8-6eb74f694710/SplashScreenSampleSetup.exe

You may also find the following article useful:

http://msdn.microsoft.com/library/en-us/dnnetcomp/html/netcfgaming.asp

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top