[?][JAVA] Image manipulation

Started by
1 comment, last by BrianJensen 11 years, 2 months ago

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.

Sprite Creator 3 VX & XP

WARNING: I edit my posts constantly.

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.

"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

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.

Sprite Creator 3 VX & XP

WARNING: I edit my posts constantly.

This topic is closed to new replies.

Advertisement