Jump to content

  • Log In with Google      Sign In   
  • Create Account


[?][JAVA] Image manipulation


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 0Circle0   Members   -  Reputation: 342

Like
0Likes
Like

Posted 19 January 2013 - 06:28 PM

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, 19 January 2013 - 06:35 PM.

Sprite Creator 3 VX & XP

WARNING: I edit my posts constantly.


Sponsor:

#2 TheChubu   Crossbones+   -  Reputation: 3760

Like
0Likes
Like

Posted 19 January 2013 - 07:47 PM

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.


"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

 

My journals: dustArtemis ECS framework and Making a Terrain Generator


#3 0Circle0   Members   -  Reputation: 342

Like
0Likes
Like

Posted 19 January 2013 - 08:01 PM

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, 19 January 2013 - 08:02 PM.

Sprite Creator 3 VX & XP

WARNING: I edit my posts constantly.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS