Documents and examples of PythonMagick

后端 未结 6 969
长发绾君心
长发绾君心 2020-12-04 18:09

Where can I find the document and examples of PythonMagick?

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

6条回答
  •  情歌与酒
    2020-12-04 19:00

    EDIT: Nothing to see here. Refer to better answer below.


    It is a bindings to the MagickWand API : http://www.assembla.com/wiki/show/pythonmagickwand

    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()
    

提交回复
热议问题