1

Is there any method in java like the one in c++ that is int getPixel(x,y), it will return the pixel value at x,y coordinate. I want the same thing to do in java. Currently i am drawing lines in JPanel and want to get the value of some specified pixel. I have checked the function of Robot class but it will not be helpful in my case.

Thanks in advance for help and suggestions.

Muhammad Salman Farooq
  • 1,325
  • 9
  • 26
  • 54

0 Answers0