Page 1 of 1

Problem with ImageMagick C++ use.

Posted: 2008-11-03T22:56:59-07:00
by mongoose54
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!

Re: Problem with ImageMagick C++ use.

Posted: 2008-11-04T06:44:43-07:00
by magick
Go to C:\Program Files\ImageMagick-6.4.5-Q16\Magick_Demos (or something similar to that) and click on the button workspace. Build and run. Assuming it runs without complaint, use the button project as a template for your own application.