Tuesday, February 05, 2008

ImageMagickで、角が丸い十字模様を作成する

角が丸い十字模様を作成するには、以下のバッチファイルを実行します。

rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.7-Q16
%im%\convert.exe -size 20x20 xc:none -matte -channel rgba -fill black -draw "roundrectangle 8,2 12,17 2,2 roundrectangle 2,8 17,12 2,2" sample300a.png
%im%\convert.exe -size 200x200 tile:sample300a.png ( -size 220x220 tile:sample300a.png -matte -channel a -fx "p.r==1?0:1" -channel rgba ) -geometry -10-10 -composite sample300b.png

出力画像(sample300a.png)


出力画像(sample300b.png)

No comments: