I need to check if a pixel in a buffered image is 100% transparent, no matter the “color”, is there any way to do that?
Yes; check the alpha pixel.
There is no RGB with alpha, RGB with alpha is called RGBA (or ARGB)
Give a bit more detail, what are you using (Swing,LibGDX,Slick2D,LWJGL)
I’m using java2D, and the variable is a BufferedImage
Here’s a little snippet of code:
boolean transparent = image.getRBG(x, y) & 0xFF000000 == 0xFF000000;
First check if the image has an alpha channel.
Then you need to loop through each pixel and see if the alpha value is zero.
Google buffered image to RGBA array and you’ll find plenty of options.