# coding=UTF-8
import win32com.client
im = win32com.client.Dispatch("ImageMagickObject.MagickImage.1")
im.convert("-size", "300x150", "-gravity", "center",
"-pointsize", "50", "-fill", "#bbddff",
"-font", "Tahoma", "label:ImageMagick",
"-virtual-pixel", "background", "-background", "white",
"-fx", "p{i,(j-cos(pi*i/w*2)*0.7*h/2)/(1-cos(pi*i/w*2)*0.7)}",
"sample1395a.png")
出力画像(sample1395a.png)
動作環境
Python3.1.1, Python for Windows Extensions (Build 214), ImageMagick6.5.5
No comments:
Post a Comment