m+I6annotate - Methods to Annotate an Image>j Pair








NAME

.

annotate - Methods to Annotate an Image






(

SYNOPSIS

Y

unsigned int AnnotateImage( Image *image, DrawInfo *draw_info );

u

unsigned int GetTypeMetrics( Image *image, const DrawInfo *draw_info, TypeMetric *metrics );






B

FUNCTION DESCRIPTIONS





2

AnnotateImage

ý
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:


C
o status:


LMethod AnnotateImage returns True if the image is annotated otherwise False.


A
o image:


The image.


I
o draw_info:


The draw info.





4

GetTypeMetrics

q
GetTypeMetrics() returns the following information for the specified font and text:
1
o


˜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

2

The format of the GetTypeMetrics method is:

ç
unsigned int GetTypeMetrics ( Image *image, const DrawInfo *draw_info, TypeMetric *metrics );

A description of each parameter follows:


#
o image:


The image.


'
o draw_info:


The draw info.


E
o metrics:


*Return the font metrics in this structure.