In a program I am extracting the color of a certain bit of an image with the method:
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
BufferedImage image = null;
image = ImageIO.read(new File(dir));
for(int i=0;i<800;i++){
for(int j=0;j<800;j++){
int biomeColour = image.getRGB(i, j);
The problem is that the image.getRGB () returns the color in the 8-bit RGBA format according to the java api: Api page . As would be done to change from this format to the RGB format