English 中文(简体)
如何在Windows上下载、编译和执行简单的ImageMagick(++)
原标题:How can I download, compile and execute a simple ImageMagick (++) on Windows

除了学习图形库API之外,没有其他特别的原因,我决定试试ImageMagick。我想我应该下载一个DLL和一个头文件(*.h),然后创建一个使用这个头文件和链接DLL的c++程序。

现在,问题是:我没有找到这样的头文件。

我发现ftp://ftp.imagemagick.org/pub/ImageMagick/binaries/ImageMagick-6.6.7-Q16-windows.zip,其中包含一些DLL和EXE,但没有头文件。

另一方面,在http://image_magick.veidrodis.com/image_magick/windows/我发现一些zip文件中充满了头文件,但没有任何DLL。如果我编译了这样一个zip文件中包含的树,我可能会创建这样一个DLL,但由于我不知道我是否会喜欢ImageMagick,我宁愿不这样做,尤其是因为我在windows上,整个构建过程似乎是为Unix变体而做的。

简言之,我的问题可能归结为:是否有可能在c++或c中创建一个简单的ImageMagick“应用程序”,它的最低要求是什么,我从哪里得到它们。

Edit: As per a comment, I have tried the MagicWand C API http://www.imagemagick.org/script/magick-wand.php I can compile the c source file, but I cannot link it because of undefined references to MagickWandGenesis, NewMagickWand, MagickReadImage, MagickGetException, MagickRelinquishMemory, MagickResetIterator, MagickResizeImage, MagickNextImage, MagickWriteImages, MagickGetException, MagickRelinquishMemory, DestroyMagickWand and MagickWandTerminus. And it s these symbols that I thought I d find in a DLL.

编辑:也许ImageMagick对我来说太大了,而且它并不像我希望的那样简单。在这种情况下,我很乐意看到任何指向其他图形库的指针,它们可以做的不仅仅是直线和圆。

问题回答

我们需要知道您的要求,以建议任何图像处理库。有许多具有不同功能:OpenCVlibpnglibjpegGIL等等。

您可能只需要一个本机Windows库,如GDIGDI+DirectX(Direct3D或Direct2D)





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签