Page 1 of 1

MagickCore Help

Posted: 2009-05-26T03:10:55-07:00
by luwenbin
I want to use MagickCore to implement the same functon as "convert -size [widthxheight]", but I don't know which API I should use... Could anyone give me a hand? Thanks very much

Re: MagickCore Help

Posted: 2009-05-26T03:15:18-07:00
by luwenbin
Also I want to know the API Interface of convert -size in magic++ and MagickWand, Could anyone can help?Thanks for your help!

Re: MagickCore Help

Posted: 2009-05-26T06:02:35-07:00
by magick
Each of the API's have simple examples to get your started. Have you read http://www.imagemagick.org/script/magick-core.php (MagickCore), http://www.imagemagick.org/script/magick-wand.php (MagickWand) and http://www.imagemagick.org/Magick++/ (Magick++). Download and build each of the example programs then come back with specific questions about the API.

Re: MagickCore Help

Posted: 2009-05-26T19:35:27-07:00
by luwenbin
I don't see any API can do this "-size" funtion in MagickCore API site, but seems I can do this with following steps
1. get image_info
2. set image_info->size = width x height, image_info->filename = read file name
3. read image using this image_info
I don't know whether it is a good way...