www/api/draw.html
Select API Method
AcquireDrawInfo() returns a DrawInfo structure properly initialized.
The format of the AcquireDrawInfo method is:
DrawInfo \*AcquireDrawInfo(void)
CloneDrawInfo() makes a copy of the given draw_info structure. If NULL is specified, a new DrawInfo 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_infothe image info. draw_infothe draw info.
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_infothe draw info.
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,ExceptionInfo \*exception)
A description of each parameter follows:
imagethe image. sourcethe source image. affinethe affine transform. exceptionreturn any errors or warnings in this structure.
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 \*id,ExceptionInfo \*exception)
A description of each parameter follows:
imagethe image. draw_infothe draw info. idthe clip path id. exceptionreturn any errors or warnings in this structure.
DrawClippingMask() draws the clip path and returns it as an image clipping mask.
The format of the DrawClippingMask method is:
Image \*DrawClippingMask(Image \*image,const DrawInfo \*draw\_info, const char \*id,const char \*clip\_path,ExceptionInfo \*exception)
A description of each parameter follows:
imagethe image. draw_infothe draw info. idthe clip path id. clip_paththe clip path. exceptionreturn any errors or warnings in this structure.
DrawCompositeMask() draws the mask path and returns it as an image mask.
The format of the DrawCompositeMask method is:
Image \*DrawCompositeMask(Image \*image,const DrawInfo \*draw\_info, const char \*id,const char \*mask\_path,ExceptionInfo \*exception)
A description of each parameter follows:
imagethe image. draw_infothe draw info. idthe mask path id. mask_paththe mask path. exceptionreturn any errors or warnings in this structure.
DrawGradientImage() draws a linear gradient on the image.
The format of the DrawGradientImage method is:
MagickBooleanType DrawGradientImage(Image \*image, const DrawInfo \*draw\_info,ExceptionInfo \*exception)
A description of each parameter follows:
imagethe image. draw_infothe draw info. exceptionreturn any errors or warnings in this structure.
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, ExceptionInfo \*exception)
A description of each parameter follows:
imagethe image. draw_infothe draw info. exceptionreturn any errors or warnings in this structure.
DrawPatternPath() draws a pattern.
The format of the DrawPatternPath method is:
MagickBooleanType DrawPatternPath(Image \*image,const DrawInfo \*draw\_info, const char \*name,Image \*\*pattern,ExceptionInfo \*exception)
A description of each parameter follows:
imagethe image. draw_infothe draw info. namethe pattern name. imagethe image. exceptionreturn any errors or warnings in this structure.
DrawPrimitive() draws a primitive (line, rectangle, ellipse) on the image.
The format of the DrawPrimitive method is:
MagickBooleanType DrawPrimitive(Image \*image,const DrawInfo \*draw\_info, PrimitiveInfo \*primitive\_info,ExceptionInfo \*exception)
A description of each parameter follows:
imagethe image. draw_infothe draw info. primitive_infoSpecifies a pointer to a PrimitiveInfo structure. exceptionreturn any errors or warnings in this structure.
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_matrixthe affine matrix.