This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
hi, I want to get the RBG or pixel color, when I move my cursor over the Image in Swing. Whether there is any class in java.awt.image which gives the color. if u have done, pls reply with the code.thanks
posted 15 years ago
The Color class has several methods that you can use. Or in the Image Package you can use ColorModel. It has getBlue() getGreen() getRed() etc.
"JavaRanch, where the deer and the Certified play" - David O'Meara