Page 1 of 1

the first step in using magick++ in window MFC?

Posted: 2012-09-12T04:07:50-07:00
by raymond
Hi,

I am new to magick++.
I tried to complie the simple examples.

Code: Select all

InitializeMagick(NULL );//
	Image image;
    // Read a file into image object 
image.read( "C:\\TN.jpg" ); //<- this line failed on debug mode

    // Crop the image to specified size (width, height, xOffset, yOffset)
    image.crop( Geometry(100,100, 100, 100) );

    // Write the image to a file 
    image.write( "C:\\TN2.jpg" );
It can be complied, but when i executed, it failed. I think it is the failure of "InitializeMagick". but i searched google for an hour but not even get a hint on the correct line.
Please kindly tell me what is the line, thanks a lot, very appreciated.