X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=www%2Fapi%2Fdraw.html;h=0695fb12b49a5af4e1bb1e4424fe87679b1a737b;hb=e9a32c3a7f2e79afe8d244eeda396b66473ebb75;hp=c5f47a7e232cc8d720adf27c1de549d0ce922406;hpb=3e4842b32416705d09ed7065947e715a26fc9308;p=imagemagick diff --git a/www/api/draw.html b/www/api/draw.html index c5f47a7e2..0695fb12b 100644 --- a/www/api/draw.html +++ b/www/api/draw.html @@ -1,15 +1,19 @@ - - + + - ImageMagick: MagickCore, C API for ImageMagick: Draw on an Image + ImageMagick: MagickCore, C API for ImageMagick: Draw on an Image - + @@ -19,29 +23,52 @@ - + - + + + + + +
- - [ImageMagick] - - [sponsor] +
+ + +
- + ImageMagick Logo -
@@ -60,6 +87,9 @@
Mac OS X
+
+ iPhone +
Windows
@@ -89,7 +119,7 @@ PerlMagick
- Magick++ + Magick++
- Links + Links
- - +
+

Module draw Methods

-

AcquireDrawInfo

+

AcquireDrawInfo

-

AcquireDrawInfo() returns a DrawInfo structure properly initialized.

+

AcquireDrawInfo() returns a DrawInfo structure properly initialized.

The format of the AcquireDrawInfo method is:

@@ -185,11 +211,10 @@ _8c.html" target="source" name="AcquireDrawInfo">AcquireDrawInfo
-

CloneDrawInfo

+

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.

+

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:

@@ -198,20 +223,19 @@ _8c.html" target="source" name="CloneDrawInfo">CloneDrawInfo const DrawInfo *draw_info) -

A description of each parameter follows:

+

A description of each parameter follows:

image_info
-

    the image info.

+

the image info.

draw_info
-

    the draw info.

+

the draw info.

-

DestroyDrawInfo

+

DestroyDrawInfo

-

DestroyDrawInfo() deallocates memory associated with an DrawInfo structure.

+

DestroyDrawInfo() deallocates memory associated with an DrawInfo structure.

The format of the DestroyDrawInfo method is:

@@ -219,17 +243,16 @@ _8c.html" target="source" name="DestroyDrawInfo">DestroyDrawInfo DrawInfo *DestroyDrawInfo(DrawInfo *draw_info) -

A description of each parameter follows:

+

A description of each parameter follows:

draw_info
-

    the draw info.

+

the draw info.

-

DrawAffineImage

+

DrawAffineImage

-

DrawAffineImage() composites the source over the destination image as dictated by the affine transform.

+

DrawAffineImage() composites the source over the destination image as dictated by the affine transform.

The format of the DrawAffineImage method is:

@@ -238,23 +261,22 @@ _8c.html" target="source" name="DrawAffineImage">DrawAffineImage const AffineMatrix *affine) -

A description of each parameter follows:

+

A description of each parameter follows:

image
-

    the image.

+

the image.

source
-

    the source image.

+

the source image.

affine
-

    the affine transform.

+

the affine transform.

-

DrawClipPath

+

DrawClipPath

-

DrawClipPath() draws the clip path on the image mask.

+

DrawClipPath() draws the clip path on the image mask.

The format of the DrawClipPath method is:

@@ -263,23 +285,22 @@ _8c.html" target="source" name="DrawClipPath">DrawClipPath const char *name) -

A description of each parameter follows:

+

A description of each parameter follows:

image
-

    the image.

+

the image.

draw_info
-

    the draw info.

+

the draw info.

name
-

    the name of the clip path.

+

the name of the clip path.

-

DrawImage

+

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.

+

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:

@@ -287,20 +308,19 @@ _8c.html" target="source" name="DrawImage">DrawImage MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info) -

A description of each parameter follows:

+

A description of each parameter follows:

image
-

    the image.

+

the image.

draw_info
-

    the draw info.

+

the draw info.

-

DrawGradientImage

+

DrawGradientImage

-

DrawGradientImage() draws a linear gradient on the image.

+

DrawGradientImage() draws a linear gradient on the image.

The format of the DrawGradientImage method is:

@@ -309,20 +329,19 @@ _8c.html" target="source" name="DrawGradientImage">DrawGradientImage const DrawInfo *draw_info) -

A description of each parameter follows:

+

A description of each parameter follows:

image
-

    the image.

+

the image.

_info
-

    the draw info.

+

the draw info.

-

DrawPatternPath

+

DrawPatternPath

-

DrawPatternPath() draws a pattern.

+

DrawPatternPath() draws a pattern.

The format of the DrawPatternPath method is:

@@ -331,26 +350,25 @@ _8c.html" target="source" name="DrawPatternPath">DrawPatternPath const char *name,Image **pattern) -

A description of each parameter follows:

+

A description of each parameter follows:

image
-

    the image.

+

the image.

draw_info
-

    the draw info.

+

the draw info.

name
-

    the pattern name.

+

the pattern name.

image
-

    the image.

+

the image.

-

DrawPrimitive

+

DrawPrimitive

-

DrawPrimitive() draws a primitive (line, rectangle, ellipse) on the image.

+

DrawPrimitive() draws a primitive (line, rectangle, ellipse) on the image.

The format of the DrawPrimitive method is:

@@ -359,23 +377,22 @@ _8c.html" target="source" name="DrawPrimitive">DrawPrimitive PrimitiveInfo *primitive_info) -

A description of each parameter follows:

+

A description of each parameter follows:

image
-

    the image.

+

the image.

draw_info
-

    the draw info.

+

the draw info.

primitive_info
-

    Specifies a pointer to a PrimitiveInfo structure.

+

Specifies a pointer to a PrimitiveInfo structure.

-

GetAffineMatrix

+

GetAffineMatrix

-

GetAffineMatrix() returns an AffineMatrix initialized to the identity matrix.

+

GetAffineMatrix() returns an AffineMatrix initialized to the identity matrix.

The format of the GetAffineMatrix method is:

@@ -383,10 +400,10 @@ _8c.html" target="source" name="GetAffineMatrix">GetAffineMatrix void GetAffineMatrix(AffineMatrix *affine_matrix) -

A description of each parameter follows:

+

A description of each parameter follows:

affine_matrix
-

    the affine matrix.

+

the affine matrix.

@@ -401,7 +418,7 @@ _8c.html" target="source" name="GetAffineMatrix">GetAffineMatrix