import org.codehaus.groovy.scriptom.*
Scriptom.inApartment
{
im = new ActiveXObject("ImageMagickObject.MagickImage.1")
im.convert("sf.jpg", "-blur", "0x5", "sample1072a.png")
}
元画像(sf.jpg)
出力画像(sample1072a.png)

動作環境
Groovy1.6.0, JDK1.6 Update12, ImageMagick6.5.0, Microsoft VC++ 2008 Redistributable
※ImageMagickインストール時にCOMインターフェイスも入れておくこと。
No comments:
Post a Comment