Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Pedro Gilbert   on May 16 In Java Category.

  
Question Answered By: Janis Hart   on May 16

"Does anyone know of a method  that will return  the color  value of
either an Image, or Graphics at a given x,y coordinate?"

...you can use the getColor() method on a Graphics object... if you
are looking to find the individual color of a point, you can check
out the classes/methods of java.awt.color, but i believe you are
going to have to code  it; try copying a small area of the display to
an object then call getColor() on the pixel object you copied, if
that is unsatisfactory run it(the object) through a switch filter
(the better the filter the more precise the color match)...

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Image/Graphics color Or get search suggestion and latest updates.


Tagged: