draw - Methods to Draw on an Image
DrawInfo * CloneDrawInfo( const ImageInfo *image_info, const DrawInfo *draw_info );
unsigned int ColorFloodfillImage( Image *image, const DrawInfo *draw_info, const PixelPacket target, const int x_offset, const int y_offset, const PaintMethod method );
void DestroyDrawInfo( DrawInfo *draw_info );
unsigned int DrawImage( Image *image, const DrawInfo *draw_info );
void GetDrawInfo( const ImageInfo *image_info, DrawInfo *draw_info );
unsigned int MatteFloodfillImage( Image *image, const PixelPacket target, const unsigned int matte, const int x_offset, const int y_offset, const PaintMethod method );
unsigned int OpaqueImage( Image *image, const PixelPacket target, const PixelPacket pen_color );
unsigned int TransparentImage( Image *image, const PixelPacket target );
Method CloneDrawInfo makes a duplicate of the given draw info, or if draw info is NULL, a new one.
The format of the CloneDrawInfo method is:
DrawInfo *CloneDrawInfo ( const ImageInfo *image_info, const DrawInfo *draw_info );
A description of each parameter follows:
Method ColorFloodfillImage floodfills the designated area with a color. The floodfill algorithm is strongly based on a similar algorithm in ``Graphics Gems'' by Paul Heckbert.
The format of the ColorFloodfillImage method is:
unsigned int ColorFloodfillImage ( Image *image, const DrawInfo *draw_info, const PixelPacket target, const int x_offset, const int y_offset, const PaintMethod method );
A description of each parameter follows:
Method DestroyDrawInfo deallocates memory associated with an DrawInfo structure.
The format of the DestroyDrawInfo method is:
void DestroyDrawInfo ( DrawInfo *draw_info );
A description of each parameter follows:
Method DrawImage draws a primitive (line, rectangle, ellipse) on the image.
The format of the DrawImage method is:
unsigned int DrawImage ( Image *image, const DrawInfo *draw_info );
A description of each parameter follows:
Method GetDrawInfo initializes the DrawInfo structure.
The format of the GetDrawInfo method is:
void GetDrawInfo ( const ImageInfo *image_info, DrawInfo *draw_info );
A description of each parameter follows:
Method MatteFloodfillImage floodfills the designated area with a matte value. The floodfill algorithm is strongly based on a similar algorithm in ``Graphics Gems'' by Paul Heckbert.
The format of the MatteFloodfillImage method is:
unsigned int MatteFloodfillImage ( Image *image, const PixelPacket target, const unsigned int matte, const int x_offset, const int y_offset, const PaintMethod method );
A description of each parameter follows:
Method OpaqueImage changes the color of an opaque point to the pen color.
The format of the OpaqueImage method is:
unsigned int OpaqueImage ( Image *image, const PixelPacket target, const PixelPacket pen_color );
A description of each parameter follows:
Method TransparentImage creates a matte image associated with the image. All pixel locations are initially set to opaque. Any pixel that matches the specified color are set to transparent.
The format of the TransparentImage method is:
unsigned int TransparentImage ( Image *image, const PixelPacket target );
A description of each parameter follows: