Image image = new Image(new URL("http://www.company.com/contextpath/image.jpg"));
int width=....;
int height=...;
int pixels[] = new int[width*height];
PixelGrabber pg = new PixelGrabber(image, 0,0,width,height,pixels,0,width);
pg.grabPixels();
for(int i=0;i<width*height;i++) {
int p = pixels[i];
int red = 0xff & (p>>16);
int green = 0xff & (p>>8);
int blue = 0xff & p;
}
i am very interested in your topic.
and you can find some from the class java.awt.image.BufferedImage which has some function about gaining the color of a specific pixel such as the function "public int getRGB(int x,
int y)".
i think trying to learn about this ahat will help you!