Thursday, January 04, 2007

ImageMagickでドット絵風の文字を描画する

ImageMagickでドット絵風の文字を描画するには、
小さいイメージで文字列を描画後、拡大します。

以下のコマンドだと、ぼやけた感じになります。
set im=C:\Progra~1\ImageMagick-6.3.0-Q16
%im%\convert.exe -size 40x10 xc:#f2ede9 -fill #74a2c3 -pointsize 9 +antialias -draw "fill-opacity 0.3 text 1,8 'M a g i c'" -resize 400x100 sample44a.jpg



以下のコマンドだと、くっきりとドット絵風に拡大されます。
%im%\convert.exe -size 400x100 xc:none ( -size 40x10 xc:#f2ede9 -fill #74a2c3 -pointsize 9 +antialias -draw "fill-opacity 0.3 text 1,8 'M a g i c'" ) -fx "v.p{int(i/10),int(j/10)}" sample44b.jpg



関連項目
ImageMagickでドット絵風の文字を描画する-その2

No comments: