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); } }
so on spreet sheet i have a image of player, and its background color is blue. when i drawImage it create image background blue. now i cloud remove the color by using photoshop but i really dont want to do this. bc it will remove part of my player.
is there way to del the background color using java code?? may be there is a funtion?