AlphaCompostiting part of the Graphics context, without 100% AffineTrasform
I got an interesting question here.
The game im developing has progressed nicely. The rendering thread does all the drawing operations on a global Graphics object which is drawn on the screen after all operations in the thread are complete, and repaint() is called.
I recently added an image to be the last thing drawn before repaint() is called, but I need that small image to be transparent.
The problem lies in the fact that in order to use an AlphaComposite, I would have to do all my drawing on a Graphics2D object inside the paint(Graphics g) method. Unfortunatly the current system I use involves a seperate thread doing all the rendering on a globaly scoped Graphics context, which is then rendered by paint(Graphics g).
If I type-casted g to be a g2d, I would not be able to send the... eh lol.. nevermind! I just minimized my browser and tried an idea that just poped to mind, and it worked! Um, thanks anyway lol.
I can't let all this typing go to waste! Most click Post! Ahhhhh

