|
* IMPORTANT: Performance is very important, please make the method efficient * I am making an app right now and could use the following Graphics2D wrapper methods (I don't know a thing about Graphics2D) 1.) I want a method called applyOpacity(Image,Double) where it accepts an Image type and a double specifying the opacity. It will then use Graphics2D to apply the opacity to the Image and return the new Image. I don't know if this is possible or not, if it can't be stored in an image and instead needs to be stored in a Graphics object then return that instead. 2.) applyLighting(Image,Int) I send it an image with a brightness 0 being completely black and 100 being completely white? It then returns the resulting Image. The useage would be if I wanted to bring something ot the foreground I would draw my background on offscreen image, pass it to the lighting method and darken it. Then I would take my 2nd image thats foreground send it to opacity and drawImage onto the offscreen image. Thanks!
|
# ¿ Apr 25, 2008 15:20 |
|
|
# ¿ May 9, 2024 12:47 |
|
Edit: stupid mistake
PianoDragn fucked around with this message at 19:14 on Feb 26, 2010 |
# ¿ Feb 26, 2010 19:10 |