0

I have a buffered image which has a set alpha and would like to change the alpha of the buffered image but only in a specific polygon.

For example the buffered image has an alpha of 200 and i want to add 20 to all the pixels on the buffered image within(or colliding with) the polygon.

I couldn't find any which does this exactly in the graphics class or on Google.

I would appreciate any form of help :D

Thanks!

Meta
  • 107
  • 8
  • One approach might be to generate a masked image from the original and are you want changed, using an `AlphaComposite`, this way you could manipulate all the pixels that aren't full transparent...Something like [this for example](http://stackoverflow.com/questions/14225518/tinting-image-in-java-improvement/14225857#14225857) – MadProgrammer Feb 21 '15 at 22:22
  • ill take a look. Thanks so much :D – Meta Feb 21 '15 at 22:25

0 Answers0