Understanding BufferedImage.getRGB output values
getRGB(int x, int y) return you the value of color pixel at location (x,y).You are misinterpreting the returned value.It is in the binary format. like 11…11010101 and that is given to you as int value.If you want to get RGB (i.e. Red, Green, Blue) components of that value use Color class. e.g. Then you can … Read more