Mechanics of Double-Buffering
Some useful instance variables:
Image osImg; // off-screen image
Graphics osG; // off-screen graphics
boolean startOut=true; /*first time painting or not?*/
Dimension curD; // current size of off-screen stuff
Previous slide
Next slide
Back to first slide
View graphic version