• Post Reply Bookmark Topic Watch Topic
  • New Topic

RGB value of a given point  RSS feed

 
Harish Bohara
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone tell me how to get the RGB value of a given point in swing.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a BufferedImage you can use 'getRGB'. Otherwise there is PixelGrabber — see its api for code example.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!