i have a sprite sheet(image) and i want to draw on screen.
image = sprite sheet image
x = player x postion
y = player y postion
width = player width
height = player heigh
public class main extends japplet
{
...
public void paint(Graphics g)
{
g.drawImage(image, x, y, x+width, y+height,
0, 0, 40, 40 ,sprite_sheet.m1);
}
}
this works fine and drraws a sprite sheet image. but the problem on sprite sheet there is a image of player. when it outs puts it draw the background blue, bc the sprite sheet background is blue.
is there way to del the background color using java code?? may be there is a funtion?