i installed imagemagick in visual studio 2008 according to advance instructions.
it's success.
now i open new project and want to connect them.
how can i do that?
In which format I can use to load an existing image?
can you give me a simple working example code to load existing image ?
thanks for your help.
how to use imagemagick?
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: how to use imagemagick?
If you are using Magick++ the best way to start is to use the advice "Magick" always gives:
To get it to compile you need to modify the properties of your C project.
Right click on the project name and select Properties and then modify the following options:
- In C/C++|General: In "Additional Include Directories" add the path to your include directory - something like "C:\Program Files\ImageMagick-6.6.7-Q16\include"
- In Linker|General: Add the additional library directory C:\Program Files\ImageMagick-6.6.7-Q16\lib
- In Linker|Input: Add the Additional Dependencies CORE_RL_magick_.lib CORE_RL_wand_.lib
Change the pathname to suit your specific installation.
If you're generating a debug version change _RL_ to _DB_ in the above names and if you're using the Q8 version of IM change -Q16 to -Q8.
Pete
If you are using C, then start with logo_1.c in my examples - http://members.shaw.ca/el.supremo/MagickWand/.Go to c:\Program Files\ImageMagick-6.6.7-1\Magick++_demos and click on the button project. Build and execute. Now use this project as a template for your own custom code.
To get it to compile you need to modify the properties of your C project.
Right click on the project name and select Properties and then modify the following options:
- In C/C++|General: In "Additional Include Directories" add the path to your include directory - something like "C:\Program Files\ImageMagick-6.6.7-Q16\include"
- In Linker|General: Add the additional library directory C:\Program Files\ImageMagick-6.6.7-Q16\lib
- In Linker|Input: Add the Additional Dependencies CORE_RL_magick_.lib CORE_RL_wand_.lib
Change the pathname to suit your specific installation.
If you're generating a debug version change _RL_ to _DB_ in the above names and if you're using the Q8 version of IM change -Q16 to -Q8.
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
See my message in this topic for a link to a zip of all the files.