Hi everyone,
I need to draw an image on another imagein a JPanel:
public void paint(graphics g){
super.paint(g);
Graphics2D g2d = (Graphics2D)g;
g2d.drawImage(board, 110, 130, this);
g2d.drawImage(pebble,122,140,this);
}
where pebble is an image to be drawn on image board.
My problem is the background of pebble appears on the image board when drawn on it.How would I make the background of pebble image disappear?
The images are all .png types.
Thanks

