rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.8-Q16
%im%\convert.exe -size 100x100 xc:none -fill #FFFFFF80 -draw "ellipse 40,-60,90,90,0,360" ( -size 100x100 xc:none -fill white -draw "roundrectangle 0,0 99,99 10,10" ) -compose dst_in -composite ( -size 100x100 xc:none -fill #00000040 -draw "roundrectangle 0,0 99,99 10,10" ) +swap -compose src-over -composite sample341a.png
rem 重ね合わせ例
%im%\convert.exe sf.jpg sample341a.png -geometry +90+40 -composite sample341b.png
上記バッチファイルでは半透明の円を描画して、角丸四角でマスクして、半透明の角丸四角と重ね合わせています。
出力画像(sample341a.png)

重ね合わせ例(sample341a.png)

No comments:
Post a Comment