fast java2d translucency
- by mdriesen
I'm trying to draw a bunch of translucent circles on a Swing JComponent. This isn't exactly fast, and I was wondering if there is a way to speed it up. My custom JComponent has the following paintComponent method:
public void paintComponent(Graphics g) {
Rectangle view = g.getClipBounds();
VolatileImage image =…