annotate - Annotate an image with text
unsigned int AnnotateImage( Image *image, DrawInfo *draw_info );
unsigned int GetTypeMetrics( Image *image, const DrawInfo *draw_info, TypeMetric *metrics );
AnnotateImage() annotates an image with text. Optionally you can include any of the following bits of information about the image by embedding the appropriate special characters:
The format of the AnnotateImage method is:
unsigned int AnnotateImage ( Image *image, DrawInfo *draw_info );
A description of each parameter follows:
Method AnnotateImage returns True if the image is annotated otherwise False.
The image.
The draw info.
GetTypeMetrics() returns the following information for the specified font and text:
character width o character height o ascent o descent o text width o text height o maximum horizontal advance o underline position o underline thickness
The format of the GetTypeMetrics method is:
unsigned int GetTypeMetrics ( Image *image, const DrawInfo *draw_info, TypeMetric *metrics );
A description of each parameter follows:
The image.
The draw info.
Return the font metrics in this structure.