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

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
raymond
Posts: 1
Joined: 2012-09-12T04:00:49-07:00
Authentication code: 67789

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

Post 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.
Post Reply