Hi, i’m trying to get the RGB of just one pixel from an image. Any idea to do it? My source using the method getRGB from Image Class don’t works, after using the method getRGB the array “argb” doesn’t contain what is supposed, it just contains one value: [I@1a4cfaaa
Image superficie, volcado;
int argb[];
superficie = Image.createImage("/pantalla11.png");
argb = new int[superficie.getWidth()/4*superficie.getHeight()];
superficie.getRGB(argb, 0,superficie.getWidth()/4, 0,0, superficie.getWidth()/4, superficie.getHeight());
volcado.createRGBImage(argb,superficie.getWidth()/4,superficie.getHeight(),true);