How to get color code for a particular pixel in an image
I can able to get pixels for an image.My question is,can i have option to get color code for that particular pixel.
This is my code(only a particular block and not entire code),
Image rawImg;
int imgCols;//Number of horizontal pixels
int imgRows;//Number of rows of pixels
int[] oneDPix;//References to arrays that store pixel data.
rawImg = Toolkit.getDefaultToolkit().getImage(theImgFile);
// Get width and height of the raw image.
imgCols = rawImg.getWidth(this);
imgRows = rawImg.getHeight(this);
oneDPix = new int[imgCols * imgRows];
The "oneDPix" is the array of pixels i got. From this how can i get the color code for that particular pixel.
For ex:
oneDPix[13705] th pixel is "10195331" . How can i get the color code for this pixel.(Like color representation as #FF8876 or else the color name or color itself).

