# coding=UTF-8
import win32com.client
im = win32com.client.Dispatch("ImageMagickObject.MagickImage.1")
im.convert("-size", "200x200", "xc:none", "-fx",
"(i+(floor(j/20)%2)*8)%30>1&&\
(i+(floor(j/20)%2)*8)%30<29&&j%20>1&&j%20<19?0:1",
"-shade", "-45x23",
"sample1375a.png")
im.convert("sf.jpg", "-channel", "rgba", "(", "sample1375a.png",
"-alpha", "activate", "-channel", "a", "-fx", "0.3" "-channel", "rgba",
")", "-composite",
"sample1375b.png")
元画像(sf.jpg)
出力画像(sample1375b.png)
動作環境
Python3.1.1, Python for Windows Extensions (Build 214), ImageMagick6.5.5
No comments:
Post a Comment