Jump to content
  • Advertisement
Sign in to follow this  
BrianJensen

[?][JAVA] Image manipulation

This topic is 2073 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am working with bufferedImage in an Applet. I am wondering how do I change the "Hue", "Saturation" , "Brightness" of a BufferedImage

 

I am not using Swing or Frames. Just old school Applet. Not even sure that matters.

 

Example turning this:

imagehpp.png

into this:

imagedm.png

which is +80 Hue -80 sat no change in brightness according to GIMP, which is what I use by hand right now.

Edited by 0Circle0

Share this post


Link to post
Share on other sites
Advertisement

I don't think there are image filter implementations in Java. At least BufferedImage docs don't point to any of that.

 

You'll probably have to implement them yourself.

Share this post


Link to post
Share on other sites

That sounds like even more fun. Guess I'll have to learn how Hue, Saturation, and Brightness play a part together.

 

I am sure Brightness is just raising or lowering of all the values at the same time.

 

Hue from what I understand if the R G B value is 98 135 188 you would change 135 because it is the middle value (between 98 and 188) in order to keep Saturation and Brightness the same.

 

Saturation is the distance of 2 values in the spectrum. 98 135 188 you would change 98 and 188 respectively to change saturation because they are at the top and bottom of the spectrum for that color. The greater the distance the greater the saturation.

 

Please correct me if I am wrong.

Edited by 0Circle0

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!