ImageMagick: MagickCore, C API for ImageMagick: Draw on an Image
Author: ImageMagick Studio LLC
Description: ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (P [cell cut: 1167 characters, first 1000 kept]
Keywords: magickcore, c, api, for, imagemagick:, draw, on, an, image, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand

## AcquireDrawInfo AcquireDrawInfo() returns a DrawInfo structure properly initialized. The format of the AcquireDrawInfo method is:
      DrawInfo *AcquireDrawInfo(void)
## CloneDrawInfo CloneDrawInfo() makes a copy of the given draw info structure. If NULL is specified, a new image info structure is created initialized to default values. The format of the CloneDrawInfo method is:
      DrawInfo *CloneDrawInfo(const ImageInfo *image_info,
        const DrawInfo *draw_info)
A description of each parameter follows: ##### image_info The image info. ##### draw_info The draw info. ## DestroyDrawInfo DestroyDrawInfo() deallocates memory associated with an DrawInfo structure. The format of the DestroyDrawInfo method is:
      DrawInfo *DestroyDrawInfo(DrawInfo *draw_info)
A description of each parameter follows: ##### draw_info The draw info. ## DrawAffineImage DrawAffineImage() composites the source over the destination image as dictated by the affine transform. The format of the DrawAffineImage method is:
      MagickBooleanType DrawAffineImage(Image *image,const Image *source,
        const AffineMatrix *affine)
A description of each parameter follows: ##### image The image. ##### source The source image. ##### affine The affine transform. ## DrawClipPath DrawClipPath() draws the clip path on the image mask. The format of the DrawClipPath method is:
      MagickBooleanType DrawClipPath(Image *image,const DrawInfo *draw_info,
        const char *name)
A description of each parameter follows: ##### image The image. ##### draw_info The draw info. ##### name The name of the clip path. ## DrawImage DrawImage() draws a graphic primitive on your image. The primitive may be represented as a string or filename. Precede the filename with an "at" sign (@) and the contents of the file are drawn on the image. You can affect how text is drawn by setting one or more members of the draw info structure. The format of the DrawImage method is:
      MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info)
A description of each parameter follows: ##### image The image. ##### draw_info The draw info. ## DrawGradientImage DrawGradientImage() draws a linear gradient on the image. The format of the DrawGradientImage method is:
      MagickBooleanType DrawGradientImage(Image *image,
        const DrawInfo *draw_info)
A description of each parameter follows: ##### image The image. ##### _info The draw info. ## DrawPatternPath DrawPatternPath() draws a pattern. The format of the DrawPatternPath method is:
      MagickBooleanType DrawPatternPath(Image *image,const DrawInfo *draw_info,
        const char *name,Image **pattern)
A description of each parameter follows: ##### image The image. ##### draw_info The draw info. ##### name The pattern name. ##### image The image. ## GetAffineMatrix GetAffineMatrix() returns an AffineMatrix initialized to the identity matrix. The format of the GetAffineMatrix method is:
      void GetAffineMatrix(AffineMatrix *affine_matrix)
A description of each parameter follows: ##### affine_matrix The affine matrix. |

Discourse Server • Mailing Lists • ImageMagick Studio