Page 1 of 1

Freeing an pixel packet or image

Posted: 2011-11-13T10:46:18-07:00
by Bob-O-Rama
Hi,

I fear this is going to be the "stupidest question ever" but here it goes...

I have a process where I load up a bunch of images, processes them. Along the way I'd like to throw away some of them to save on the RAM requirement. Is there a way to free an image objects memory / discard the image / ...

Thanks!

-- Bob

Re: Freeing an pixel packet or image

Posted: 2011-11-13T16:26:33-07:00
by magick
Image resources are destroyed when an object goes out of scope. Otherwise call delete (e.g. delete _image).