実線で角丸四角を描画して、点線で重ね書きします。
rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.1-Q16
%im%\convert.exe -size 100x100 xc:none -stroke #2277dd -fill none -draw "stroke-width 2 roundrectangle 5,5 95,95 10,10" -stroke #ccddff -fill none -strokewidth 2 -draw "stroke-dasharray 4,4 stroke-width 2 roundrectangle 5,5 95,95 10,10" sample69a.gif
出力画像(sample69a.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimTWOEmPJlz3De3rTBLDNRg3uu7leE7rd9HgAkeGuuyBfUwx4V1kvo7GDjMuWVFFSWUnzxVC2TDpTNpJorA6ioy0zjh3KrPPuQeh3u6TDyqc5DuisZPuoaGDOrCZDuHH3ORsUe/s320/sample69a.gif)
ImageMagickで3色の点線の角丸四角を描画するには、
実線で角丸四角を描画して、stroke-dasharrayの幅を変えて2回点線で重ね書きします。
%im%\convert.exe -size 100x100 xc:none -stroke #fce769 -fill none -draw "stroke-width 2 roundrectangle 5,5 95,95 10,10" -stroke #f8c749 -fill none -strokewidth 2 -draw "stroke-dasharray 8,4 stroke-width 2 roundrectangle 5,5 95,95 10,10" -stroke #f4a729 -fill none -strokewidth 2 -draw "stroke-dasharray 4,8 stroke-width 2 roundrectangle 5,5 95,95 10,10" sample69b.gif
出力画像(sample69b.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJQsDgbI7HjdpC74Aka4aK780As2LkVQ-qwoXPkD0RnAp3HIr6ZNd0I67QxIjKQ3IMcoSstV3_zLxccC3-jcmZSMspBHtRP1-HYzUDNTBSYI3yrqSBiIDCu9obiNq_GcA6yU3x/s320/sample69b.gif)
関連項目
ImageMagickで点線の角丸四角を描画する - その1
No comments:
Post a Comment