after executing that I was expected all rgb values but the output is rgb values with negative sign and containg each value more than 6 digits
please help me soon
int w=bufferedimage.getWidth();
int h=bufferedimage.getHeight();
int [] rgb=new int[w*h];
bufferedimage.getRGB(0,0, w, h,rgb,0,w);
for(int i=0;i<rgb.length;i++)
{
System.out.print(rgb[i]+" ");
}