What is the effect way to create an image undo? I have a large buffered image, which I need to manipulate but also want to be able to undo the changes. I create another buffered image to save the original image prior to the changes. But I constantly get out off memory error. Maybe I can save some memory by creating the undo image as a non-buffered image.
What is the difference between an image and buffered images in terms of sizes? How can I create a new non-buffered image from a buffered image?
I use to follow method to try to create a new image from a buffered image. But what I get is the same image object being converted from buffered to non-buffered :
image=bufferedImage.getSource();
I need to create a new non-buffered image from a buffered image.
Jay