Working with Images in Java
 
I wrote a Java program to display the images shown here.
 
 
To display this graphic, a Java Applet was written to overlay several copies in different sizes of the same image.  The  Java Applet's paint method creates the display using the Graphics method drawImage.

Double-buffering is used so that the images are resized and drawn into a background buffer before they are displayed on the screen.  If double buffering is not used, the screen may flicker as the drawing is being created.
 
Simple progressive drawing without double-buffering is useful if a single large image is being downloaded from a remote site.  However, if a complex image like the one above is being created or animation is needed, then double buffering should be used.

The muppet character above is one that I drew myself.

 
 

A  WEBBITS  Production
Copyright © 1997 Margaret Brown
 
 
   WEBBITS Home Page    Back to WEBBITS First Java Page