
how to get the color of a pixel in J2ME but not in Java. suppose my pixel is 100,60. My question is how to get the color of that pixel using J2ME.
I am using Canvas. I needed to know, if there is any method to get the color of a pixel. If u don't know this can you help me in finding color of a drawn line using J2ME

Hi Friend,
Use the following code:
int clr= image.getRGB(100,40);
int red = (clr & 0x00ff0000) >> 16;
int green = (clr & 0x0000ff00) >> 8;
int blue = clr & 0x000000ff;
Color c = new Color(red,blue,green);
For more information, visit the following link:
Thanks