ImageMagick with Visual Studio

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 11:54:04

I am by no means an expert, but here is what worked for me:

Using Windows7 Professional and Visual C++ Express 2010...

I checked the Install development headers and libraries for C and C++

At the end of the install, I got these two folders. Magick++.h lies inside include.

Be sure to set up your projects Additional Library Locations and Additional Include Directories and you should be able to compile your program.

Additionally: The manual suggests you need to do this for your program to work, but I did not and it still worked:

InitializeMagick(path_to_ImageMagick_DLLs);

And during my brief test, I found that Magick::Image::Magick() which changes image formats does not work in Debug mode. It does work in Release mode though.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!