Anti-Grain Geometry Tutorial
|
In Image - Basics, the image is drawn in a square, which is not all that interesting. This tutorial should demonstrates the potential of AGG's image drawing API.
The drawImage
function is changed a bit. Instead of x/y/width/height, it takes the transformation matrix and path. Then all we needed to do is to use some creative matrix and shape when drawing the image.
tutorial_image_2.cpp first generates the following image icon.
Then it draws this image three times.
An equivalent SVG is