1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
\r
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
\r
5 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />
\r
6 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />
\r
7 <style type="text/css" media="screen,projection"><!--
\r
8 @import url("../../www/magick.css");
\r
10 <link rel="shortcut icon" href="../../images/wand.ico" type="images/vnd.microsoft.icon"/>
11 <title>ImageMagick: MagickWand, C API for ImageMagick: Drawing Wand Methods</title>
12 <meta http-equiv="Content-Language" content="en-US"/>
13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
14 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
15 <meta name="Generator" content="PHP"/>
16 <meta name="Keywords" content="magickwc, api, for, imagemagick:, drawing, wmethods, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing"/>
17 <meta name="Description" content="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 (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically."/>
18 <meta name="Rating" content="GENERAL"/>
19 <meta name="Robots" content="INDEX, FOLLOW"/>
20 <meta name="Generator" content="ImageMagick Studio LLC"/>
21 <meta name="Author" content="ImageMagick Studio LLC"/>
22 <meta name="Revisit-after" content="2 DAYS"/>
23 <meta name="Resource-type" content="document"/>
24 <meta name="Copyright" content="Copyright (c) 1999-2009 ImageMagick Studio LLC"/>
25 <meta name="Distribution" content="Global"/>
28 <body id="www-imagemagick-org">
\r
29 <div class="titlebar">
\r
30 <a href="../../index.html">
\r
31 <img src="../../images/script.png" alt="[ImageMagick]"
\r
32 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
33 <a href="http://www.networkredux.com">
\r
34 <img src="../../images/networkredux.png" alt="[sponsor]"
\r
35 style="margin: 45px auto; border: 0px; float: left;" /></a>
\r
36 <a href="http://www.imagemagick.org/discourse-server/">
\r
37 <img src="../../images/logo.jpg" alt=""
\r
38 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
39 <a href="../../index.html">
\r
40 <img src="../../images/sprite.jpg" alt=""
\r
41 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
44 <div class="eastbar">
\r
47 <a href="../../index.html">About ImageMagick</a>
49 <div class="sep"></div>
\r
51 <a href="../../www/command-line-tools.html">Command-line Tools</a>
54 <a href="../../www/command-line-processing.html">Processing</a>
57 <a href="../../www/command-line-options.html">Options</a>
60 <a href="http://www.imagemagick.org/Usage/">Usage</a>
63 <a href="../../www/api.html">Program Interfaces</a>
66 <a href="../../www/magick-wand.html">MagickWand</a>
69 <a href="../../www/magick-core.html">MagickCore</a>
72 <a href="../../www/perl-magick.html">PerlMagick</a>
75 <a href="../../Magick++/">Magick++</a>
78 <a href="../../www/architecture.html">Architecture</a>
80 <div class="sep"></div>
\r
82 <a href="../../www/install-source.html">Install from Source</a>
85 <a href="../../www/install-source.html#unix">Unix</a>
88 <a href="../../www/install-source.html#windows">Windows</a>
91 <a href="../../www/binary-releases.html">Binary Releases</a>
94 <a href="../../www/binary-releases.html#unix">Unix</a>
97 <a href="../../www/binary-releases.html#macosx">Mac OS X</a>
100 <a href="../../www/binary-releases.html#windows">Windows</a>
103 <a href="../../www/resources.html">Resources</a>
105 <div class="sep"></div>
\r
107 <a href="../../www/download.html">Download</a>
109 <div class="sep"></div>
\r
111 <a href="../http://www.imagemagick.org/script/search.php">Search</a>
113 <div class="sep"></div>
\r
115 <a href="../../www/sitemap.html">Site Map</a>
118 <a href="../../www/links.html">Links</a>
120 <div class="sep"></div>
\r
122 <a href="../../www/sponsors.html">Sponsors:</a>
124 <div class="sponsbox">
125 <div class="sponsor">
126 <a href="http://www.buerodruck.de/stempel-service/index.html">Stempel bestellen</a><!-- 200910000035+ -->
128 <div class="sponsor">
129 <a href="http://www.online-kredit-index.de">Kredit</a><!-- 201003010120 Buchhorn -->
131 <div class="sponsor">
132 <a href="http://www.print24.de/">Druckerei</a><!-- 201009010720 -->
134 <div class="sponsor">
135 <a href="http://www.goyax.de">Börse</a><!-- 201001000240 Gewiese digital-finance.de -->
137 <div class="sponsor">
138 <a href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012001200 allesdruck.de-->
140 <div class="sponsor">
141 <a href="http://www.blumenversender.com">Blumenversand</a><!-- 200911010120 -->
143 <div class="sponsor">
144 <a href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 201002010000 -->
154 <p class="navigation-index">[<a href="#ClearDrawingWand">ClearDrawingWand</a> • <a href="#CloneDrawingWand">CloneDrawingWand</a> • <a href="#DestroyDrawingWand">DestroyDrawingWand</a> • <a href="#DrawAffine">DrawAffine</a> • <a href="#DrawAnnotation">DrawAnnotation</a> • <a href="#DrawArc">DrawArc</a> • <a href="#DrawBezier">DrawBezier</a> • <a href="#DrawCircle">DrawCircle</a> • <a href="#DrawClearException">DrawClearException</a> • <a href="#DrawComposite">DrawComposite</a> • <a href="#DrawColor">DrawColor</a> • <a href="#DrawComment">DrawComment</a> • <a href="#DrawEllipse">DrawEllipse</a> • <a href="#DrawGetBorderColor">DrawGetBorderColor</a> • <a href="#DrawGetClipPath">DrawGetClipPath</a> • <a href="#DrawGetClipRule">DrawGetClipRule</a> • <a href="#DrawGetClipUnits">DrawGetClipUnits</a> • <a href="#DrawGetException">DrawGetException</a> • <a href="#DrawGetExceptionType">DrawGetExceptionType</a> • <a href="#DrawGetFillColor">DrawGetFillColor</a> • <a href="#DrawGetFillOpacity">DrawGetFillOpacity</a> • <a href="#DrawGetFillRule">DrawGetFillRule</a> • <a href="#DrawGetFont">DrawGetFont</a> • <a href="#DrawGetFontFamily">DrawGetFontFamily</a> • <a href="#DrawGetFontSize">DrawGetFontSize</a> • <a href="#DrawGetFontStretch">DrawGetFontStretch</a> • <a href="#DrawGetFontStyle">DrawGetFontStyle</a> • <a href="#DrawGetFontWeight">DrawGetFontWeight</a> • <a href="#DrawGetGravity">DrawGetGravity</a> • <a href="#DrawGetOpacity">DrawGetOpacity</a> • <a href="#DrawGetStrokeAntialias">DrawGetStrokeAntialias</a> • <a href="#DrawGetStrokeColor">DrawGetStrokeColor</a> • <a href="#DrawGetStrokeDashArray">DrawGetStrokeDashArray</a> • <a href="#DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a> • <a href="#DrawGetStrokeLineCap">DrawGetStrokeLineCap</a> • <a href="#DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a> • <a href="#DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a> • <a href="#DrawGetStrokeOpacity">DrawGetStrokeOpacity</a> • <a href="#DrawGetStrokeWidth">DrawGetStrokeWidth</a> • <a href="#DrawGetTextAlignment">DrawGetTextAlignment</a> • <a href="#DrawGetTextAntialias">DrawGetTextAntialias</a> • <a href="#DrawGetTextDecoration">DrawGetTextDecoration</a> • <a href="#DrawGetTextEncoding">DrawGetTextEncoding</a> • <a href="#DrawGetTextKerning">DrawGetTextKerning</a> • <a href="#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> • <a href="#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> • <a href="#DrawGetVectorGraphics">DrawGetVectorGraphics</a> • <a href="#DrawGetTextUnderColor">DrawGetTextUnderColor</a> • <a href="#DrawLine">DrawLine</a> • <a href="#DrawMatte">DrawMatte</a> • <a href="#DrawPathClose">DrawPathClose</a> • <a href="#DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a> • <a href="#DrawPathCurveToRelative">DrawPathCurveToRelative</a> • <a href="#DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a> • <a href="#DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a> • <a href="#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> • <a href="#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> • <a href="#DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a> • <a href="#DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a> • <a href="#DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a> • <a href="#DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a> • <a href="#DrawPathFinish">DrawPathFinish</a> • <a href="#DrawPathLineToAbsolute">DrawPathLineToAbsolute</a> • <a href="#DrawPathLineToRelative">DrawPathLineToRelative</a> • <a href="#DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a> • <a href="#DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a> • <a href="#DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a> • <a href="#DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a> • <a href="#DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a> • <a href="#DrawPathMoveToRelative">DrawPathMoveToRelative</a> • <a href="#DrawPathStart">DrawPathStart</a> • <a href="#DrawPoint">DrawPoint</a> • <a href="#DrawPolygon">DrawPolygon</a> • <a href="#DrawPolyline">DrawPolyline</a> • <a href="#DrawPopClipPath">DrawPopClipPath</a> • <a href="#DrawPopDefs">DrawPopDefs</a> • <a href="#DrawPopPattern">DrawPopPattern</a> • <a href="#DrawPushClipPath">DrawPushClipPath</a> • <a href="#DrawPushDefs">DrawPushDefs</a> • <a href="#DrawPushPattern">DrawPushPattern</a> • <a href="#DrawRectangle">DrawRectangle</a> • <a href="#DrawResetVectorGraphics">DrawResetVectorGraphics</a> • <a href="#DrawRotate">DrawRotate</a> • <a href="#DrawRoundRectangle">DrawRoundRectangle</a> • <a href="#DrawScale">DrawScale</a> • <a href="#DrawSetBorderColor">DrawSetBorderColor</a> • <a href="#DrawSetClipPath">DrawSetClipPath</a> • <a href="#DrawSetClipRule">DrawSetClipRule</a> • <a href="#DrawSetClipUnits">DrawSetClipUnits</a> • <a href="#DrawSetFillColor">DrawSetFillColor</a> • <a href="#DrawSetFillOpacity">DrawSetFillOpacity</a> • <a href="#DrawSetOpacity">DrawSetOpacity</a> • <a href="#DrawSetFillPatternURL">DrawSetFillPatternURL</a> • <a href="#DrawSetFillRule">DrawSetFillRule</a> • <a href="#DrawSetFont">DrawSetFont</a> • <a href="#DrawSetFontFamily">DrawSetFontFamily</a> • <a href="#DrawSetFontSize">DrawSetFontSize</a> • <a href="#DrawSetFontStretch">DrawSetFontStretch</a> • <a href="#DrawSetFontStyle">DrawSetFontStyle</a> • <a href="#DrawSetFontWeight">DrawSetFontWeight</a> • <a href="#DrawSetGravity">DrawSetGravity</a> • <a href="#DrawSetStrokeColor">DrawSetStrokeColor</a> • <a href="#DrawSetStrokePatternURL">DrawSetStrokePatternURL</a> • <a href="#DrawSetStrokeAntialias">DrawSetStrokeAntialias</a> • <a href="#DrawSetStrokeDashArray">DrawSetStrokeDashArray</a> • <a href="#DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a> • <a href="#DrawSetStrokeLineCap">DrawSetStrokeLineCap</a> • <a href="#DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a> • <a href="#DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a> • <a href="#DrawSetStrokeOpacity">DrawSetStrokeOpacity</a> • <a href="#DrawSetStrokeWidth">DrawSetStrokeWidth</a> • <a href="#DrawSetTextAlignment">DrawSetTextAlignment</a> • <a href="#DrawSetTextAntialias">DrawSetTextAntialias</a> • <a href="#DrawSetTextDecoration">DrawSetTextDecoration</a> • <a href="#DrawSetTextEncoding">DrawSetTextEncoding</a> • <a href="#DrawSetTextKerning">DrawSetTextKerning</a> • <a href="#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> • <a href="#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> • <a href="#DrawSetTextUnderColor">DrawSetTextUnderColor</a> • <a href="#DrawSetVectorGraphics">DrawSetVectorGraphics</a> • <a href="#DrawSkewX">DrawSkewX</a> • <a href="#DrawSkewY">DrawSkewY</a> • <a href="#DrawTranslate">DrawTranslate</a> • <a href="#DrawSetViewbox">DrawSetViewbox</a> • <a href="#IsDrawingWand">IsDrawingWand</a> • <a href="#NewDrawingWand">NewDrawingWand</a> • <a href="#PeekDrawingWand">PeekDrawingWand</a> • <a href="#PopDrawingWand">PopDrawingWand</a> • <a href="#PushDrawingWand">PushDrawingWand</a>]</p>
156 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
157 _8c.html" target="source" name="ClearDrawingWand">ClearDrawingWand</a></h2>
158 <div class="doc-section">
160 <p>ClearDrawingWand() clear resources associated with the drawing wand.</p></ol>
162 <p>The format of the ClearDrawingWand method is:</p>
165 DrawingWand *ClearDrawingWand(DrawingWand *wand)
168 <p>A description of each parameter follows:</p></ol>
171 <ol><p>the drawing wand. to destroy</p></ol>
174 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
175 _8c.html" target="source" name="CloneDrawingWand">CloneDrawingWand</a></h2>
176 <div class="doc-section">
178 <p>CloneDrawingWand() makes an exact copy of the specified wand.</p></ol>
180 <p>The format of the CloneDrawingWand method is:</p>
183 DrawingWand *CloneDrawingWand(const DrawingWand *wand)
186 <p>A description of each parameter follows:</p></ol>
189 <ol><p>the magick wand.</p></ol>
192 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
193 _8c.html" target="source" name="DestroyDrawingWand">DestroyDrawingWand</a></h2>
194 <div class="doc-section">
196 <p>DestroyDrawingWand() frees all resources associated with the drawing wand. Once the drawing wand has been freed, it should not be used and further unless it re-allocated.</p></ol>
198 <p>The format of the DestroyDrawingWand method is:</p>
201 DrawingWand *DestroyDrawingWand(DrawingWand *wand)
204 <p>A description of each parameter follows:</p></ol>
207 <ol><p>the drawing wand. to destroy</p></ol>
210 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
211 _8c.html" target="source" name="DrawAffine">DrawAffine</a></h2>
212 <div class="doc-section">
214 <p>DrawAffine() adjusts the current affine transformation matrix with the specified affine transformation matrix. Note that the current affine transform is adjusted rather than replaced.</p></ol>
216 <p>The format of the DrawAffine method is:</p>
219 void DrawAffine(DrawingWand *wand,const AffineMatrix *affine)
222 <p>A description of each parameter follows:</p></ol>
225 <ol><p>Drawing wand</p></ol>
228 <ol><p>Affine matrix parameters</p></ol>
231 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
232 _8c.html" target="source" name="DrawAnnotation">DrawAnnotation</a></h2>
233 <div class="doc-section">
235 <p>DrawAnnotation() draws text on the image.</p></ol>
237 <p>The format of the DrawAnnotation method is:</p>
240 void DrawAnnotation(DrawingWand *wand,const double x,
241 const double y,const unsigned char *text)
244 <p>A description of each parameter follows:</p></ol>
247 <ol><p>the drawing wand.</p></ol>
250 <ol><p>x ordinate to left of text</p></ol>
253 <ol><p>y ordinate to text baseline</p></ol>
256 <ol><p>text to draw</p></ol>
259 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
260 _8c.html" target="source" name="DrawArc">DrawArc</a></h2>
261 <div class="doc-section">
263 <p>DrawArc() draws an arc falling within a specified bounding rectangle on the image.</p></ol>
265 <p>The format of the DrawArc method is:</p>
268 void DrawArc(DrawingWand *wand,const double sx,const double sy,
269 const double ex,const double ey,const double sd,const double ed)
272 <p>A description of each parameter follows:</p></ol>
275 <ol><p>the drawing wand.</p></ol>
278 <ol><p>starting x ordinate of bounding rectangle</p></ol>
281 <ol><p>starting y ordinate of bounding rectangle</p></ol>
284 <ol><p>ending x ordinate of bounding rectangle</p></ol>
287 <ol><p>ending y ordinate of bounding rectangle</p></ol>
290 <ol><p>starting degrees of rotation</p></ol>
293 <ol><p>ending degrees of rotation</p></ol>
296 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
297 _8c.html" target="source" name="DrawBezier">DrawBezier</a></h2>
298 <div class="doc-section">
300 <p>DrawBezier() draws a bezier curve through a set of points on the image.</p></ol>
302 <p>The format of the DrawBezier method is:</p>
305 void DrawBezier(DrawingWand *wand,
306 const unsigned long number_coordinates,const PointInfo *coordinates)
309 <p>A description of each parameter follows:</p></ol>
312 <ol><p>the drawing wand.</p></ol>
314 <h5>number_coordinates</h5>
315 <ol><p>number of coordinates</p></ol>
318 <ol><p>coordinates</p></ol>
321 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
322 _8c.html" target="source" name="DrawCircle">DrawCircle</a></h2>
323 <div class="doc-section">
325 <p>DrawCircle() draws a circle on the image.</p></ol>
327 <p>The format of the DrawCircle method is:</p>
330 void DrawCircle(DrawingWand *wand,const double ox,
331 const double oy,const double px, const double py)
334 <p>A description of each parameter follows:</p></ol>
337 <ol><p>the drawing wand.</p></ol>
340 <ol><p>origin x ordinate</p></ol>
343 <ol><p>origin y ordinate</p></ol>
346 <ol><p>perimeter x ordinate</p></ol>
349 <ol><p>perimeter y ordinate</p></ol>
352 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
353 _8c.html" target="source" name="DrawClearException">DrawClearException</a></h2>
354 <div class="doc-section">
356 <p>DrawClearException() clear any exceptions associated with the wand.</p></ol>
358 <p>The format of the DrawClearException method is:</p>
361 MagickBooleanType DrawClearException(DrawWand *wand)
364 <p>A description of each parameter follows:</p></ol>
367 <ol><p>the drawing wand.</p></ol>
370 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
371 _8c.html" target="source" name="DrawComposite">DrawComposite</a></h2>
372 <div class="doc-section">
374 <p>DrawComposite() composites an image onto the current image, using the specified composition operator, specified position, and at the specified size.</p></ol>
376 <p>The format of the DrawComposite method is:</p>
379 MagickBooleanType DrawComposite(DrawingWand *wand,
380 const CompositeOperator compose,const double x,
381 const double y,const double width,const double height,
382 MagickWand *magick_wand)
385 <p>A description of each parameter follows:</p></ol>
388 <ol><p>the drawing wand.</p></ol>
391 <ol><p>composition operator</p></ol>
394 <ol><p>x ordinate of top left corner</p></ol>
397 <ol><p>y ordinate of top left corner</p></ol>
400 <ol><p>Width to resize image to prior to compositing. Specify zero to use existing width.</p></ol>
403 <ol><p>Height to resize image to prior to compositing. Specify zero to use existing height.</p></ol>
406 <ol><p>Image to composite is obtained from this wand.</p></ol>
409 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
410 _8c.html" target="source" name="DrawColor">DrawColor</a></h2>
411 <div class="doc-section">
413 <p>DrawColor() draws color on image using the current fill color, starting at specified position, and using specified paint method. The available paint methods are:</p>
416 PointMethod: Recolors the target pixel
417 ReplaceMethod: Recolor any pixel that matches the target pixel.
418 FloodfillMethod: Recolors target pixels and matching neighbors.
419 ResetMethod: Recolor all pixels.
422 <p>The format of the DrawColor method is:</p>
425 void DrawColor(DrawingWand *wand,const double x,const double y,
426 const PaintMethod paint_method)
429 <p>A description of each parameter follows:</p></ol>
432 <ol><p>the drawing wand.</p></ol>
435 <ol><p>x ordinate.</p></ol>
438 <ol><p>y ordinate.</p></ol>
440 <h5>paint_method</h5>
441 <ol><p>paint method.</p></ol>
444 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
445 _8c.html" target="source" name="DrawComment">DrawComment</a></h2>
446 <div class="doc-section">
448 <p>DrawComment() adds a comment to a vector output stream.</p></ol>
450 <p>The format of the DrawComment method is:</p>
453 void DrawComment(DrawingWand *wand,const char *comment)
456 <p>A description of each parameter follows:</p></ol>
459 <ol><p>the drawing wand.</p></ol>
462 <ol><p>comment text</p></ol>
465 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
466 _8c.html" target="source" name="DrawEllipse">DrawEllipse</a></h2>
467 <div class="doc-section">
469 <p>DrawEllipse() draws an ellipse on the image.</p></ol>
471 <p>The format of the DrawEllipse method is:</p>
474 void DrawEllipse(DrawingWand *wand,const double ox,const double oy,
475 const double rx,const double ry,const double start,const double end)
478 <p>A description of each parameter follows:</p></ol>
481 <ol><p>the drawing wand.</p></ol>
484 <ol><p>origin x ordinate</p></ol>
487 <ol><p>origin y ordinate</p></ol>
490 <ol><p>radius in x</p></ol>
493 <ol><p>radius in y</p></ol>
496 <ol><p>starting rotation in degrees</p></ol>
499 <ol><p>ending rotation in degrees</p></ol>
502 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
503 _8c.html" target="source" name="DrawGetBorderColor">DrawGetBorderColor</a></h2>
504 <div class="doc-section">
506 <p>DrawGetBorderColor() returns the border color used for drawing bordered objects.</p></ol>
508 <p>The format of the DrawGetBorderColor method is:</p>
511 void DrawGetBorderColor(const DrawingWand *wand,
512 PixelWand *border_color)
515 <p>A description of each parameter follows:</p></ol>
518 <ol><p>the drawing wand.</p></ol>
520 <h5>border_color</h5>
521 <ol><p>Return the border color.</p></ol>
524 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
525 _8c.html" target="source" name="DrawGetClipPath">DrawGetClipPath</a></h2>
526 <div class="doc-section">
528 <p>DrawGetClipPath() obtains the current clipping path ID. The value returned must be deallocated by the user when it is no longer needed.</p></ol>
530 <p>The format of the DrawGetClipPath method is:</p>
533 char *DrawGetClipPath(const DrawingWand *wand)
536 <p>A description of each parameter follows:</p></ol>
539 <ol><p>the drawing wand.</p></ol>
542 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
543 _8c.html" target="source" name="DrawGetClipRule">DrawGetClipRule</a></h2>
544 <div class="doc-section">
546 <p>DrawGetClipRule() returns the current polygon fill rule to be used by the clipping path.</p></ol>
548 <p>The format of the DrawGetClipRule method is:</p>
551 FillRule DrawGetClipRule(const DrawingWand *wand)
554 <p>A description of each parameter follows:</p></ol>
557 <ol><p>the drawing wand.</p></ol>
560 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
561 _8c.html" target="source" name="DrawGetClipUnits">DrawGetClipUnits</a></h2>
562 <div class="doc-section">
564 <p>DrawGetClipUnits() returns the interpretation of clip path units.</p></ol>
566 <p>The format of the DrawGetClipUnits method is:</p>
569 ClipPathUnits DrawGetClipUnits(const DrawingWand *wand)
572 <p>A description of each parameter follows:</p></ol>
575 <ol><p>the drawing wand.</p></ol>
578 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
579 _8c.html" target="source" name="DrawGetException">DrawGetException</a></h2>
580 <div class="doc-section">
582 <p>DrawGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p></ol>
584 <p>The format of the DrawGetException method is:</p>
587 char *DrawGetException(const DrawWand *wand,
588 ExceptionType *severity)
591 <p>A description of each parameter follows:</p></ol>
594 <ol><p>the drawing wand.</p></ol>
597 <ol><p>the severity of the error is returned here.</p></ol>
600 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
601 _8c.html" target="source" name="DrawGetExceptionType">DrawGetExceptionType</a></h2>
602 <div class="doc-section">
604 <p>DrawGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p></ol>
606 <p>The format of the DrawGetExceptionType method is:</p>
609 ExceptionType DrawGetExceptionType(const DrawWand *wand)
612 <p>A description of each parameter follows:</p></ol>
615 <ol><p>the magick wand.</p></ol>
618 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
619 _8c.html" target="source" name="DrawGetFillColor">DrawGetFillColor</a></h2>
620 <div class="doc-section">
622 <p>DrawGetFillColor() returns the fill color used for drawing filled objects.</p></ol>
624 <p>The format of the DrawGetFillColor method is:</p>
627 void DrawGetFillColor(const DrawingWand *wand,
628 PixelWand *fill_color)
631 <p>A description of each parameter follows:</p></ol>
634 <ol><p>the drawing wand.</p></ol>
637 <ol><p>Return the fill color.</p></ol>
640 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
641 _8c.html" target="source" name="DrawGetFillOpacity">DrawGetFillOpacity</a></h2>
642 <div class="doc-section">
644 <p>DrawGetFillOpacity() returns the opacity used when drawing using the fill color or fill texture. Fully opaque is 1.0.</p></ol>
646 <p>The format of the DrawGetFillOpacity method is:</p>
649 double DrawGetFillOpacity(const DrawingWand *wand)
652 <p>A description of each parameter follows:</p></ol>
655 <ol><p>the drawing wand.</p></ol>
658 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
659 _8c.html" target="source" name="DrawGetFillRule">DrawGetFillRule</a></h2>
660 <div class="doc-section">
662 <p>DrawGetFillRule() returns the fill rule used while drawing polygons.</p></ol>
664 <p>The format of the DrawGetFillRule method is:</p>
667 FillRule DrawGetFillRule(const DrawingWand *wand)
670 <p>A description of each parameter follows:</p></ol>
673 <ol><p>the drawing wand.</p></ol>
676 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
677 _8c.html" target="source" name="DrawGetFont">DrawGetFont</a></h2>
678 <div class="doc-section">
680 <p>DrawGetFont() returns a null-terminaged string specifying the font used when annotating with text. The value returned must be freed by the user when no longer needed.</p></ol>
682 <p>The format of the DrawGetFont method is:</p>
685 char *DrawGetFont(const DrawingWand *wand)
688 <p>A description of each parameter follows:</p></ol>
691 <ol><p>the drawing wand.</p></ol>
694 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
695 _8c.html" target="source" name="DrawGetFontFamily">DrawGetFontFamily</a></h2>
696 <div class="doc-section">
698 <p>DrawGetFontFamily() returns the font family to use when annotating with text. The value returned must be freed by the user when it is no longer needed.</p></ol>
700 <p>The format of the DrawGetFontFamily method is:</p>
703 char *DrawGetFontFamily(const DrawingWand *wand)
706 <p>A description of each parameter follows:</p></ol>
709 <ol><p>the drawing wand.</p></ol>
712 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
713 _8c.html" target="source" name="DrawGetFontSize">DrawGetFontSize</a></h2>
714 <div class="doc-section">
716 <p>DrawGetFontSize() returns the font pointsize used when annotating with text.</p></ol>
718 <p>The format of the DrawGetFontSize method is:</p>
721 double DrawGetFontSize(const DrawingWand *wand)
724 <p>A description of each parameter follows:</p></ol>
727 <ol><p>the drawing wand.</p></ol>
730 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
731 _8c.html" target="source" name="DrawGetFontStretch">DrawGetFontStretch</a></h2>
732 <div class="doc-section">
734 <p>DrawGetFontStretch() returns the font stretch used when annotating with text.</p></ol>
736 <p>The format of the DrawGetFontStretch method is:</p>
739 StretchType DrawGetFontStretch(const DrawingWand *wand)
742 <p>A description of each parameter follows:</p></ol>
745 <ol><p>the drawing wand.</p></ol>
748 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
749 _8c.html" target="source" name="DrawGetFontStyle">DrawGetFontStyle</a></h2>
750 <div class="doc-section">
752 <p>DrawGetFontStyle() returns the font style used when annotating with text.</p></ol>
754 <p>The format of the DrawGetFontStyle method is:</p>
757 StyleType DrawGetFontStyle(const DrawingWand *wand)
760 <p>A description of each parameter follows:</p></ol>
763 <ol><p>the drawing wand.</p></ol>
766 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
767 _8c.html" target="source" name="DrawGetFontWeight">DrawGetFontWeight</a></h2>
768 <div class="doc-section">
770 <p>DrawGetFontWeight() returns the font weight used when annotating with text.</p></ol>
772 <p>The format of the DrawGetFontWeight method is:</p>
775 unsigned long DrawGetFontWeight(const DrawingWand *wand)
778 <p>A description of each parameter follows:</p></ol>
781 <ol><p>the drawing wand.</p></ol>
784 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
785 _8c.html" target="source" name="DrawGetGravity">DrawGetGravity</a></h2>
786 <div class="doc-section">
788 <p>DrawGetGravity() returns the text placement gravity used when annotating with text.</p></ol>
790 <p>The format of the DrawGetGravity method is:</p>
793 GravityType DrawGetGravity(const DrawingWand *wand)
796 <p>A description of each parameter follows:</p></ol>
799 <ol><p>the drawing wand.</p></ol>
802 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
803 _8c.html" target="source" name="DrawGetOpacity">DrawGetOpacity</a></h2>
804 <div class="doc-section">
806 <p>DrawGetOpacity() returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.</p></ol>
808 <p>The format of the DrawGetOpacity method is:</p>
811 double DrawGetOpacity(const DrawingWand *wand)
814 <p>A description of each parameter follows:</p></ol>
817 <ol><p>the drawing wand.</p></ol>
820 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
821 _8c.html" target="source" name="DrawGetStrokeAntialias">DrawGetStrokeAntialias</a></h2>
822 <div class="doc-section">
824 <p>DrawGetStrokeAntialias() returns the current stroke antialias setting. Stroked outlines are antialiased by default. When antialiasing is disabled stroked pixels are thresholded to determine if the stroke color or underlying canvas color should be used.</p></ol>
826 <p>The format of the DrawGetStrokeAntialias method is:</p>
829 MagickBooleanType DrawGetStrokeAntialias(const DrawingWand *wand)
832 <p>A description of each parameter follows:</p></ol>
835 <ol><p>the drawing wand.</p></ol>
838 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
839 _8c.html" target="source" name="DrawGetStrokeColor">DrawGetStrokeColor</a></h2>
840 <div class="doc-section">
842 <p>DrawGetStrokeColor() returns the color used for stroking object outlines.</p></ol>
844 <p>The format of the DrawGetStrokeColor method is:</p>
847 void DrawGetStrokeColor(const DrawingWand *wand,
848 $ PixelWand *stroke_color)
851 <p>A description of each parameter follows:</p></ol>
854 <ol><p>the drawing wand.</p></ol>
856 <h5>stroke_color</h5>
857 <ol><p>Return the stroke color.</p></ol>
860 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
861 _8c.html" target="source" name="DrawGetStrokeDashArray">DrawGetStrokeDashArray</a></h2>
862 <div class="doc-section">
864 <p>DrawGetStrokeDashArray() returns an array representing the pattern of dashes and gaps used to stroke paths (see DrawSetStrokeDashArray). The array must be freed once it is no longer required by the user.</p></ol>
866 <p>The format of the DrawGetStrokeDashArray method is:</p>
869 double *DrawGetStrokeDashArray(const DrawingWand *wand,
870 unsigned long *number_elements)
873 <p>A description of each parameter follows:</p></ol>
876 <ol><p>the drawing wand.</p></ol>
878 <h5>number_elements</h5>
879 <ol><p>address to place number of elements in dash array</p></ol>
882 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
883 _8c.html" target="source" name="DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a></h2>
884 <div class="doc-section">
886 <p>DrawGetStrokeDashOffset() returns the offset into the dash pattern to start the dash.</p></ol>
888 <p>The format of the DrawGetStrokeDashOffset method is:</p>
891 double DrawGetStrokeDashOffset(const DrawingWand *wand)
894 <p>A description of each parameter follows:</p></ol>
897 <ol><p>the drawing wand.</p></ol>
900 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
901 _8c.html" target="source" name="DrawGetStrokeLineCap">DrawGetStrokeLineCap</a></h2>
902 <div class="doc-section">
904 <p>DrawGetStrokeLineCap() returns the shape to be used at the end of open subpaths when they are stroked. Values of LineCap are UndefinedCap, ButtCap, RoundCap, and SquareCap.</p></ol>
906 <p>The format of the DrawGetStrokeLineCap method is:</p>
909 LineCap DrawGetStrokeLineCap(const DrawingWand *wand)
912 <p>A description of each parameter follows:</p></ol>
915 <ol><p>the drawing wand.</p></ol>
918 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
919 _8c.html" target="source" name="DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a></h2>
920 <div class="doc-section">
922 <p>DrawGetStrokeLineJoin() returns the shape to be used at the corners of paths (or other vector shapes) when they are stroked. Values of LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.</p></ol>
924 <p>The format of the DrawGetStrokeLineJoin method is:</p>
927 LineJoin DrawGetStrokeLineJoin(const DrawingWand *wand)
930 <p>A description of each parameter follows:</p></ol>
933 <ol><p>the drawing wand.</p></ol>
936 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
937 _8c.html" target="source" name="DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a></h2>
938 <div class="doc-section">
940 <p>DrawGetStrokeMiterLimit() returns the miter limit. When two line segments meet at a sharp angle and miter joins have been specified for 'lineJoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The miterLimit' imposes a limit on the ratio of the miter length to the 'lineWidth'.</p></ol>
942 <p>The format of the DrawGetStrokeMiterLimit method is:</p>
945 unsigned long DrawGetStrokeMiterLimit(const DrawingWand *wand)
948 <p>A description of each parameter follows:</p></ol>
951 <ol><p>the drawing wand.</p></ol>
954 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
955 _8c.html" target="source" name="DrawGetStrokeOpacity">DrawGetStrokeOpacity</a></h2>
956 <div class="doc-section">
958 <p>DrawGetStrokeOpacity() returns the opacity of stroked object outlines.</p></ol>
960 <p>The format of the DrawGetStrokeOpacity method is:</p>
963 double DrawGetStrokeOpacity(const DrawingWand *wand)
966 <p>A description of each parameter follows:</p></ol>
969 <ol><p>the drawing wand.</p></ol>
972 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
973 _8c.html" target="source" name="DrawGetStrokeWidth">DrawGetStrokeWidth</a></h2>
974 <div class="doc-section">
976 <p>DrawGetStrokeWidth() returns the width of the stroke used to draw object outlines.</p></ol>
978 <p>The format of the DrawGetStrokeWidth method is:</p>
981 double DrawGetStrokeWidth(const DrawingWand *wand)
984 <p>A description of each parameter follows:</p></ol>
987 <ol><p>the drawing wand.</p></ol>
990 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
991 _8c.html" target="source" name="DrawGetTextAlignment">DrawGetTextAlignment</a></h2>
992 <div class="doc-section">
994 <p>DrawGetTextAlignment() returns the alignment applied when annotating with text.</p></ol>
996 <p>The format of the DrawGetTextAlignment method is:</p>
999 AlignType DrawGetTextAlignment(DrawingWand *wand)
1002 <p>A description of each parameter follows:</p></ol>
1005 <ol><p>the drawing wand.</p></ol>
1008 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1009 _8c.html" target="source" name="DrawGetTextAntialias">DrawGetTextAntialias</a></h2>
1010 <div class="doc-section">
1012 <p>DrawGetTextAntialias() returns the current text antialias setting, which determines whether text is antialiased. Text is antialiased by default.</p></ol>
1014 <p>The format of the DrawGetTextAntialias method is:</p>
1017 MagickBooleanType DrawGetTextAntialias(const DrawingWand *wand)
1020 <p>A description of each parameter follows:</p></ol>
1023 <ol><p>the drawing wand.</p></ol>
1026 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1027 _8c.html" target="source" name="DrawGetTextDecoration">DrawGetTextDecoration</a></h2>
1028 <div class="doc-section">
1030 <p>DrawGetTextDecoration() returns the decoration applied when annotating with text.</p></ol>
1032 <p>The format of the DrawGetTextDecoration method is:</p>
1035 DecorationType DrawGetTextDecoration(DrawingWand *wand)
1038 <p>A description of each parameter follows:</p></ol>
1041 <ol><p>the drawing wand.</p></ol>
1044 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1045 _8c.html" target="source" name="DrawGetTextEncoding">DrawGetTextEncoding</a></h2>
1046 <div class="doc-section">
1048 <p>DrawGetTextEncoding() returns a null-terminated string which specifies the code set used for text annotations. The string must be freed by the user once it is no longer required.</p></ol>
1050 <p>The format of the DrawGetTextEncoding method is:</p>
1053 char *DrawGetTextEncoding(const DrawingWand *wand)
1056 <p>A description of each parameter follows:</p></ol>
1059 <ol><p>the drawing wand.</p></ol>
1062 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1063 _8c.html" target="source" name="DrawGetTextKerning">DrawGetTextKerning</a></h2>
1064 <div class="doc-section">
1066 <p>DrawGetTextKerning() gets the spacing between characters in text.</p></ol>
1068 <p>The format of the DrawSetFontKerning method is:</p>
1071 double DrawGetTextKerning(DrawingWand *wand)
1074 <p>A description of each parameter follows:</p></ol>
1077 <ol><p>the drawing wand.</p></ol>
1080 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1081 _8c.html" target="source" name="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
1082 <div class="doc-section">
1084 <p>DrawGetTextInterwordSpacing() gets the spacing between lines in text.</p></ol>
1086 <p>The format of the DrawSetFontKerning method is:</p>
1089 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1092 <p>A description of each parameter follows:</p></ol>
1095 <ol><p>the drawing wand.</p></ol>
1098 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1099 _8c.html" target="source" name="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
1100 <div class="doc-section">
1102 <p>DrawGetTextInterwordSpacing() gets the spacing between words in text.</p></ol>
1104 <p>The format of the DrawSetFontKerning method is:</p>
1107 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1110 <p>A description of each parameter follows:</p></ol>
1113 <ol><p>the drawing wand.</p></ol>
1116 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1117 _8c.html" target="source" name="DrawGetVectorGraphics">DrawGetVectorGraphics</a></h2>
1118 <div class="doc-section">
1120 <p>DrawGetVectorGraphics() returns a null-terminated string which specifies the vector graphics generated by any graphics calls made since the wand was instantiated. The string must be freed by the user once it is no longer required.</p></ol>
1122 <p>The format of the DrawGetVectorGraphics method is:</p>
1125 char *DrawGetVectorGraphics(const DrawingWand *wand)
1128 <p>A description of each parameter follows:</p></ol>
1131 <ol><p>the drawing wand.</p></ol>
1134 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1135 _8c.html" target="source" name="DrawGetTextUnderColor">DrawGetTextUnderColor</a></h2>
1136 <div class="doc-section">
1138 <p>DrawGetTextUnderColor() returns the color of a background rectangle to place under text annotations.</p></ol>
1140 <p>The format of the DrawGetTextUnderColor method is:</p>
1143 void DrawGetTextUnderColor(const DrawingWand *wand,
1144 PixelWand *under_color)
1147 <p>A description of each parameter follows:</p></ol>
1150 <ol><p>the drawing wand.</p></ol>
1152 <h5>under_color</h5>
1153 <ol><p>Return the under color.</p></ol>
1156 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1157 _8c.html" target="source" name="DrawLine">DrawLine</a></h2>
1158 <div class="doc-section">
1160 <p>DrawLine() draws a line on the image using the current stroke color, stroke opacity, and stroke width.</p></ol>
1162 <p>The format of the DrawLine method is:</p>
1165 void DrawLine(DrawingWand *wand,const double sx,const double sy,
1166 const double ex,const double ey)
1169 <p>A description of each parameter follows:</p></ol>
1172 <ol><p>the drawing wand.</p></ol>
1175 <ol><p>starting x ordinate</p></ol>
1178 <ol><p>starting y ordinate</p></ol>
1181 <ol><p>ending x ordinate</p></ol>
1184 <ol><p>ending y ordinate</p></ol>
1187 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1188 _8c.html" target="source" name="DrawMatte">DrawMatte</a></h2>
1189 <div class="doc-section">
1191 <p>DrawMatte() paints on the image's opacity channel in order to set effected pixels to transparent. to influence the opacity of pixels. The available paint methods are:</p>
1194 PointMethod: Select the target pixel
1195 ReplaceMethod: Select any pixel that matches the target pixel.
1196 FloodfillMethod: Select the target pixel and matching neighbors.
1197 FillToBorderMethod: Select the target pixel and neighbors not matching
1199 ResetMethod: Select all pixels.
1202 <p>The format of the DrawMatte method is:</p>
1205 void DrawMatte(DrawingWand *wand,const double x,const double y,
1206 const PaintMethod paint_method)
1209 <p>A description of each parameter follows:</p></ol>
1212 <ol><p>the drawing wand.</p></ol>
1215 <ol><p>x ordinate</p></ol>
1218 <ol><p>y ordinate</p></ol>
1220 <h5>paint_method</h5>
1221 <ol><p>paint method.</p></ol>
1224 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1225 _8c.html" target="source" name="DrawPathClose">DrawPathClose</a></h2>
1226 <div class="doc-section">
1228 <p>DrawPathClose() adds a path element to the current path which closes the current subpath by drawing a straight line from the current point to the current subpath's most recent starting point (usually, the most recent moveto point).</p></ol>
1230 <p>The format of the DrawPathClose method is:</p>
1233 void DrawPathClose(DrawingWand *wand)
1236 <p>A description of each parameter follows:</p></ol>
1239 <ol><p>the drawing wand.</p></ol>
1242 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1243 _8c.html" target="source" name="DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a></h2>
1244 <div class="doc-section">
1246 <p>DrawPathCurveToAbsolute() draws a cubic Bezier curve from the current point to (x,y) using (x1,y1) as the control point at the beginning of the curve and (x2,y2) as the control point at the end of the curve using absolute coordinates. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1248 <p>The format of the DrawPathCurveToAbsolute method is:</p>
1251 void DrawPathCurveToAbsolute(DrawingWand *wand,const double x1,
1252 const double y1,const double x2,const double y2,const double x,
1256 <p>A description of each parameter follows:</p></ol>
1259 <ol><p>the drawing wand.</p></ol>
1262 <ol><p>x ordinate of control point for curve beginning</p></ol>
1265 <ol><p>y ordinate of control point for curve beginning</p></ol>
1268 <ol><p>x ordinate of control point for curve ending</p></ol>
1271 <ol><p>y ordinate of control point for curve ending</p></ol>
1274 <ol><p>x ordinate of the end of the curve</p></ol>
1277 <ol><p>y ordinate of the end of the curve</p></ol>
1280 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1281 _8c.html" target="source" name="DrawPathCurveToRelative">DrawPathCurveToRelative</a></h2>
1282 <div class="doc-section">
1284 <p>DrawPathCurveToRelative() draws a cubic Bezier curve from the current point to (x,y) using (x1,y1) as the control point at the beginning of the curve and (x2,y2) as the control point at the end of the curve using relative coordinates. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1286 <p>The format of the DrawPathCurveToRelative method is:</p>
1289 void DrawPathCurveToRelative(DrawingWand *wand,const double x1,
1290 const double y1,const double x2,const double y2,const double x,
1294 <p>A description of each parameter follows:</p></ol>
1297 <ol><p>the drawing wand.</p></ol>
1300 <ol><p>x ordinate of control point for curve beginning</p></ol>
1303 <ol><p>y ordinate of control point for curve beginning</p></ol>
1306 <ol><p>x ordinate of control point for curve ending</p></ol>
1309 <ol><p>y ordinate of control point for curve ending</p></ol>
1312 <ol><p>x ordinate of the end of the curve</p></ol>
1315 <ol><p>y ordinate of the end of the curve</p></ol>
1318 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1319 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a></h2>
1320 <div class="doc-section">
1322 <p>DrawPathCurveToQuadraticBezierAbsolute() draws a quadratic Bezier curve from the current point to (x,y) using (x1,y1) as the control point using absolute coordinates. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1324 <p>The format of the DrawPathCurveToQuadraticBezierAbsolute method is:</p>
1327 void DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *wand,
1328 const double x1,const double y1,onst double x,const double y)
1331 <p>A description of each parameter follows:</p></ol>
1334 <ol><p>the drawing wand.</p></ol>
1337 <ol><p>x ordinate of the control point</p></ol>
1340 <ol><p>y ordinate of the control point</p></ol>
1343 <ol><p>x ordinate of final point</p></ol>
1346 <ol><p>y ordinate of final point</p></ol>
1349 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1350 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a></h2>
1351 <div class="doc-section">
1353 <p>DrawPathCurveToQuadraticBezierRelative() draws a quadratic Bezier curve from the current point to (x,y) using (x1,y1) as the control point using relative coordinates. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1355 <p>The format of the DrawPathCurveToQuadraticBezierRelative method is:</p>
1358 void DrawPathCurveToQuadraticBezierRelative(DrawingWand *wand,
1359 const double x1,const double y1,const double x,const double y)
1362 <p>A description of each parameter follows:</p></ol>
1365 <ol><p>the drawing wand.</p></ol>
1368 <ol><p>x ordinate of the control point</p></ol>
1371 <ol><p>y ordinate of the control point</p></ol>
1374 <ol><p>x ordinate of final point</p></ol>
1377 <ol><p>y ordinate of final point</p></ol>
1380 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1381 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
1382 <div class="doc-section">
1384 <p>DrawPathCurveToQuadraticBezierSmoothAbsolute() draws a quadratic Bezier curve (using absolute coordinates) from the current point to (x,y). The control point is assumed to be the reflection of the control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not a DrawPathCurveToQuadraticBezierAbsolute, DrawPathCurveToQuadraticBezierRelative, DrawPathCurveToQuadraticBezierSmoothAbsolute or DrawPathCurveToQuadraticBezierSmoothRelative, assume the control point is coincident with the current point.). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1386 <p>The format of the DrawPathCurveToQuadraticBezierSmoothAbsolute method is:</p>
1389 void DrawPathCurveToQuadraticBezierSmoothAbsolute(
1390 DrawingWand *wand,const double x,const double y)
1393 <p>A description of each parameter follows:</p></ol>
1396 <ol><p>the drawing wand.</p></ol>
1399 <ol><p>x ordinate of final point</p></ol>
1402 <ol><p>y ordinate of final point</p></ol>
1405 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1406 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
1407 <div class="doc-section">
1409 <p>DrawPathCurveToQuadraticBezierSmoothAbsolute() draws a quadratic Bezier curve (using relative coordinates) from the current point to (x,y). The control point is assumed to be the reflection of the control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not a DrawPathCurveToQuadraticBezierAbsolute, DrawPathCurveToQuadraticBezierRelative, DrawPathCurveToQuadraticBezierSmoothAbsolute or DrawPathCurveToQuadraticBezierSmoothRelative, assume the control point is coincident with the current point.). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1411 <p>The format of the DrawPathCurveToQuadraticBezierSmoothRelative method is:</p>
1414 void DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *wand,
1415 const double x,const double y)
1418 <p>A description of each parameter follows:</p></ol>
1421 <ol><p>the drawing wand.</p></ol>
1424 <ol><p>x ordinate of final point</p></ol>
1427 <ol><p>y ordinate of final point</p></ol>
1430 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1431 _8c.html" target="source" name="DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a></h2>
1432 <div class="doc-section">
1434 <p>DrawPathCurveToSmoothAbsolute() draws a cubic Bezier curve from the current point to (x,y) using absolute coordinates. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an DrawPathCurveToAbsolute, DrawPathCurveToRelative, DrawPathCurveToSmoothAbsolute or DrawPathCurveToSmoothRelative, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1436 <p>The format of the DrawPathCurveToSmoothAbsolute method is:</p>
1439 void DrawPathCurveToSmoothAbsolute(DrawingWand *wand,
1440 const double x2const double y2,const double x,const double y)
1443 <p>A description of each parameter follows:</p></ol>
1446 <ol><p>the drawing wand.</p></ol>
1449 <ol><p>x ordinate of second control point</p></ol>
1452 <ol><p>y ordinate of second control point</p></ol>
1455 <ol><p>x ordinate of termination point</p></ol>
1458 <ol><p>y ordinate of termination point</p></ol>
1461 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1462 _8c.html" target="source" name="DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a></h2>
1463 <div class="doc-section">
1465 <p>DrawPathCurveToSmoothRelative() draws a cubic Bezier curve from the current point to (x,y) using relative coordinates. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an DrawPathCurveToAbsolute, DrawPathCurveToRelative, DrawPathCurveToSmoothAbsolute or DrawPathCurveToSmoothRelative, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1467 <p>The format of the DrawPathCurveToSmoothRelative method is:</p>
1470 void DrawPathCurveToSmoothRelative(DrawingWand *wand,
1471 const double x2,const double y2,const double x,const double y)
1474 <p>A description of each parameter follows:</p></ol>
1477 <ol><p>the drawing wand.</p></ol>
1480 <ol><p>x ordinate of second control point</p></ol>
1483 <ol><p>y ordinate of second control point</p></ol>
1486 <ol><p>x ordinate of termination point</p></ol>
1489 <ol><p>y ordinate of termination point</p></ol>
1492 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1493 _8c.html" target="source" name="DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a></h2>
1494 <div class="doc-section">
1496 <p>DrawPathEllipticArcAbsolute() draws an elliptical arc from the current point to (x, y) using absolute coordinates. The size and orientation of the ellipse are defined by two radii (rx, ry) and an xAxisRotation, which indicates how the ellipse as a whole is rotated relative to the current coordinate system. The center (cx, cy) of the ellipse is calculated automagically to satisfy the constraints imposed by the other parameters. largeArcFlag and sweepFlag contribute to the automatic calculations and help determine how the arc is drawn. If largeArcFlag is true then draw the larger of the available arcs. If sweepFlag is true, then draw the arc matching a clock-wise rotation.</p></ol>
1498 <p>The format of the DrawPathEllipticArcAbsolute method is:</p>
1501 void DrawPathEllipticArcAbsolute(DrawingWand *wand,
1502 const double rx,const double ry,const double x_axis_rotation,
1503 const MagickBooleanType large_arc_flag,
1504 const MagickBooleanType sweep_flag,const double x,const double y)
1507 <p>A description of each parameter follows:</p></ol>
1510 <ol><p>the drawing wand.</p></ol>
1513 <ol><p>x radius</p></ol>
1516 <ol><p>y radius</p></ol>
1518 <h5>x_axis_rotation</h5>
1519 <ol><p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p></ol>
1521 <h5>large_arc_flag</h5>
1522 <ol><p>If non-zero (true) then draw the larger of the available arcs</p></ol>
1525 <ol><p>If non-zero (true) then draw the arc matching a clock-wise rotation</p></ol>
1529 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1530 _8c.html" target="source" name="DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a></h2>
1531 <div class="doc-section">
1533 <p>DrawPathEllipticArcRelative() draws an elliptical arc from the current point to (x, y) using relative coordinates. The size and orientation of the ellipse are defined by two radii (rx, ry) and an xAxisRotation, which indicates how the ellipse as a whole is rotated relative to the current coordinate system. The center (cx, cy) of the ellipse is calculated automagically to satisfy the constraints imposed by the other parameters. largeArcFlag and sweepFlag contribute to the automatic calculations and help determine how the arc is drawn. If largeArcFlag is true then draw the larger of the available arcs. If sweepFlag is true, then draw the arc matching a clock-wise rotation.</p></ol>
1535 <p>The format of the DrawPathEllipticArcRelative method is:</p>
1538 void DrawPathEllipticArcRelative(DrawingWand *wand,
1539 const double rx,const double ry,const double x_axis_rotation,
1540 const MagickBooleanType large_arc_flag,
1541 const MagickBooleanType sweep_flag,const double x,const double y)
1544 <p>A description of each parameter follows:</p></ol>
1547 <ol><p>the drawing wand.</p></ol>
1550 <ol><p>x radius</p></ol>
1553 <ol><p>y radius</p></ol>
1555 <h5>x_axis_rotation</h5>
1556 <ol><p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p></ol>
1558 <h5>large_arc_flag</h5>
1559 <ol><p>If non-zero (true) then draw the larger of the available arcs</p></ol>
1562 <ol><p>If non-zero (true) then draw the arc matching a clock-wise rotation</p></ol>
1565 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1566 _8c.html" target="source" name="DrawPathFinish">DrawPathFinish</a></h2>
1567 <div class="doc-section">
1569 <p>DrawPathFinish() terminates the current path.</p></ol>
1571 <p>The format of the DrawPathFinish method is:</p>
1574 void DrawPathFinish(DrawingWand *wand)
1577 <p>A description of each parameter follows:</p></ol>
1580 <ol><p>the drawing wand.</p></ol>
1583 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1584 _8c.html" target="source" name="DrawPathLineToAbsolute">DrawPathLineToAbsolute</a></h2>
1585 <div class="doc-section">
1587 <p>DrawPathLineToAbsolute() draws a line path from the current point to the given coordinate using absolute coordinates. The coordinate then becomes the new current point.</p></ol>
1589 <p>The format of the DrawPathLineToAbsolute method is:</p>
1592 void DrawPathLineToAbsolute(DrawingWand *wand,const double x,
1596 <p>A description of each parameter follows:</p></ol>
1599 <ol><p>the drawing wand.</p></ol>
1602 <ol><p>target x ordinate</p></ol>
1605 <ol><p>target y ordinate</p></ol>
1608 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1609 _8c.html" target="source" name="DrawPathLineToRelative">DrawPathLineToRelative</a></h2>
1610 <div class="doc-section">
1612 <p>DrawPathLineToRelative() draws a line path from the current point to the given coordinate using relative coordinates. The coordinate then becomes the new current point.</p></ol>
1614 <p>The format of the DrawPathLineToRelative method is:</p>
1617 void DrawPathLineToRelative(DrawingWand *wand,const double x,
1621 <p>A description of each parameter follows:</p></ol>
1624 <ol><p>the drawing wand.</p></ol>
1627 <ol><p>target x ordinate</p></ol>
1630 <ol><p>target y ordinate</p></ol>
1633 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1634 _8c.html" target="source" name="DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a></h2>
1635 <div class="doc-section">
1637 <p>DrawPathLineToHorizontalAbsolute() draws a horizontal line path from the current point to the target point using absolute coordinates. The target point then becomes the new current point.</p></ol>
1639 <p>The format of the DrawPathLineToHorizontalAbsolute method is:</p>
1642 void DrawPathLineToHorizontalAbsolute(DrawingWand *wand,
1643 const PathMode mode,const double x)
1646 <p>A description of each parameter follows:</p></ol>
1649 <ol><p>the drawing wand.</p></ol>
1652 <ol><p>target x ordinate</p></ol>
1655 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1656 _8c.html" target="source" name="DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a></h2>
1657 <div class="doc-section">
1659 <p>DrawPathLineToHorizontalRelative() draws a horizontal line path from the current point to the target point using relative coordinates. The target point then becomes the new current point.</p></ol>
1661 <p>The format of the DrawPathLineToHorizontalRelative method is:</p>
1664 void DrawPathLineToHorizontalRelative(DrawingWand *wand,
1668 <p>A description of each parameter follows:</p></ol>
1671 <ol><p>the drawing wand.</p></ol>
1674 <ol><p>target x ordinate</p></ol>
1677 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1678 _8c.html" target="source" name="DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a></h2>
1679 <div class="doc-section">
1681 <p>DrawPathLineToVerticalAbsolute() draws a vertical line path from the current point to the target point using absolute coordinates. The target point then becomes the new current point.</p></ol>
1683 <p>The format of the DrawPathLineToVerticalAbsolute method is:</p>
1686 void DrawPathLineToVerticalAbsolute(DrawingWand *wand,
1690 <p>A description of each parameter follows:</p></ol>
1693 <ol><p>the drawing wand.</p></ol>
1696 <ol><p>target y ordinate</p></ol>
1699 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1700 _8c.html" target="source" name="DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a></h2>
1701 <div class="doc-section">
1703 <p>DrawPathLineToVerticalRelative() draws a vertical line path from the current point to the target point using relative coordinates. The target point then becomes the new current point.</p></ol>
1705 <p>The format of the DrawPathLineToVerticalRelative method is:</p>
1708 void DrawPathLineToVerticalRelative(DrawingWand *wand,
1712 <p>A description of each parameter follows:</p></ol>
1715 <ol><p>the drawing wand.</p></ol>
1718 <ol><p>target y ordinate</p></ol>
1721 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1722 _8c.html" target="source" name="DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a></h2>
1723 <div class="doc-section">
1725 <p>DrawPathMoveToAbsolute() starts a new sub-path at the given coordinate using absolute coordinates. The current point then becomes the specified coordinate.</p></ol>
1727 <p>The format of the DrawPathMoveToAbsolute method is:</p>
1730 void DrawPathMoveToAbsolute(DrawingWand *wand,const double x,
1734 <p>A description of each parameter follows:</p></ol>
1737 <ol><p>the drawing wand.</p></ol>
1740 <ol><p>target x ordinate</p></ol>
1743 <ol><p>target y ordinate</p></ol>
1746 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1747 _8c.html" target="source" name="DrawPathMoveToRelative">DrawPathMoveToRelative</a></h2>
1748 <div class="doc-section">
1750 <p>DrawPathMoveToRelative() starts a new sub-path at the given coordinate using relative coordinates. The current point then becomes the specified coordinate.</p></ol>
1752 <p>The format of the DrawPathMoveToRelative method is:</p>
1755 void DrawPathMoveToRelative(DrawingWand *wand,const double x,
1759 <p>A description of each parameter follows:</p></ol>
1762 <ol><p>the drawing wand.</p></ol>
1765 <ol><p>target x ordinate</p></ol>
1768 <ol><p>target y ordinate</p></ol>
1771 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1772 _8c.html" target="source" name="DrawPathStart">DrawPathStart</a></h2>
1773 <div class="doc-section">
1775 <p>DrawPathStart() declares the start of a path drawing list which is terminated by a matching DrawPathFinish() command. All other DrawPath commands must be enclosed between a DrawPathStart() and a DrawPathFinish() command. This is because path drawing commands are subordinate commands and they do not function by themselves.</p></ol>
1777 <p>The format of the DrawPathStart method is:</p>
1780 void DrawPathStart(DrawingWand *wand)
1783 <p>A description of each parameter follows:</p></ol>
1786 <ol><p>the drawing wand.</p></ol>
1789 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1790 _8c.html" target="source" name="DrawPoint">DrawPoint</a></h2>
1791 <div class="doc-section">
1793 <p>DrawPoint() draws a point using the current fill color.</p></ol>
1795 <p>The format of the DrawPoint method is:</p>
1798 void DrawPoint(DrawingWand *wand,const double x,const double y)
1801 <p>A description of each parameter follows:</p></ol>
1804 <ol><p>the drawing wand.</p></ol>
1807 <ol><p>target x coordinate</p></ol>
1810 <ol><p>target y coordinate</p></ol>
1813 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1814 _8c.html" target="source" name="DrawPolygon">DrawPolygon</a></h2>
1815 <div class="doc-section">
1817 <p>DrawPolygon() draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p></ol>
1819 <p>The format of the DrawPolygon method is:</p>
1822 void DrawPolygon(DrawingWand *wand,
1823 const unsigned long number_coordinates,const PointInfo *coordinates)
1826 <p>A description of each parameter follows:</p></ol>
1829 <ol><p>the drawing wand.</p></ol>
1831 <h5>number_coordinates</h5>
1832 <ol><p>number of coordinates</p></ol>
1834 <h5>coordinates</h5>
1835 <ol><p>coordinate array</p></ol>
1838 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1839 _8c.html" target="source" name="DrawPolyline">DrawPolyline</a></h2>
1840 <div class="doc-section">
1842 <p>DrawPolyline() draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p></ol>
1844 <p>The format of the DrawPolyline method is:</p>
1847 void DrawPolyline(DrawingWand *wand,
1848 const unsigned long number_coordinates,const PointInfo *coordinates)
1851 <p>A description of each parameter follows:</p></ol>
1854 <ol><p>the drawing wand.</p></ol>
1856 <h5>number_coordinates</h5>
1857 <ol><p>number of coordinates</p></ol>
1859 <h5>coordinates</h5>
1860 <ol><p>coordinate array</p></ol>
1863 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1864 _8c.html" target="source" name="DrawPopClipPath">DrawPopClipPath</a></h2>
1865 <div class="doc-section">
1867 <p>DrawPopClipPath() terminates a clip path definition.</p></ol>
1869 <p>The format of the DrawPopClipPath method is:</p>
1872 void DrawPopClipPath(DrawingWand *wand)
1875 <p>A description of each parameter follows:</p></ol>
1878 <ol><p>the drawing wand.</p></ol>
1881 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1882 _8c.html" target="source" name="DrawPopDefs">DrawPopDefs</a></h2>
1883 <div class="doc-section">
1885 <p>DrawPopDefs() terminates a definition list.</p></ol>
1887 <p>The format of the DrawPopDefs method is:</p>
1890 void DrawPopDefs(DrawingWand *wand)
1893 <p>A description of each parameter follows:</p></ol>
1896 <ol><p>the drawing wand.</p></ol>
1899 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1900 _8c.html" target="source" name="DrawPopPattern">DrawPopPattern</a></h2>
1901 <div class="doc-section">
1903 <p>DrawPopPattern() terminates a pattern definition.</p></ol>
1905 <p>The format of the DrawPopPattern method is:</p>
1908 MagickBooleanType DrawPopPattern(DrawingWand *wand)
1911 <p>A description of each parameter follows:</p></ol>
1914 <ol><p>the drawing wand.</p></ol>
1917 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1918 _8c.html" target="source" name="DrawPushClipPath">DrawPushClipPath</a></h2>
1919 <div class="doc-section">
1921 <p>DrawPushClipPath() starts a clip path definition which is comprized of any number of drawing commands and terminated by a DrawPopClipPath() command.</p></ol>
1923 <p>The format of the DrawPushClipPath method is:</p>
1926 void DrawPushClipPath(DrawingWand *wand,const char *clip_mask_id)
1929 <p>A description of each parameter follows:</p></ol>
1932 <ol><p>the drawing wand.</p></ol>
1934 <h5>clip_mask_id</h5>
1935 <ol><p>string identifier to associate with the clip path for later use.</p></ol>
1938 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1939 _8c.html" target="source" name="DrawPushDefs">DrawPushDefs</a></h2>
1940 <div class="doc-section">
1942 <p>DrawPushDefs() indicates that commands up to a terminating DrawPopDefs() command create named elements (e.g. clip-paths, textures, etc.) which may safely be processed earlier for the sake of efficiency.</p></ol>
1944 <p>The format of the DrawPushDefs method is:</p>
1947 void DrawPushDefs(DrawingWand *wand)
1950 <p>A description of each parameter follows:</p></ol>
1953 <ol><p>the drawing wand.</p></ol>
1956 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1957 _8c.html" target="source" name="DrawPushPattern">DrawPushPattern</a></h2>
1958 <div class="doc-section">
1960 <p>DrawPushPattern() indicates that subsequent commands up to a DrawPopPattern() command comprise the definition of a named pattern. The pattern space is assigned top left corner coordinates, a width and height, and becomes its own drawing space. Anything which can be drawn may be used in a pattern definition. Named patterns may be used as stroke or brush definitions.</p></ol>
1962 <p>The format of the DrawPushPattern method is:</p>
1965 MagickBooleanType DrawPushPattern(DrawingWand *wand,
1966 const char *pattern_id,const double x,const double y,
1967 const double width,const double height)
1970 <p>A description of each parameter follows:</p></ol>
1973 <ol><p>the drawing wand.</p></ol>
1976 <ol><p>pattern identification for later reference</p></ol>
1979 <ol><p>x ordinate of top left corner</p></ol>
1982 <ol><p>y ordinate of top left corner</p></ol>
1985 <ol><p>width of pattern space</p></ol>
1988 <ol><p>height of pattern space</p></ol>
1991 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1992 _8c.html" target="source" name="DrawRectangle">DrawRectangle</a></h2>
1993 <div class="doc-section">
1995 <p>DrawRectangle() draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.</p></ol>
1997 <p>The format of the DrawRectangle method is:</p>
2000 void DrawRectangle(DrawingWand *wand,const double x1,
2001 const double y1,const double x2,const double y2)
2004 <p>A description of each parameter follows:</p></ol>
2007 <ol><p>x ordinate of first coordinate</p></ol>
2010 <ol><p>y ordinate of first coordinate</p></ol>
2013 <ol><p>x ordinate of second coordinate</p></ol>
2016 <ol><p>y ordinate of second coordinate</p></ol>
2019 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2020 _8c.html" target="source" name="DrawResetVectorGraphics">DrawResetVectorGraphics</a></h2>
2021 <div class="doc-section">
2023 <p>DrawResetVectorGraphics() resets the vector graphics associated with the specified wand.</p></ol>
2025 <p>The format of the DrawResetVectorGraphics method is:</p>
2028 void DrawResetVectorGraphics(DrawingWand *wand)
2031 <p>A description of each parameter follows:</p></ol>
2034 <ol><p>the drawing wand.</p></ol>
2037 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2038 _8c.html" target="source" name="DrawRotate">DrawRotate</a></h2>
2039 <div class="doc-section">
2041 <p>DrawRotate() applies the specified rotation to the current coordinate space.</p></ol>
2043 <p>The format of the DrawRotate method is:</p>
2046 void DrawRotate(DrawingWand *wand,const double degrees)
2049 <p>A description of each parameter follows:</p></ol>
2052 <ol><p>the drawing wand.</p></ol>
2055 <ol><p>degrees of rotation</p></ol>
2058 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2059 _8c.html" target="source" name="DrawRoundRectangle">DrawRoundRectangle</a></h2>
2060 <div class="doc-section">
2062 <p>DrawRoundRectangle() draws a rounted rectangle given two coordinates, x & y corner radiuses and using the current stroke, stroke width, and fill settings.</p></ol>
2064 <p>The format of the DrawRoundRectangle method is:</p>
2067 void DrawRoundRectangle(DrawingWand *wand,double x1,double y1,
2068 double x2,double y2,double rx,double ry)
2071 <p>A description of each parameter follows:</p></ol>
2074 <ol><p>the drawing wand.</p></ol>
2077 <ol><p>x ordinate of first coordinate</p></ol>
2080 <ol><p>y ordinate of first coordinate</p></ol>
2083 <ol><p>x ordinate of second coordinate</p></ol>
2086 <ol><p>y ordinate of second coordinate</p></ol>
2089 <ol><p>radius of corner in horizontal direction</p></ol>
2092 <ol><p>radius of corner in vertical direction</p></ol>
2095 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2096 _8c.html" target="source" name="DrawScale">DrawScale</a></h2>
2097 <div class="doc-section">
2099 <p>DrawScale() adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space.</p></ol>
2101 <p>The format of the DrawScale method is:</p>
2104 void DrawScale(DrawingWand *wand,const double x,const double y)
2107 <p>A description of each parameter follows:</p></ol>
2110 <ol><p>the drawing wand.</p></ol>
2113 <ol><p>horizontal scale factor</p></ol>
2116 <ol><p>vertical scale factor</p></ol>
2119 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2120 _8c.html" target="source" name="DrawSetBorderColor">DrawSetBorderColor</a></h2>
2121 <div class="doc-section">
2123 <p>DrawSetBorderColor() sets the border color to be used for drawing bordered objects.</p></ol>
2125 <p>The format of the DrawSetBorderColor method is:</p>
2128 void DrawSetBorderColor(DrawingWand *wand,const PixelWand *border_wand)
2131 <p>A description of each parameter follows:</p></ol>
2134 <ol><p>the drawing wand.</p></ol>
2136 <h5>border_wand</h5>
2137 <ol><p>border wand.</p></ol>
2140 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2141 _8c.html" target="source" name="DrawSetClipPath">DrawSetClipPath</a></h2>
2142 <div class="doc-section">
2144 <p>DrawSetClipPath() associates a named clipping path with the image. Only the areas drawn on by the clipping path will be modified as long as it remains in effect.</p></ol>
2146 <p>The format of the DrawSetClipPath method is:</p>
2149 MagickBooleanType DrawSetClipPath(DrawingWand *wand,
2150 const char *clip_mask)
2153 <p>A description of each parameter follows:</p></ol>
2156 <ol><p>the drawing wand.</p></ol>
2159 <ol><p>name of clipping path to associate with image</p></ol>
2162 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2163 _8c.html" target="source" name="DrawSetClipRule">DrawSetClipRule</a></h2>
2164 <div class="doc-section">
2166 <p>DrawSetClipRule() set the polygon fill rule to be used by the clipping path.</p></ol>
2168 <p>The format of the DrawSetClipRule method is:</p>
2171 void DrawSetClipRule(DrawingWand *wand,const FillRule fill_rule)
2174 <p>A description of each parameter follows:</p></ol>
2177 <ol><p>the drawing wand.</p></ol>
2180 <ol><p>fill rule (EvenOddRule or NonZeroRule)</p></ol>
2183 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2184 _8c.html" target="source" name="DrawSetClipUnits">DrawSetClipUnits</a></h2>
2185 <div class="doc-section">
2187 <p>DrawSetClipUnits() sets the interpretation of clip path units.</p></ol>
2189 <p>The format of the DrawSetClipUnits method is:</p>
2192 void DrawSetClipUnits(DrawingWand *wand,
2193 const ClipPathUnits clip_units)
2196 <p>A description of each parameter follows:</p></ol>
2199 <ol><p>the drawing wand.</p></ol>
2202 <ol><p>units to use (UserSpace, UserSpaceOnUse, or ObjectBoundingBox)</p></ol>
2205 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2206 _8c.html" target="source" name="DrawSetFillColor">DrawSetFillColor</a></h2>
2207 <div class="doc-section">
2209 <p>DrawSetFillColor() sets the fill color to be used for drawing filled objects.</p></ol>
2211 <p>The format of the DrawSetFillColor method is:</p>
2214 void DrawSetFillColor(DrawingWand *wand,const PixelWand *fill_wand)
2217 <p>A description of each parameter follows:</p></ol>
2220 <ol><p>the drawing wand.</p></ol>
2223 <ol><p>fill wand.</p></ol>
2226 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2227 _8c.html" target="source" name="DrawSetFillOpacity">DrawSetFillOpacity</a></h2>
2228 <div class="doc-section">
2230 <p>DrawSetFillOpacity() sets the opacity to use when drawing using the fill color or fill texture. Fully opaque is 1.0.</p></ol>
2232 <p>The format of the DrawSetFillOpacity method is:</p>
2235 void DrawSetFillOpacity(DrawingWand *wand,const double fill_opacity)
2238 <p>A description of each parameter follows:</p></ol>
2241 <ol><p>the drawing wand.</p></ol>
2243 <h5>fill_opacity</h5>
2244 <ol><p>fill opacity</p></ol>
2247 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2248 _8c.html" target="source" name="DrawSetOpacity">DrawSetOpacity</a></h2>
2249 <div class="doc-section">
2251 <p>DrawSetOpacity() sets the opacity to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0.</p></ol>
2253 <p>The format of the DrawSetOpacity method is:</p>
2256 void DrawSetOpacity(DrawingWand *wand,const double opacity)
2259 <p>A description of each parameter follows:</p></ol>
2262 <ol><p>the drawing wand.</p></ol>
2265 <ol><p>fill opacity</p></ol>
2268 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2269 _8c.html" target="source" name="DrawSetFillPatternURL">DrawSetFillPatternURL</a></h2>
2270 <div class="doc-section">
2272 <p>DrawSetFillPatternURL() sets the URL to use as a fill pattern for filling objects. Only local URLs ("#identifier") are supported at this time. These local URLs are normally created by defining a named fill pattern with DrawPushPattern/DrawPopPattern.</p></ol>
2274 <p>The format of the DrawSetFillPatternURL method is:</p>
2277 MagickBooleanType DrawSetFillPatternURL(DrawingWand *wand,
2278 const char *fill_url)
2281 <p>A description of each parameter follows:</p></ol>
2284 <ol><p>the drawing wand.</p></ol>
2287 <ol><p>URL to use to obtain fill pattern.</p></ol>
2290 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2291 _8c.html" target="source" name="DrawSetFillRule">DrawSetFillRule</a></h2>
2292 <div class="doc-section">
2294 <p>DrawSetFillRule() sets the fill rule to use while drawing polygons.</p></ol>
2296 <p>The format of the DrawSetFillRule method is:</p>
2299 void DrawSetFillRule(DrawingWand *wand,const FillRule fill_rule)
2302 <p>A description of each parameter follows:</p></ol>
2305 <ol><p>the drawing wand.</p></ol>
2308 <ol><p>fill rule (EvenOddRule or NonZeroRule)</p></ol>
2311 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2312 _8c.html" target="source" name="DrawSetFont">DrawSetFont</a></h2>
2313 <div class="doc-section">
2315 <p>DrawSetFont() sets the fully-sepecified font to use when annotating with text.</p></ol>
2317 <p>The format of the DrawSetFont method is:</p>
2320 MagickBooleanType DrawSetFont(DrawingWand *wand,const char *font_name)
2323 <p>A description of each parameter follows:</p></ol>
2326 <ol><p>the drawing wand.</p></ol>
2329 <ol><p>font name</p></ol>
2332 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2333 _8c.html" target="source" name="DrawSetFontFamily">DrawSetFontFamily</a></h2>
2334 <div class="doc-section">
2336 <p>DrawSetFontFamily() sets the font family to use when annotating with text.</p></ol>
2338 <p>The format of the DrawSetFontFamily method is:</p>
2341 MagickBooleanType DrawSetFontFamily(DrawingWand *wand,
2342 const char *font_family)
2345 <p>A description of each parameter follows:</p></ol>
2348 <ol><p>the drawing wand.</p></ol>
2350 <h5>font_family</h5>
2351 <ol><p>font family</p></ol>
2354 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2355 _8c.html" target="source" name="DrawSetFontSize">DrawSetFontSize</a></h2>
2356 <div class="doc-section">
2358 <p>DrawSetFontSize() sets the font pointsize to use when annotating with text.</p></ol>
2360 <p>The format of the DrawSetFontSize method is:</p>
2363 void DrawSetFontSize(DrawingWand *wand,const double pointsize)
2366 <p>A description of each parameter follows:</p></ol>
2369 <ol><p>the drawing wand.</p></ol>
2372 <ol><p>text pointsize</p></ol>
2375 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2376 _8c.html" target="source" name="DrawSetFontStretch">DrawSetFontStretch</a></h2>
2377 <div class="doc-section">
2379 <p>DrawSetFontStretch() sets the font stretch to use when annotating with text. The AnyStretch enumeration acts as a wild-card "don't care" option.</p></ol>
2381 <p>The format of the DrawSetFontStretch method is:</p>
2384 void DrawSetFontStretch(DrawingWand *wand,
2385 const StretchType font_stretch)
2388 <p>A description of each parameter follows:</p></ol>
2391 <ol><p>the drawing wand.</p></ol>
2393 <h5>font_stretch</h5>
2394 <ol><p>font stretch (NormalStretch, UltraCondensedStretch, CondensedStretch, SemiCondensedStretch, SemiExpandedStretch, ExpandedStretch, ExtraExpandedStretch, UltraExpandedStretch, AnyStretch)</p></ol>
2397 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2398 _8c.html" target="source" name="DrawSetFontStyle">DrawSetFontStyle</a></h2>
2399 <div class="doc-section">
2401 <p>DrawSetFontStyle() sets the font style to use when annotating with text. The AnyStyle enumeration acts as a wild-card "don't care" option.</p></ol>
2403 <p>The format of the DrawSetFontStyle method is:</p>
2406 void DrawSetFontStyle(DrawingWand *wand,const StyleType style)
2409 <p>A description of each parameter follows:</p></ol>
2412 <ol><p>the drawing wand.</p></ol>
2415 <ol><p>font style (NormalStyle, ItalicStyle, ObliqueStyle, AnyStyle)</p></ol>
2418 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2419 _8c.html" target="source" name="DrawSetFontWeight">DrawSetFontWeight</a></h2>
2420 <div class="doc-section">
2422 <p>DrawSetFontWeight() sets the font weight to use when annotating with text.</p></ol>
2424 <p>The format of the DrawSetFontWeight method is:</p>
2427 void DrawSetFontWeight(DrawingWand *wand,
2428 const unsigned long font_weight)
2431 <p>A description of each parameter follows:</p></ol>
2434 <ol><p>the drawing wand.</p></ol>
2436 <h5>font_weight</h5>
2437 <ol><p>font weight (valid range 100-900)</p></ol>
2440 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2441 _8c.html" target="source" name="DrawSetGravity">DrawSetGravity</a></h2>
2442 <div class="doc-section">
2444 <p>DrawSetGravity() sets the text placement gravity to use when annotating with text.</p></ol>
2446 <p>The format of the DrawSetGravity method is:</p>
2449 void DrawSetGravity(DrawingWand *wand,const GravityType gravity)
2452 <p>A description of each parameter follows:</p></ol>
2455 <ol><p>the drawing wand.</p></ol>
2458 <ol><p>positioning gravity (NorthWestGravity, NorthGravity, NorthEastGravity, WestGravity, CenterGravity, EastGravity, SouthWestGravity, SouthGravity, SouthEastGravity)</p></ol>
2461 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2462 _8c.html" target="source" name="DrawSetStrokeColor">DrawSetStrokeColor</a></h2>
2463 <div class="doc-section">
2465 <p>DrawSetStrokeColor() sets the color used for stroking object outlines.</p></ol>
2467 <p>The format of the DrawSetStrokeColor method is:</p>
2470 void DrawSetStrokeColor(DrawingWand *wand,
2471 const PixelWand *stroke_wand)
2474 <p>A description of each parameter follows:</p></ol>
2477 <ol><p>the drawing wand.</p></ol>
2479 <h5>stroke_wand</h5>
2480 <ol><p>stroke wand.</p></ol>
2483 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2484 _8c.html" target="source" name="DrawSetStrokePatternURL">DrawSetStrokePatternURL</a></h2>
2485 <div class="doc-section">
2487 <p>DrawSetStrokePatternURL() sets the pattern used for stroking object outlines.</p></ol>
2489 <p>The format of the DrawSetStrokePatternURL method is:</p>
2492 MagickBooleanType DrawSetStrokePatternURL(DrawingWand *wand,
2493 const char *stroke_url)
2496 <p>A description of each parameter follows:</p></ol>
2499 <ol><p>the drawing wand.</p></ol>
2502 <ol><p>URL specifying pattern ID (e.g. "#pattern_id")</p></ol>
2505 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2506 _8c.html" target="source" name="DrawSetStrokeAntialias">DrawSetStrokeAntialias</a></h2>
2507 <div class="doc-section">
2509 <p>DrawSetStrokeAntialias() controls whether stroked outlines are antialiased. Stroked outlines are antialiased by default. When antialiasing is disabled stroked pixels are thresholded to determine if the stroke color or underlying canvas color should be used.</p></ol>
2511 <p>The format of the DrawSetStrokeAntialias method is:</p>
2514 void DrawSetStrokeAntialias(DrawingWand *wand,
2515 const MagickBooleanType stroke_antialias)
2518 <p>A description of each parameter follows:</p></ol>
2521 <ol><p>the drawing wand.</p></ol>
2523 <h5>stroke_antialias</h5>
2524 <ol><p>set to false (zero) to disable antialiasing</p></ol>
2527 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2528 _8c.html" target="source" name="DrawSetStrokeDashArray">DrawSetStrokeDashArray</a></h2>
2529 <div class="doc-section">
2531 <p>DrawSetStrokeDashArray() specifies the pattern of dashes and gaps used to stroke paths. The stroke dash array represents an array of numbers that specify the lengths of alternating dashes and gaps in pixels. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. To remove an existing dash array, pass a zero number_elements argument and null dash_array. A typical stroke dash array might contain the members 5 3 2.</p></ol>
2533 <p>The format of the DrawSetStrokeDashArray method is:</p>
2536 MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand,
2537 const unsigned long number_elements,const double *dash_array)
2540 <p>A description of each parameter follows:</p></ol>
2543 <ol><p>the drawing wand.</p></ol>
2545 <h5>number_elements</h5>
2546 <ol><p>number of elements in dash array</p></ol>
2549 <ol><p>dash array values</p></ol>
2552 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2553 _8c.html" target="source" name="DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a></h2>
2554 <div class="doc-section">
2556 <p>DrawSetStrokeDashOffset() specifies the offset into the dash pattern to start the dash.</p></ol>
2558 <p>The format of the DrawSetStrokeDashOffset method is:</p>
2561 void DrawSetStrokeDashOffset(DrawingWand *wand,
2562 const double dash_offset)
2565 <p>A description of each parameter follows:</p></ol>
2568 <ol><p>the drawing wand.</p></ol>
2570 <h5>dash_offset</h5>
2571 <ol><p>dash offset</p></ol>
2574 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2575 _8c.html" target="source" name="DrawSetStrokeLineCap">DrawSetStrokeLineCap</a></h2>
2576 <div class="doc-section">
2578 <p>DrawSetStrokeLineCap() specifies the shape to be used at the end of open subpaths when they are stroked. Values of LineCap are UndefinedCap, ButtCap, RoundCap, and SquareCap.</p></ol>
2580 <p>The format of the DrawSetStrokeLineCap method is:</p>
2583 void DrawSetStrokeLineCap(DrawingWand *wand,
2584 const LineCap linecap)
2587 <p>A description of each parameter follows:</p></ol>
2590 <ol><p>the drawing wand.</p></ol>
2593 <ol><p>linecap style</p></ol>
2596 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2597 _8c.html" target="source" name="DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a></h2>
2598 <div class="doc-section">
2600 <p>DrawSetStrokeLineJoin() specifies the shape to be used at the corners of paths (or other vector shapes) when they are stroked. Values of LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.</p></ol>
2602 <p>The format of the DrawSetStrokeLineJoin method is:</p>
2605 void DrawSetStrokeLineJoin(DrawingWand *wand,
2606 const LineJoin linejoin)
2609 <p>A description of each parameter follows:</p></ol>
2612 <ol><p>the drawing wand.</p></ol>
2615 <ol><p>line join style</p></ol>
2618 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2619 _8c.html" target="source" name="DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a></h2>
2620 <div class="doc-section">
2622 <p>DrawSetStrokeMiterLimit() specifies the miter limit. When two line segments meet at a sharp angle and miter joins have been specified for 'lineJoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The miterLimit' imposes a limit on the ratio of the miter length to the 'lineWidth'.</p></ol>
2624 <p>The format of the DrawSetStrokeMiterLimit method is:</p>
2627 void DrawSetStrokeMiterLimit(DrawingWand *wand,
2628 const unsigned long miterlimit)
2631 <p>A description of each parameter follows:</p></ol>
2634 <ol><p>the drawing wand.</p></ol>
2637 <ol><p>miter limit</p></ol>
2640 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2641 _8c.html" target="source" name="DrawSetStrokeOpacity">DrawSetStrokeOpacity</a></h2>
2642 <div class="doc-section">
2644 <p>DrawSetStrokeOpacity() specifies the opacity of stroked object outlines.</p></ol>
2646 <p>The format of the DrawSetStrokeOpacity method is:</p>
2649 void DrawSetStrokeOpacity(DrawingWand *wand,
2650 const double stroke_opacity)
2653 <p>A description of each parameter follows:</p></ol>
2656 <ol><p>the drawing wand.</p></ol>
2658 <h5>stroke_opacity</h5>
2659 <ol><p>stroke opacity. The value 1.0 is opaque.</p></ol>
2662 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2663 _8c.html" target="source" name="DrawSetStrokeWidth">DrawSetStrokeWidth</a></h2>
2664 <div class="doc-section">
2666 <p>DrawSetStrokeWidth() sets the width of the stroke used to draw object outlines.</p></ol>
2668 <p>The format of the DrawSetStrokeWidth method is:</p>
2671 void DrawSetStrokeWidth(DrawingWand *wand,
2672 const double stroke_width)
2675 <p>A description of each parameter follows:</p></ol>
2678 <ol><p>the drawing wand.</p></ol>
2680 <h5>stroke_width</h5>
2681 <ol><p>stroke width</p></ol>
2684 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2685 _8c.html" target="source" name="DrawSetTextAlignment">DrawSetTextAlignment</a></h2>
2686 <div class="doc-section">
2688 <p>DrawSetTextAlignment() specifies a text alignment to be applied when annotating with text.</p></ol>
2690 <p>The format of the DrawSetTextAlignment method is:</p>
2693 void DrawSetTextAlignment(DrawingWand *wand,const AlignType alignment)
2696 <p>A description of each parameter follows:</p></ol>
2699 <ol><p>the drawing wand.</p></ol>
2702 <ol><p>text alignment. One of UndefinedAlign, LeftAlign, CenterAlign, or RightAlign.</p></ol>
2705 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2706 _8c.html" target="source" name="DrawSetTextAntialias">DrawSetTextAntialias</a></h2>
2707 <div class="doc-section">
2709 <p>DrawSetTextAntialias() controls whether text is antialiased. Text is antialiased by default.</p></ol>
2711 <p>The format of the DrawSetTextAntialias method is:</p>
2714 void DrawSetTextAntialias(DrawingWand *wand,
2715 const MagickBooleanType text_antialias)
2718 <p>A description of each parameter follows:</p></ol>
2721 <ol><p>the drawing wand.</p></ol>
2723 <h5>text_antialias</h5>
2724 <ol><p>antialias boolean. Set to false (0) to disable antialiasing.</p></ol>
2727 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2728 _8c.html" target="source" name="DrawSetTextDecoration">DrawSetTextDecoration</a></h2>
2729 <div class="doc-section">
2731 <p>DrawSetTextDecoration() specifies a decoration to be applied when annotating with text.</p></ol>
2733 <p>The format of the DrawSetTextDecoration method is:</p>
2736 void DrawSetTextDecoration(DrawingWand *wand,
2737 const DecorationType decoration)
2740 <p>A description of each parameter follows:</p></ol>
2743 <ol><p>the drawing wand.</p></ol>
2746 <ol><p>text decoration. One of NoDecoration, UnderlineDecoration, OverlineDecoration, or LineThroughDecoration</p></ol>
2749 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2750 _8c.html" target="source" name="DrawSetTextEncoding">DrawSetTextEncoding</a></h2>
2751 <div class="doc-section">
2753 <p>DrawSetTextEncoding() specifies the code set to use for text annotations. The only character encoding which may be specified at this time is "UTF-8" for representing Unicode as a sequence of bytes. Specify an empty string to set text encoding to the system's default. Successful text annotation using Unicode may require fonts designed to support Unicode.</p></ol>
2755 <p>The format of the DrawSetTextEncoding method is:</p>
2758 void DrawSetTextEncoding(DrawingWand *wand,const char *encoding)
2761 <p>A description of each parameter follows:</p></ol>
2764 <ol><p>the drawing wand.</p></ol>
2767 <ol><p>character string specifying text encoding</p></ol>
2770 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2771 _8c.html" target="source" name="DrawSetTextKerning">DrawSetTextKerning</a></h2>
2772 <div class="doc-section">
2774 <p>DrawSetTextKerning() sets the spacing between characters in text.</p></ol>
2776 <p>The format of the DrawSetTextKerning method is:</p>
2779 void DrawSetTextKerning(DrawingWand *wand,const double kerning)
2782 <p>A description of each parameter follows:</p></ol>
2785 <ol><p>the drawing wand.</p></ol>
2788 <ol><p>text kerning</p></ol>
2791 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2792 _8c.html" target="source" name="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
2793 <div class="doc-section">
2795 <p>DrawSetTextInterwordSpacing() sets the spacing between line in text.</p></ol>
2797 <p>The format of the DrawSetInterwordSpacing method is:</p>
2800 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2801 const double interline_spacing)
2804 <p>A description of each parameter follows:</p></ol>
2807 <ol><p>the drawing wand.</p></ol>
2809 <h5>interline_spacing</h5>
2810 <ol><p>text line spacing</p></ol>
2813 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2814 _8c.html" target="source" name="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
2815 <div class="doc-section">
2817 <p>DrawSetTextInterwordSpacing() sets the spacing between words in text.</p></ol>
2819 <p>The format of the DrawSetInterwordSpacing method is:</p>
2822 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2823 const double interword_spacing)
2826 <p>A description of each parameter follows:</p></ol>
2829 <ol><p>the drawing wand.</p></ol>
2831 <h5>interword_spacing</h5>
2832 <ol><p>text word spacing</p></ol>
2835 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2836 _8c.html" target="source" name="DrawSetTextUnderColor">DrawSetTextUnderColor</a></h2>
2837 <div class="doc-section">
2839 <p>DrawSetTextUnderColor() specifies the color of a background rectangle to place under text annotations.</p></ol>
2841 <p>The format of the DrawSetTextUnderColor method is:</p>
2844 void DrawSetTextUnderColor(DrawingWand *wand,
2845 const PixelWand *under_wand)
2848 <p>A description of each parameter follows:</p></ol>
2851 <ol><p>the drawing wand.</p></ol>
2854 <ol><p>text under wand.</p></ol>
2857 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2858 _8c.html" target="source" name="DrawSetVectorGraphics">DrawSetVectorGraphics</a></h2>
2859 <div class="doc-section">
2861 <p>DrawSetVectorGraphics() sets the vector graphics associated with the specified wand. Use this method with DrawGetVectorGraphics() as a method to persist the vector graphics state.</p></ol>
2863 <p>The format of the DrawSetVectorGraphics method is:</p>
2866 MagickBooleanType DrawSetVectorGraphics(DrawingWand *wand,
2870 <p>A description of each parameter follows:</p></ol>
2873 <ol><p>the drawing wand.</p></ol>
2876 <ol><p>the drawing wand XML.</p></ol>
2879 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2880 _8c.html" target="source" name="DrawSkewX">DrawSkewX</a></h2>
2881 <div class="doc-section">
2883 <p>DrawSkewX() skews the current coordinate system in the horizontal direction.</p></ol>
2885 <p>The format of the DrawSkewX method is:</p>
2888 void DrawSkewX(DrawingWand *wand,const double degrees)
2891 <p>A description of each parameter follows:</p></ol>
2894 <ol><p>the drawing wand.</p></ol>
2897 <ol><p>number of degrees to skew the coordinates</p></ol>
2900 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2901 _8c.html" target="source" name="DrawSkewY">DrawSkewY</a></h2>
2902 <div class="doc-section">
2904 <p>DrawSkewY() skews the current coordinate system in the vertical direction.</p></ol>
2906 <p>The format of the DrawSkewY method is:</p>
2909 void DrawSkewY(DrawingWand *wand,const double degrees)
2912 <p>A description of each parameter follows:</p></ol>
2915 <ol><p>the drawing wand.</p></ol>
2918 <ol><p>number of degrees to skew the coordinates</p></ol>
2921 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2922 _8c.html" target="source" name="DrawTranslate">DrawTranslate</a></h2>
2923 <div class="doc-section">
2925 <p>DrawTranslate() applies a translation to the current coordinate system which moves the coordinate system origin to the specified coordinate.</p></ol>
2927 <p>The format of the DrawTranslate method is:</p>
2930 void DrawTranslate(DrawingWand *wand,const double x,
2934 <p>A description of each parameter follows:</p></ol>
2937 <ol><p>the drawing wand.</p></ol>
2940 <ol><p>new x ordinate for coordinate system origin</p></ol>
2943 <ol><p>new y ordinate for coordinate system origin</p></ol>
2946 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2947 _8c.html" target="source" name="DrawSetViewbox">DrawSetViewbox</a></h2>
2948 <div class="doc-section">
2950 <p>DrawSetViewbox() sets the overall canvas size to be recorded with the drawing vector data. Usually this will be specified using the same size as the canvas image. When the vector data is saved to SVG or MVG formats, the viewbox is use to specify the size of the canvas image that a viewer will render the vector data on.</p></ol>
2952 <p>The format of the DrawSetViewbox method is:</p>
2955 void DrawSetViewbox(DrawingWand *wand,unsigned long x1,
2956 unsigned long y1,unsigned long x2,unsigned long y2)
2959 <p>A description of each parameter follows:</p></ol>
2962 <ol><p>the drawing wand.</p></ol>
2965 <ol><p>left x ordinate</p></ol>
2968 <ol><p>top y ordinate</p></ol>
2971 <ol><p>right x ordinate</p></ol>
2974 <ol><p>bottom y ordinate</p></ol>
2977 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2978 _8c.html" target="source" name="IsDrawingWand">IsDrawingWand</a></h2>
2979 <div class="doc-section">
2981 <p>IsDrawingWand() returns MagickTrue if the wand is verified as a drawing wand.</p></ol>
2983 <p>The format of the IsDrawingWand method is:</p>
2986 MagickBooleanType IsDrawingWand(const DrawingWand *wand)
2989 <p>A description of each parameter follows:</p></ol>
2992 <ol><p>the drawing wand.</p></ol>
2995 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2996 _8c.html" target="source" name="NewDrawingWand">NewDrawingWand</a></h2>
2997 <div class="doc-section">
2999 <p>NewDrawingWand() returns a drawing wand required for all other methods in the API.</p></ol>
3001 <p>The format of the NewDrawingWand method is:</p>
3004 DrawingWand NewDrawingWand(void)
3008 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3009 _8c.html" target="source" name="PeekDrawingWand">PeekDrawingWand</a></h2>
3010 <div class="doc-section">
3012 <p>PeekDrawingWand() returns the current drawing wand.</p></ol>
3014 <p>The format of the PeekDrawingWand method is:</p>
3017 DrawInfo *PeekDrawingWand(const DrawingWand *wand)
3020 <p>A description of each parameter follows:</p></ol>
3023 <ol><p>the drawing wand.</p></ol>
3026 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3027 _8c.html" target="source" name="PopDrawingWand">PopDrawingWand</a></h2>
3028 <div class="doc-section">
3030 <p>PopDrawingWand() destroys the current drawing wand and returns to the previously pushed drawing wand. Multiple drawing wands may exist. It is an error to attempt to pop more drawing wands than have been pushed, and it is proper form to pop all drawing wands which have been pushed.</p></ol>
3032 <p>The format of the PopDrawingWand method is:</p>
3035 MagickBooleanType PopDrawingWand(DrawingWand *wand)
3038 <p>A description of each parameter follows:</p></ol>
3041 <ol><p>the drawing wand.</p></ol>
3044 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3045 _8c.html" target="source" name="PushDrawingWand">PushDrawingWand</a></h2>
3046 <div class="doc-section">
3048 <p>PushDrawingWand() clones the current drawing wand to create a new drawing wand. The original drawing wand(s) may be returned to by invoking PopDrawingWand(). The drawing wands are stored on a drawing wand stack. For every Pop there must have already been an equivalent Push.</p></ol>
3050 <p>The format of the PushDrawingWand method is:</p>
3053 MagickBooleanType PushDrawingWand(DrawingWand *wand)
3056 <p>A description of each parameter follows:</p></ol>
3059 <ol><p>the drawing wand.</p></ol>
3065 <div id="linkbar">
\r
3066 <!-- <span id="linkbar-west"> </span> -->
\r
3067 <span id="linkbar-center">
\r
3068 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
3069 <a href="../../www/mailing-list.html">Mailing Lists</a> •
\r
3070 <a href="http://studio.webbyland.com/ImageMagick/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
3072 <span id="linkbar-east"> </span>
\r
3074 <div class="footer">
\r
3075 <span id="footer-west">© 1999-2009 ImageMagick Studio LLC</span>
\r
3076 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
3078 <div style="clear: both; margin: 0; width: 100%; "></div>
\r