Problem with ImageMagick C++ use.
Posted: 2008-11-03T22:56:59-07:00
I have installed ImageMagick C++ into my computer because I am using it with my program. Though I have included all the necessary paths and headers it crashes.
Here is the part of the code:
Image intermediate;
int no=intermediate.totalColors();
intermediate.read("C:\FRAME.bmp");
The variable no is 0, which is normal, since intermediate is empty yet.
It crashes at the last line when it tries to read the image. The image exists. If the installation of ImageMagick failed, it woudn't work at all. At least that's what I guess.
Do you know what might go wrong? I have Windows Vista and VS2008.
Thank you for your help!
Here is the part of the code:
Image intermediate;
int no=intermediate.totalColors();
intermediate.read("C:\FRAME.bmp");
The variable no is 0, which is normal, since intermediate is empty yet.
It crashes at the last line when it tries to read the image. The image exists. If the installation of ImageMagick failed, it woudn't work at all. At least that's what I guess.
Do you know what might go wrong? I have Windows Vista and VS2008.
Thank you for your help!