Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem of HSB - RGB Conversion

843807Apr 17 2003 — edited Dec 3 2005
Hi,

I have used the method of RGBtoHSB() to convert RGB to HSB from the package of java.awt. But I found out the result is different from the conventional calculation approach.
As I know from the books, the Intensity(B) is calculated by (R+G+B)/3, where R,G and B are normalized.
But for the java's one, I noticed that the Intensity is calculated by max(R,G,B).

So, anyone notice and explain it?
Thanks

Kenneth
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2005
Added on Apr 17 2003
3 comments
278 views