ImageMagick: MagickCore, C API for ImageMagick: Annotate an Image
Author: ImageMagick Studio LLC
Description: ImageMagick (TM) is a free software suite to create, edit and compose bitmap images. It can read, convert and write images in a large variety of formats. Images can be cropped, colors can be changed, various effects can be applied, images can be rotated and combined, and text, lines, polygons, ellipses and Bézier curves can be added to images and stretched and rotated. ImageMagick is free software: it is delivered with full source code and can be freely used, copied, modified and distributed. Its license is compatible with the GPL. It runs on all major operating systems. Most of the functionality of ImageMagick can be used interactively from the command line; more often, however, the features are used from programs written in the programming languages Perl, C, C++, Python, PHP, Ruby or Java, for which ready-made ImageMagick interfaces (PerlMagick, Magick++, PythonMagick, MagickWand for PHP, RubyMagick, and JMagick) are available. This makes it possible to modify or create images automa [cell cut: 1159 characters, first 1000 kept]
Keywords: magickcore, c, api, for, imagemagick:, annotate, an, image, ImageMagick, PerlMagick, Magick++, Image, Magick

## 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:
          b   file size in bytes.
          c   comment.
          d   directory in which the image resides.
          e   extension of the image file.
          f   original filename of the image.
          h   height of image.
          i   filename of the image.
          k   number of unique colors.
          l   image label.
          m   image file format.
          n   number of images in a image sequence.
          o   output image filename.
          p   page number of the image.
          q   image depth (8 or 16).
          p   page number of the image.
          q   image depth (8 or 16).
          s   image scene number.
          t   image filename without any extension.
          u   a unique temporary filename.
          w   image width.
          x   x resolution of the image.
          y   y resolution of the image.
The format of the AnnotateImage method is:
      MagickBooleanType AnnotateImage(Image *image,DrawInfo *draw_info)
A description of each parameter follows: #### image The image. #### draw_info The draw info. ## GetMultilineTypeMetrics GetMultilineTypeMetrics() returns the following information for the specified font and text:
          character width
          character height
          ascent
          descent
          text width
          text height
          maximum horizontal advance
          underline position
          underline thickness
This method is like GetTypeMetrics() but it returns the maximum text width and height for multiple lines of text. The format of the GetMultilineTypeMetrics method is:
      MagickBooleanType GetMultilineTypeMetrics(Image *image,
        const DrawInfo *draw_info,TypeMetric *metrics)
A description of each parameter follows: #### image The image. #### draw_info The draw info. #### metrics Return the font metrics in this structure. ## GetTypeMetrics GetTypeMetrics() returns the following information for the specified font and text:
          character width
          character height
          ascent
          descent
          text width
          text height
          maximum horizontal advance
          underline position
          underline thickness
The format of the GetTypeMetrics method is:
      MagickBooleanType GetTypeMetrics(Image *image,const DrawInfo *draw_info,
        TypeMetric *metrics)
A description of each parameter follows: #### image The image. #### draw_info The draw info. #### metrics Return the font metrics in this structure. |

Discourse Server | Mailing Lists | Image Gallery | ImageMagick Studio
© 1999-2006 ImageMagick Studio LLC