擅长:python、mysql、java
<p>从<a href="http://www.reddit.com/r/Python/comments/ccofm/hi_pyreddit_i_asked_a_question_on_stack_overflow/c0rnlwf" rel="nofollow noreferrer">NeedMoreBeer</a>到<a href="http://www.reddit.com/" rel="nofollow noreferrer">Reddit.com</a>:</p>
<pre><code>from PythonMagickWand import *
from ctypes import *
arrayType = c_double * 8
pointsNew = arrayType()
pointsNew[0] = c_double(121.523809524)
pointsNew[1] = c_double(317.79638009)
pointsNew[2] = c_double(141)
pointsNew[3] = c_double(275)
pointsNew[4] = c_double(346.158730159)
pointsNew[5] = c_double(312.628959276)
pointsNew[6] = c_double(319)
pointsNew[7] = c_double(275)
ShepardsDistortion = DistortImageMethod(14)
MagickWandGenesis()
wand = NewMagickWand()
MagickReadImage(wand,'/home/user/image.png')
MagickDistortImage(wand,ShepardsDistortion, 8, pointsNew, False)
MagickWriteImage(wand,'/home/user/image_mod22.jpg')
</code></pre>
<p>更具体地说,是下面这句话:</p>
^{pr2}$
<p>帮我修好了!再次感谢来自<a href="http://www.reddit.com/" rel="nofollow noreferrer">Reddit</a>的<strong>NeedMoreBeer</strong>。在</p>