public static boolean isTransparent ( BufferedImage image , int x , int y ) { int pixel = image . getRGB ( x , y ) ; boolean transparent = ( pixel >> 24 ) == 0x00 ; return transparent ; }
Check if the pixel in the image at the x and y is transparent