drawImage?
im trying to display my image using the drawImage method, but im not too sure what i am doing wrong.
publicvoid actionPerformed(ActionEvent event){
Graphics paper = panel.getGraphics();
drawLogo(paper, 10, 20);
drawLogo(paper, 100, 100);
}
publicvoid init(){
image = getImage(getDocumentBase(),"images/picture1.jpg");
}
privatevoid drawLogo(Graphics g,
int xPos,int yPos){
g.drawImage(image, xPos, yPos, 60, 60);
g.drawImage(image, xPos, yPos, 40, 40);
g.drawImage(image, xPos, yPos, 20, 20);
}
Any Clues?[

