PythonMagick的文档和示例 [英] Documents and examples of PythonMagick

查看:89
本文介绍了PythonMagick的文档和示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哪里可以找到 PythonMagick 的文档和示例?

Where can I find the document and examples of PythonMagick?

我在Google上搜索过但没有找到太多信息。

I did a search on Google but no much information was found.

推荐答案

这是一个绑定到 MagickWand API http://www.assembla.com/wiki/show/pythonmagickwand

所以你可以使用所有的MagickWand API函数。

So you can use all of the MagickWand API functions.

 #!/usr/bin/python
 import Magick

 # Use the Python Imaging Library to create a Tk display
 dpy = Magick.TkDisplay(startmain=0)

 # Read the image
 img = Magick.read('test.gif')

 # Display the image
 dpy(img)
 dpy(img.Swirl(90))

 dpy.startmain=1
 dpy.show()

这篇关于PythonMagick的文档和示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆