Anti-Grain Geometry Tutorial
|
Rectangles and rounded rectangles are fairly commonly used shapes. Just include the following header.
Then you can a rectangle using x1, y1, x2, y2, and radius. To have different rx and ry, use the radius function.
Note that it is not necessary to use agg::conv_curve to convert path commands.
tutorial_shape_1.cpp draws a very simple ellipse.
An equivalent SVG is