I'm trying to draw an image within a certain area. Right now I have code that fills an area with a RadialGradientPaint
.
Area lightArea = ...
// fill the polygon with the gradient paint
g.setPaint(light.paint);
g.fill(lightArea);
I would like to draw a BufferedImage
in that area instead of drawing a RadialGradientPaint
. Is there a way I can do that?