ImageExample
Retired DISLab
import acm.program.*; import acm.graphics.*; public class ImageExample extends GraphicsProgram { public void run() { GImage pic = new GImage("DISLab.jpg"); double x = (getWidth() - pic.getWidth()) / 2; double y = (getHeight() - pic.getHeight()) / 2; add(pic, x, y); } private static final long serialVersionUID = 1; }