Hi Ujjval,

  there is a new feature in j2sdk 1.3 called Robot API which is
  basically used for automatic testing. But along with other features
  it has exactly what you're asking for:
   http://java.sun.com/j2se/1.3/docs/api/java/awt/Robot.html

  java.awt
  Class Robot

  getPixelColor

  public Color getPixelColor(int x,
                             int y)

       Returns the color of a pixel at the given screen coordinates.
       Parameters:
           x - X position of pixel
           y - Y position of pixel
       Returns:
           Color of the pixel

  Thank you,
    Dmitri


On Tue, Aug 08, 2000 at 01:04:0p -0700, Dave Ujjval wrote:
 > Any body knows how to grab the pixel's RGB values when mouse is at
 > particular location
 >
 > Ujjval.
 > ________________________________________________________________________
 > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
 >
 > ===========================================================================
 > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
 > of the message "signoff JAVA2D-INTEREST".  For general help, send email to
 > [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to