File immagine = new File("./img.gif"); Image img = ImageIO.read(immagine); gra2D.drawImage(img, xPos, yPos, this);