913966 wrote:I don't get this question. You are already getting the pixel in integer form :s Do you want the individual color components perhaps? If so the Color class can do that for you easily.
Note here the size of data array. But the values stored in data array is of format 0xAARRGGBB. The problem is I want the pixel value in integer form, so how do i get it?
int value = ((a & 0xFF) << 24) | ((r & 0xFF) << 16) | ((g & 0xFF) << 8) | ((b & 0xFF) << 0);