在哪里可以找到PythonMagick的文档和示例?
我在Google上进行了搜索,但没有找到太多信息。
最佳答案
编辑:没什么可看的。请引用更好的答案below。
它是对MagickWand API的绑定(bind):http://www.assembla.com/wiki/show/pythonmagickwand
因此,您可以使用所有MagickWand API函数。
#!/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()
关于python - PythonMagick的文档和示例,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1740158/