Link to home
Start Free TrialLog in
Avatar of v_alev
v_alev

asked on

Change contrast in Java BufferedImage

I need to change the contrast (and maybe the brightness) of an image in Java. It is a BufferedImage that I create, and it is made of different geometrical items. I have to change the contrast of only some of these items. The items to be changed are all of the same color.
Also, these elements are traslucent, so I am using Transparency.TRANSLUCENT function.
I don't know how contrast and transparency interact...

Thanks
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Avatar of v_alev
v_alev

ASKER

But I have to change the contrast of only one color relative to the background, not all the image.
Can you suggest a way to do that?
you can just change the color table (ColorModel) of the image to achieve that
Avatar of v_alev

ASKER

Can you be more specific?
Which is the part of the code that influence the contrast?
Also, do you know how transparency and contrast interact?
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.