Unhandled exception 0xC00000005 - image.magick("JPG")
Posted: 2007-09-21T03:11:13-07:00
Hi I am a newbie to Image magic but I am having a problem with it crashing when running in debug on the line "image.magick("JPG");"
I have included the definition as in my application <below>
#include <Magick++.h>
using namespace std;
using namespace Magick;
And here is the code I am using in one of my functions to basicially flip an Image. I am not sure why's is throwing and exception on the image.magick("JPG") line but any help would be appreciated.
InitializeMagick("");
Image image;
image.resolutionUnits(PixelsPerInchResolution);
image.density("752x480");
image.magick("JPG");
image.read(FileName);
image.rotate(180);
image.write(FileName);
I have included the definition as in my application <below>
#include <Magick++.h>
using namespace std;
using namespace Magick;
And here is the code I am using in one of my functions to basicially flip an Image. I am not sure why's is throwing and exception on the image.magick("JPG") line but any help would be appreciated.
InitializeMagick("");
Image image;
image.resolutionUnits(PixelsPerInchResolution);
image.density("752x480");
image.magick("JPG");
image.read(FileName);
image.rotate(180);
image.write(FileName);