Drawing big bitmapped buttons

jeffc

New member
Joined
Apr 11, 2004
Messages
1
Ive got a bit of a painting performance issue with a project Im working on.

The project has a 800x600 main screen that is filled with a custom Panel control that paints two overlapping transparent images (PNG in this case). I then have a dozen big custom button controls that sit on top of this panel. The buttons are also bitmapped and are about 150x100 in size. They all load different bitmaps.

The problem I am having is that when the screen needs to repaint, the background repaints first, leaving "holes" where the buttons should be and then the buttons paint. This can take up to a second on my machine and the effect is less than ideal.

I have already implemented cacheing of all bitmaps involved and turned on double buffering. My main issue is the "holes" while the buttons repaint.

Any ideas?
 
Back
Top