I have a code which takes a bitmap and converts the X and Y coordinate to RGB:
int pixel = bitmap.getPixel((int)x,(int) y);
inRed = Color.red(pixel);
inBlue = Color.blue(pixel);
inGreen = Color.green(pixel);
How do I convert a given RGB and get the X and Y coordinate within the bitmap?