Intended as a much less-sophisticated replacement for libraries like libgd, for applications where a tiny graphics library is useful (for low-footprint CGI graphics generation, or in embedded development).
Requires libjpeg, libtiff and libpng.
Example 1: Drawing some lines and other stuff.
Example 2: Drawing text
Example 3: Text scaling
Example 5: Cropping an image
#include "ericdraw.h"
struct image *i;
i = draw_create_image(320,240);
draw_color(i, black);
draw_line(i, 160, 30, 120,210);
draw_line(i, 160, 30, 200,210);
draw_line(i, 80,120, 240,120);
draw_box(i, 60,20, 260,220);
draw_circle(i, 160,120, 70);
draw_write_png(i, "myimage.png");
draw_free_image(i);