program crashes at first image magic line
Posted: 2011-10-27T05:21:28-07:00
I'm using imageMagic in a dll compilation to rotate an image. Seem no matter what function I use, other then the init, will put may app in a loop until it crashes.
InitializeMagick(""); //executes
Image image( "100x100", "white" ); //dies here [Caught exception: Magick: NoDecodeDelegateForThisImageFormat `#FFFFFFFFFFFF' @ error/constitute.c/ReadImage/532]
image.pixelColor( 49, 49, "red" );
image.write( "red_pixel.png" );
I went a head and tried this is a test project ( flip example ) and I get unhandled exception in the magick::errorMissingDeleate magick_home is set to the install path ( the parent of Magick++ )
I saw a thread about MAGICKCORE_INSTALLED_SUPPORT, and I do not have this defined. my magic_home is set to my install path
InitializeMagick(""); //executes
Image image( "100x100", "white" ); //dies here [Caught exception: Magick: NoDecodeDelegateForThisImageFormat `#FFFFFFFFFFFF' @ error/constitute.c/ReadImage/532]
image.pixelColor( 49, 49, "red" );
image.write( "red_pixel.png" );
I went a head and tried this is a test project ( flip example ) and I get unhandled exception in the magick::errorMissingDeleate magick_home is set to the install path ( the parent of Magick++ )
I saw a thread about MAGICKCORE_INSTALLED_SUPPORT, and I do not have this defined. my magic_home is set to my install path