ok now is clear, thanks
in your example you use on the top of your image a rectangle filled with a RadialGradientPaint
and you change just the alpha channel of the color,
now comparing the two solutions:
- 1) LookUpOp (that works at the pixel level so is for any pixel the operation must be performed)
- 2) rectangle filled with same Paint (like Gradient)
what is the best solution?
your experience say the first one, without your response my natural answer instead is the second, because I imagine that at low level the second one must use same low level directive to draw the rect.
but i don't know,i never tryed the second solution.
Do you know how works Graphics2D.fillRect method?
regarding the verify of the Garbage collection try to pass this parameter to your java command
-verbose:gc
this is the official link
http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.htmlif u works with eclipse in the console you will see the output of the GC