Magick++ DrawableRoundRectangle attribute names are misleading

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
Brian Nixon
Posts: 1
Joined: 2017-03-12T12:30:30-07:00
Authentication code: 1151

Magick++ DrawableRoundRectangle attribute names are misleading

Post by Brian Nixon » 2017-03-12T12:49:09-07:00

The Magick++ class DrawableRoundRectangle has attributes named centerX, centerY, width and hight whose values are passed to the MagickWand function DrawRoundRectangle() which interprets them as x1, y1, x2 and y2.

It might be clearer if the attributes had names that reflected their usage and were consistent with the class DrawableRectangle (i.e., upperLeftX, upperLeftY, lowerRightX and lowerRightY).

Post Reply