Re: [JAVA2D] Graphics2D.drawImage(Image, AffineTransform, ImageObserver) memory issues

2003-11-19 Thread Michael Saunders
Eli, Another thing is to make sure to always "release" large resources as soon as possible and always before reassigning a new allocation to it. For instance if you had something like this: myResource = new LargeResource(); myResource = new LargeResource(); It really should be

Re: [JAVA2D] Stumped on WEIRD swing/2d error

2003-11-19 Thread Doug Felt
BTW, in the future this error will not be propagated up. This is to support people rendering text into odd transforms while doing animation with it (think of text 'spinning in 3d' around the y axis, for example-- at some point it becomes 'edge-on' and that transform is not invertible). The

Re: [JAVA2D] Stumped on WEIRD swing/2d error

2003-11-19 Thread Rosenstrauch, David
Good to know. Thanks for the info, Doug! DR -Original Message- From: Doug Felt [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 11:48 AM To: [EMAIL PROTECTED] Subject: Re: [JAVA2D] Stumped on WEIRD swing/2d error BTW, in the future this error will not be propagated

Re: [JAVA2D] Graphics2D.drawImage(Image, AffineTransform, ImageObserver) memory issues

2003-11-19 Thread Jim Graham
The AffineTransformOp can do affine transforms of images for you and the filter() method that does the work takes an optional second parameter that is the destination BufferedImage to store the data into. Try using that with your own temporary image to store the transformed results into. If you

Re: [JAVA2D] Graphics2D.drawImage(Image, AffineTransform, ImageObserver) memory issues

2003-11-19 Thread eli curtz
Bingo! You're a genius Jim, I owe you a beer. It's not all in there yet, but that will definitely solve my issue. Thanks everyone, for the fast and instructive help. eli - Original Message - From: Jim Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 3:13