I am Charmie

メモとログ

Magick++: Draw a circle

Magick++ provides a sub-class DrawableCircle that draws a circle on an image canvas. We should note the crazy design of the class.

The sub-class is called as image.draw( DrawableCircle(originX, originY, perimX, perimY) ); This call draw a circle, center of it is located at (originX, originY) and its radius is sqrt( (originX-perimX)2+originY-perimY)2 ). If you would like to draw a circle of 5 pixels radius at (100,50), you should call image.draw( DrawableCircle(100, 50, 100+5, 50) );