Sorry for this off-topic question:

>         in.createGraphics().getDeviceConfiguration();

The Graphics2D returned from in.createGraphics() can't be dispose()'d.   How do 
we know that it's safe to do this without leaking something?
I mention this because I see that you were careful to do it for the output 
image...

>      Graphics2D g2d = out.createGraphics();
>      g2d.setComposite(AlphaComposite.Src);
> g2d.drawImage(in, 0, 0, targetWidth,
> idth, targetHeight, null);
>      g2d.dispose();

Does the dispose() call potentially flush some drawing operations?  Is it 
simply not needed if you don't "write" to the graphics context?  Should you 
always dispose() every Graphics object that you create just to be safe?
[Message sent by forum member 'swpalmer' (swpalmer)]

http://forums.java.net/jive/thread.jspa?messageID=118149

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to