roundRectangle has wrong strokewidth

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Opaxtl

roundRectangle has wrong strokewidth

Post by Opaxtl »

Hello,

this code

Code: Select all

convert test1.bmp -fill none -stroke #154997 -strokewidth 4 -draw "roundRectangle 10,10 100,100 16,16" test2.bmp
draws a 5 pixel width round rectangle. ImageMagick version is 6.5.7 Q16 on a windows xp system.

Thanks.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: roundRectangle has wrong strokewidth

Post by anthony »

Modifying the command to use a plain canvas and magnifying the output...

Code: Select all

convert -size 120x120 xc: -fill none -stroke \#154997 -strokewidth 4 -draw "roundRectangle 10,10 100,100 16,16" -crop 30x30 -scale 2000% show:
shows a width of rectangle is 5 pixels. this is on IM v6.6.1-1 under linux.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply