Sign in to follow this  

[?][JAVA] Image manipulation

This topic is 1822 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

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

This topic is 1822 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this