List of usage examples for java.awt Graphics drawImage
public abstract boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer);
From source file:Main.java
public void paint(Graphics g) { Image img = createImage(); g.drawImage(img, 20, 20, Color.RED, this); }