import java.awt.*;
import java.applet.Applet;

public class imgtest extends java.applet.Applet {
  Image myimg;
  public void init () {
    // Load the image and get a handle
    myimg=getImage(getCodeBase(),getParameter("imgname"));
  }
  public void paint (Graphics g) {
    /* Draw the image myimg at pixel position 10,10 and make it the default
       size(you can get the size of the image with the getWidth and getHeight
       methods). I'm not exactly clear on what the "this" is for. */
    g.drawImage(myimg,10,10,myimg.getWidth(this),myimg.getHeight(this),this);
  }
}
