I’m trying to make a certain colour of a picture transparent by looping through every pixel and if its value is equal to the color to be replaced, I replace it with another value that I think is transparent. However, when I draw the image with my g2d instance it doesn’t come out transparent. The color is changed from the original colour to something else. I’m guessing that I either have the wrong RGB value for the alpha, or that I have to do something with the g2d instance in order to make it draw transparent colors? If that is the case, what should I do?
The RGB values I have tried are 0x00000000, 0 and 0x8F1C1C.
Help please!!
Thanks!
edit: I’ve checked google and used the search function, but they have not taught me anything new.