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
Also, these elements are traslucent, so I am using Transparency.TRANSLUCENT function.
I don't know how contrast and transparency interact...
Thanks
http://www.java2s.com/Code/Java/2D-Graphics-GUI/ImageProcessingBrightnessandContrast.htm
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?
Can you suggest a way to do that?
you can just change the color table (ColorModel) of the image to achieve that
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?
Which is the part of the code that influence the contrast?
Also, do you know how transparency and contrast interact?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.