The following tables list all functions in the GD API. Corresponding
OCaml function names are shown for all functions currently implemented
in GD4O. The When column shows when each function
was implemented: [0] indicates that the function was implemented in
OCamlGD 0.7; [1], [2], [3], [4], and [5] stand for GD4O releases 1.0a1,
1.0a2, 1.0a3, 1.0a4, and 1.0a5, respectively.
In the C library, 'FilledArc' takes a bitwise OR of several flags. But those
flags include one that specifies an arc, and another that specifies a chord
- which are in fact mutually exclusive drawing operations. Seems like rather
poor design to me, so I separated FilledArc into two methods. Furthermore, the
word 'closed' seems to me a more accurate description of what the method does.
In the C API, gdImageStringFt returns the bounding box of the
string. If you need the bounding box without drawing the string,
you pass a null gdImagePointer. Since OCaml doesn't really have
null pointers, the ft_bbox function simply calls a C function
that passes a null gdImagePtr to gdImageStringFT.