how to destory image ?
Posted: 2011-10-27T12:48:34-07:00
I have this in a loop
Image image(mWidth,mHeight,"RGB",CharPixel,rgbImage);
image.rotate(90);
image.write(0,0,mHeight,mWidth,"RGB",CharPixel,pushImage);
Memory is not being freed up and I dont quite understand how to do so?
This also does not work
Image * image;
image = new Image(mWidth,mHeight,"RGB",CharPixel,rgbImage);
image->rotate(90);
image->write(0,0,mHeight,mWidth,"RGB",CharPixel,pushImage);
delete image;
I though the imagemagick manual says its not need but that is not the case here.
Image image(mWidth,mHeight,"RGB",CharPixel,rgbImage);
image.rotate(90);
image.write(0,0,mHeight,mWidth,"RGB",CharPixel,pushImage);
Memory is not being freed up and I dont quite understand how to do so?
This also does not work
Image * image;
image = new Image(mWidth,mHeight,"RGB",CharPixel,rgbImage);
image->rotate(90);
image->write(0,0,mHeight,mWidth,"RGB",CharPixel,pushImage);
delete image;
I though the imagemagick manual says its not need but that is not the case here.