learn java
The moose likes Swing / AWT / SWT and the fly likes Question about Color and BufferedImage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Question about Color and BufferedImage" Watch "Question about Color and BufferedImage" New topic

Question about Color and BufferedImage

Ivan Slavka

Joined: Feb 06, 2012
Posts: 11
Hi guys,

I'm trying to learn more about java computer graphics, and in my study I encountered following problem.
Probably there is a simple solution to this, but I'm baffled.

Here's the question, why the integers that represent color are not the same?
Also I noticed that when I change value 255 => 254 the integer of the color object gets recalculated but the one in the bufferedImage doesn't, why is that?

Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: Question about Color and BufferedImage