Documentation error

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
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Documentation error

Post by el_supremo »

The comment at the front of DrawPoint in drawing-wand.c says:
% DrawPoint() draws a point using the current stroke color and stroke
% thickness at the specified coordinates.
In fact it uses the fill color.

Also, by "stroke thickness" does it mean "stroke width"?. In a test program I set the StrokeWidth to 3 and then drew some coloured points and it draws single (1x1) points rather than a 3x3 "point" as I was expecting from my interpretation of the comment.


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

Re: Documentation error

Post by anthony »

It probably does both, have you tried setting a stoke color other than the default of NONE.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Documentation error

Post by el_supremo »

Yep, stroke colour didn't have any effect.
Late yesterday I checked the comment in the current version of drawing-wand.c and it has been changed to:
% DrawPoint() draws a point using the current fill color.
Pete
Post Reply