# coding=UTF-8
import win32com.client
im = win32com.client.Dispatch("ImageMagickObject.MagickImage.1")
im.convert("-size", "240x80", "xc:#fad759", "-tile",
"pattern1.gif", "-pointsize", "70", "-draw",
"text 0,60 Sample", "sample1411a.png")
パターン画像(pattern1.gif)
出力画像(sample1411a.png)
動作環境
Python3.1.1, Python for Windows Extensions (Build 214), ImageMagick6.5.5
No comments:
Post a Comment