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" dir="ltr">
\r
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
\r
6 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>
\r
7 <title>ImageMagick: MagickWand, C API for ImageMagick: Drawing Wand Methods</title/>
8 <meta http-equiv="Content-Language" content="en-US"/>
9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
10 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
11 <meta name="Application-name" content="ImageMagick"/>
12 <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."/>
13 <meta name="Application-url" content="http://www.imagemagick.org"/>
14 <meta name="Generator" content="PHP"/>
15 <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"/>
16 <meta name="Rating" content="GENERAL"/>
17 <meta name="Robots" content="INDEX, FOLLOW"/>
18 <meta name="Generator" content="ImageMagick Studio LLC"/>
19 <meta name="Author" content="ImageMagick Studio LLC"/>
20 <meta name="Revisit-after" content="2 DAYS"/>
21 <meta name="Resource-type" content="document"/>
22 <meta name="Copyright" content="Copyright (c) 1999-2010 ImageMagick Studio LLC"/>
23 <meta name="Distribution" content="Global"/>
24 <link rel="icon" href="../../images/wand.png" sizes="32x32"/>
25 <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/>
26 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
\r
27 <style type="text/css" media="all">
\r
28 @import url("../../www/magick.css");
\r
32 <body id="www-imagemagick-org">
\r
33 <div class="titlebar">
\r
34 <a href="../../index.html">
\r
35 <img src="../../images/script.png" alt="[ImageMagick]"
\r
36 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
37 <a href="http://www.networkredux.com">
\r
38 <img src="../../images/networkredux.png" alt="[sponsor]"
\r
39 style="margin: 45px auto; border: 0px; float: left;" /></a>
\r
40 <a href="http://www.imagemagick.org/discourse-server/">
\r
41 <img src="../../images/logo.jpg" alt=""
\r
42 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
43 <a href="../../index.html">
\r
44 <img src="../../images/sprite.jpg" alt=""
\r
45 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
48 <div class="westbar">
\r
51 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
53 <div class="sep"></div>
\r
55 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
58 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
61 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
64 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
66 <div class="sep"></div>
\r
68 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
71 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
74 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
77 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
80 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
83 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
86 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
89 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
92 <a title="Program Interface: Magick++" href="../../Magick++/">Magick++</a>
94 <div class="sep"></div>
\r
96 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
99 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
102 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
105 <a title="Resources" href="../../www/resources.html">Resources</a>
108 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
111 <a title="Download" href="../../www/download.html">Download</a>
113 <div class="sep"></div>
\r
115 <a title="Search" href="../http://www.imagemagick.org/script/search.php">Search</a>
117 <div class="sep"></div>
\r
119 <a title="Site Map"href="../../www/sitemap.html">Site Map</a>
122 <a title="Site Map: Links"href="../../www/links.html">Links</a>
124 <div class="sep"></div>
\r
126 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
128 <div class="sponsbox">
129 <div class="sponsor">
130 <a title="Sponsor: Webdesign" href="http://www.renehornig.com/">Webdesign</a><!-- 20111001000240 -->
132 <div class="sponsor">
133 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
135 <div class="sponsor">
136 <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee-->
138 <div class="sponsor">
139 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
141 <div class="sponsor">
142 <a title="Sponsor: Webdesign Agentur" href="http://www.ventzke-partner.de">Webdesign Agentur</a><!-- 201101010480 invendio.de-->
144 <div class="sponsor">
145 <a title="Sponsor: LVM Versicherung" href="http://www.neu-reich.de">LVM Versicherung</a><!-- 201101010480 -->
147 <div class="sponsor">
148 <a title="Sponsor: Diamonds are a Girls Best Friend" href="http://www.schmuck.org">Diamonds are a Girls Best Friend</a><!-- 201101010600 Peterssen-->
150 <div class="sponsor">
151 <a title="Sponsor: Druckerei Online" href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012011200 allesdruck.de-->
157 <div class="eastbar">
\r
158 <script type="text/javascript">
\r
160 google_ad_client = "pub-3129977114552745";
\r
161 google_ad_slot = "0574824969";
\r
162 google_ad_width = 160;
\r
163 google_ad_height = 600;
\r
166 <script type="text/javascript"
\r
167 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
\r
173 <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>
175 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
176 _8c.html" target="source" name="ClearDrawingWand">ClearDrawingWand</a></h2>
177 <div class="doc-section">
179 <p>ClearDrawingWand() clear resources associated with the drawing wand.</p></ol>
181 <p>The format of the ClearDrawingWand method is:</p>
184 DrawingWand *ClearDrawingWand(DrawingWand *wand)
187 <p>A description of each parameter follows:</p></ol>
190 <ol><p>the drawing wand. to destroy</p></ol>
193 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
194 _8c.html" target="source" name="CloneDrawingWand">CloneDrawingWand</a></h2>
195 <div class="doc-section">
197 <p>CloneDrawingWand() makes an exact copy of the specified wand.</p></ol>
199 <p>The format of the CloneDrawingWand method is:</p>
202 DrawingWand *CloneDrawingWand(const DrawingWand *wand)
205 <p>A description of each parameter follows:</p></ol>
208 <ol><p>the magick wand.</p></ol>
211 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
212 _8c.html" target="source" name="DestroyDrawingWand">DestroyDrawingWand</a></h2>
213 <div class="doc-section">
215 <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>
217 <p>The format of the DestroyDrawingWand method is:</p>
220 DrawingWand *DestroyDrawingWand(DrawingWand *wand)
223 <p>A description of each parameter follows:</p></ol>
226 <ol><p>the drawing wand. to destroy</p></ol>
229 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
230 _8c.html" target="source" name="DrawAffine">DrawAffine</a></h2>
231 <div class="doc-section">
233 <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>
235 <p>The format of the DrawAffine method is:</p>
238 void DrawAffine(DrawingWand *wand,const AffineMatrix *affine)
241 <p>A description of each parameter follows:</p></ol>
244 <ol><p>Drawing wand</p></ol>
247 <ol><p>Affine matrix parameters</p></ol>
250 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
251 _8c.html" target="source" name="DrawAnnotation">DrawAnnotation</a></h2>
252 <div class="doc-section">
254 <p>DrawAnnotation() draws text on the image.</p></ol>
256 <p>The format of the DrawAnnotation method is:</p>
259 void DrawAnnotation(DrawingWand *wand,const double x,
260 const double y,const unsigned char *text)
263 <p>A description of each parameter follows:</p></ol>
266 <ol><p>the drawing wand.</p></ol>
269 <ol><p>x ordinate to left of text</p></ol>
272 <ol><p>y ordinate to text baseline</p></ol>
275 <ol><p>text to draw</p></ol>
278 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
279 _8c.html" target="source" name="DrawArc">DrawArc</a></h2>
280 <div class="doc-section">
282 <p>DrawArc() draws an arc falling within a specified bounding rectangle on the image.</p></ol>
284 <p>The format of the DrawArc method is:</p>
287 void DrawArc(DrawingWand *wand,const double sx,const double sy,
288 const double ex,const double ey,const double sd,const double ed)
291 <p>A description of each parameter follows:</p></ol>
294 <ol><p>the drawing wand.</p></ol>
297 <ol><p>starting x ordinate of bounding rectangle</p></ol>
300 <ol><p>starting y ordinate of bounding rectangle</p></ol>
303 <ol><p>ending x ordinate of bounding rectangle</p></ol>
306 <ol><p>ending y ordinate of bounding rectangle</p></ol>
309 <ol><p>starting degrees of rotation</p></ol>
312 <ol><p>ending degrees of rotation</p></ol>
315 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
316 _8c.html" target="source" name="DrawBezier">DrawBezier</a></h2>
317 <div class="doc-section">
319 <p>DrawBezier() draws a bezier curve through a set of points on the image.</p></ol>
321 <p>The format of the DrawBezier method is:</p>
324 void DrawBezier(DrawingWand *wand,
325 const size_t number_coordinates,const PointInfo *coordinates)
328 <p>A description of each parameter follows:</p></ol>
331 <ol><p>the drawing wand.</p></ol>
333 <h5>number_coordinates</h5>
334 <ol><p>number of coordinates</p></ol>
337 <ol><p>coordinates</p></ol>
340 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
341 _8c.html" target="source" name="DrawCircle">DrawCircle</a></h2>
342 <div class="doc-section">
344 <p>DrawCircle() draws a circle on the image.</p></ol>
346 <p>The format of the DrawCircle method is:</p>
349 void DrawCircle(DrawingWand *wand,const double ox,
350 const double oy,const double px, const double py)
353 <p>A description of each parameter follows:</p></ol>
356 <ol><p>the drawing wand.</p></ol>
359 <ol><p>origin x ordinate</p></ol>
362 <ol><p>origin y ordinate</p></ol>
365 <ol><p>perimeter x ordinate</p></ol>
368 <ol><p>perimeter y ordinate</p></ol>
371 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
372 _8c.html" target="source" name="DrawClearException">DrawClearException</a></h2>
373 <div class="doc-section">
375 <p>DrawClearException() clear any exceptions associated with the wand.</p></ol>
377 <p>The format of the DrawClearException method is:</p>
380 MagickBooleanType DrawClearException(DrawWand *wand)
383 <p>A description of each parameter follows:</p></ol>
386 <ol><p>the drawing wand.</p></ol>
389 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
390 _8c.html" target="source" name="DrawComposite">DrawComposite</a></h2>
391 <div class="doc-section">
393 <p>DrawComposite() composites an image onto the current image, using the specified composition operator, specified position, and at the specified size.</p></ol>
395 <p>The format of the DrawComposite method is:</p>
398 MagickBooleanType DrawComposite(DrawingWand *wand,
399 const CompositeOperator compose,const double x,
400 const double y,const double width,const double height,
401 MagickWand *magick_wand)
404 <p>A description of each parameter follows:</p></ol>
407 <ol><p>the drawing wand.</p></ol>
410 <ol><p>composition operator</p></ol>
413 <ol><p>x ordinate of top left corner</p></ol>
416 <ol><p>y ordinate of top left corner</p></ol>
419 <ol><p>Width to resize image to prior to compositing. Specify zero to use existing width.</p></ol>
422 <ol><p>Height to resize image to prior to compositing. Specify zero to use existing height.</p></ol>
425 <ol><p>Image to composite is obtained from this wand.</p></ol>
428 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
429 _8c.html" target="source" name="DrawColor">DrawColor</a></h2>
430 <div class="doc-section">
432 <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>
435 PointMethod: Recolors the target pixel
436 ReplaceMethod: Recolor any pixel that matches the target pixel.
437 FloodfillMethod: Recolors target pixels and matching neighbors.
438 ResetMethod: Recolor all pixels.
441 <p>The format of the DrawColor method is:</p>
444 void DrawColor(DrawingWand *wand,const double x,const double y,
445 const PaintMethod paint_method)
448 <p>A description of each parameter follows:</p></ol>
451 <ol><p>the drawing wand.</p></ol>
454 <ol><p>x ordinate.</p></ol>
457 <ol><p>y ordinate.</p></ol>
459 <h5>paint_method</h5>
460 <ol><p>paint method.</p></ol>
463 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
464 _8c.html" target="source" name="DrawComment">DrawComment</a></h2>
465 <div class="doc-section">
467 <p>DrawComment() adds a comment to a vector output stream.</p></ol>
469 <p>The format of the DrawComment method is:</p>
472 void DrawComment(DrawingWand *wand,const char *comment)
475 <p>A description of each parameter follows:</p></ol>
478 <ol><p>the drawing wand.</p></ol>
481 <ol><p>comment text</p></ol>
484 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
485 _8c.html" target="source" name="DrawEllipse">DrawEllipse</a></h2>
486 <div class="doc-section">
488 <p>DrawEllipse() draws an ellipse on the image.</p></ol>
490 <p>The format of the DrawEllipse method is:</p>
493 void DrawEllipse(DrawingWand *wand,const double ox,const double oy,
494 const double rx,const double ry,const double start,const double end)
497 <p>A description of each parameter follows:</p></ol>
500 <ol><p>the drawing wand.</p></ol>
503 <ol><p>origin x ordinate</p></ol>
506 <ol><p>origin y ordinate</p></ol>
509 <ol><p>radius in x</p></ol>
512 <ol><p>radius in y</p></ol>
515 <ol><p>starting rotation in degrees</p></ol>
518 <ol><p>ending rotation in degrees</p></ol>
521 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
522 _8c.html" target="source" name="DrawGetBorderColor">DrawGetBorderColor</a></h2>
523 <div class="doc-section">
525 <p>DrawGetBorderColor() returns the border color used for drawing bordered objects.</p></ol>
527 <p>The format of the DrawGetBorderColor method is:</p>
530 void DrawGetBorderColor(const DrawingWand *wand,
531 PixelWand *border_color)
534 <p>A description of each parameter follows:</p></ol>
537 <ol><p>the drawing wand.</p></ol>
539 <h5>border_color</h5>
540 <ol><p>Return the border color.</p></ol>
543 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
544 _8c.html" target="source" name="DrawGetClipPath">DrawGetClipPath</a></h2>
545 <div class="doc-section">
547 <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>
549 <p>The format of the DrawGetClipPath method is:</p>
552 char *DrawGetClipPath(const DrawingWand *wand)
555 <p>A description of each parameter follows:</p></ol>
558 <ol><p>the drawing wand.</p></ol>
561 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
562 _8c.html" target="source" name="DrawGetClipRule">DrawGetClipRule</a></h2>
563 <div class="doc-section">
565 <p>DrawGetClipRule() returns the current polygon fill rule to be used by the clipping path.</p></ol>
567 <p>The format of the DrawGetClipRule method is:</p>
570 FillRule DrawGetClipRule(const DrawingWand *wand)
573 <p>A description of each parameter follows:</p></ol>
576 <ol><p>the drawing wand.</p></ol>
579 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
580 _8c.html" target="source" name="DrawGetClipUnits">DrawGetClipUnits</a></h2>
581 <div class="doc-section">
583 <p>DrawGetClipUnits() returns the interpretation of clip path units.</p></ol>
585 <p>The format of the DrawGetClipUnits method is:</p>
588 ClipPathUnits DrawGetClipUnits(const DrawingWand *wand)
591 <p>A description of each parameter follows:</p></ol>
594 <ol><p>the drawing wand.</p></ol>
597 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
598 _8c.html" target="source" name="DrawGetException">DrawGetException</a></h2>
599 <div class="doc-section">
601 <p>DrawGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p></ol>
603 <p>The format of the DrawGetException method is:</p>
606 char *DrawGetException(const DrawWand *wand,
607 ExceptionType *severity)
610 <p>A description of each parameter follows:</p></ol>
613 <ol><p>the drawing wand.</p></ol>
616 <ol><p>the severity of the error is returned here.</p></ol>
619 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
620 _8c.html" target="source" name="DrawGetExceptionType">DrawGetExceptionType</a></h2>
621 <div class="doc-section">
623 <p>DrawGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p></ol>
625 <p>The format of the DrawGetExceptionType method is:</p>
628 ExceptionType DrawGetExceptionType(const DrawWand *wand)
631 <p>A description of each parameter follows:</p></ol>
634 <ol><p>the magick wand.</p></ol>
637 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
638 _8c.html" target="source" name="DrawGetFillColor">DrawGetFillColor</a></h2>
639 <div class="doc-section">
641 <p>DrawGetFillColor() returns the fill color used for drawing filled objects.</p></ol>
643 <p>The format of the DrawGetFillColor method is:</p>
646 void DrawGetFillColor(const DrawingWand *wand,
647 PixelWand *fill_color)
650 <p>A description of each parameter follows:</p></ol>
653 <ol><p>the drawing wand.</p></ol>
656 <ol><p>Return the fill color.</p></ol>
659 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
660 _8c.html" target="source" name="DrawGetFillOpacity">DrawGetFillOpacity</a></h2>
661 <div class="doc-section">
663 <p>DrawGetFillOpacity() returns the opacity used when drawing using the fill color or fill texture. Fully opaque is 1.0.</p></ol>
665 <p>The format of the DrawGetFillOpacity method is:</p>
668 double DrawGetFillOpacity(const DrawingWand *wand)
671 <p>A description of each parameter follows:</p></ol>
674 <ol><p>the drawing wand.</p></ol>
677 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
678 _8c.html" target="source" name="DrawGetFillRule">DrawGetFillRule</a></h2>
679 <div class="doc-section">
681 <p>DrawGetFillRule() returns the fill rule used while drawing polygons.</p></ol>
683 <p>The format of the DrawGetFillRule method is:</p>
686 FillRule DrawGetFillRule(const DrawingWand *wand)
689 <p>A description of each parameter follows:</p></ol>
692 <ol><p>the drawing wand.</p></ol>
695 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
696 _8c.html" target="source" name="DrawGetFont">DrawGetFont</a></h2>
697 <div class="doc-section">
699 <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>
701 <p>The format of the DrawGetFont method is:</p>
704 char *DrawGetFont(const DrawingWand *wand)
707 <p>A description of each parameter follows:</p></ol>
710 <ol><p>the drawing wand.</p></ol>
713 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
714 _8c.html" target="source" name="DrawGetFontFamily">DrawGetFontFamily</a></h2>
715 <div class="doc-section">
717 <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>
719 <p>The format of the DrawGetFontFamily method is:</p>
722 char *DrawGetFontFamily(const DrawingWand *wand)
725 <p>A description of each parameter follows:</p></ol>
728 <ol><p>the drawing wand.</p></ol>
731 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
732 _8c.html" target="source" name="DrawGetFontSize">DrawGetFontSize</a></h2>
733 <div class="doc-section">
735 <p>DrawGetFontSize() returns the font pointsize used when annotating with text.</p></ol>
737 <p>The format of the DrawGetFontSize method is:</p>
740 double DrawGetFontSize(const DrawingWand *wand)
743 <p>A description of each parameter follows:</p></ol>
746 <ol><p>the drawing wand.</p></ol>
749 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
750 _8c.html" target="source" name="DrawGetFontStretch">DrawGetFontStretch</a></h2>
751 <div class="doc-section">
753 <p>DrawGetFontStretch() returns the font stretch used when annotating with text.</p></ol>
755 <p>The format of the DrawGetFontStretch method is:</p>
758 StretchType DrawGetFontStretch(const DrawingWand *wand)
761 <p>A description of each parameter follows:</p></ol>
764 <ol><p>the drawing wand.</p></ol>
767 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
768 _8c.html" target="source" name="DrawGetFontStyle">DrawGetFontStyle</a></h2>
769 <div class="doc-section">
771 <p>DrawGetFontStyle() returns the font style used when annotating with text.</p></ol>
773 <p>The format of the DrawGetFontStyle method is:</p>
776 StyleType DrawGetFontStyle(const DrawingWand *wand)
779 <p>A description of each parameter follows:</p></ol>
782 <ol><p>the drawing wand.</p></ol>
785 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
786 _8c.html" target="source" name="DrawGetFontWeight">DrawGetFontWeight</a></h2>
787 <div class="doc-section">
789 <p>DrawGetFontWeight() returns the font weight used when annotating with text.</p></ol>
791 <p>The format of the DrawGetFontWeight method is:</p>
794 size_t DrawGetFontWeight(const DrawingWand *wand)
797 <p>A description of each parameter follows:</p></ol>
800 <ol><p>the drawing wand.</p></ol>
803 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
804 _8c.html" target="source" name="DrawGetGravity">DrawGetGravity</a></h2>
805 <div class="doc-section">
807 <p>DrawGetGravity() returns the text placement gravity used when annotating with text.</p></ol>
809 <p>The format of the DrawGetGravity method is:</p>
812 GravityType DrawGetGravity(const DrawingWand *wand)
815 <p>A description of each parameter follows:</p></ol>
818 <ol><p>the drawing wand.</p></ol>
821 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
822 _8c.html" target="source" name="DrawGetOpacity">DrawGetOpacity</a></h2>
823 <div class="doc-section">
825 <p>DrawGetOpacity() returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.</p></ol>
827 <p>The format of the DrawGetOpacity method is:</p>
830 double DrawGetOpacity(const DrawingWand *wand)
833 <p>A description of each parameter follows:</p></ol>
836 <ol><p>the drawing wand.</p></ol>
839 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
840 _8c.html" target="source" name="DrawGetStrokeAntialias">DrawGetStrokeAntialias</a></h2>
841 <div class="doc-section">
843 <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>
845 <p>The format of the DrawGetStrokeAntialias method is:</p>
848 MagickBooleanType DrawGetStrokeAntialias(const DrawingWand *wand)
851 <p>A description of each parameter follows:</p></ol>
854 <ol><p>the drawing wand.</p></ol>
857 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
858 _8c.html" target="source" name="DrawGetStrokeColor">DrawGetStrokeColor</a></h2>
859 <div class="doc-section">
861 <p>DrawGetStrokeColor() returns the color used for stroking object outlines.</p></ol>
863 <p>The format of the DrawGetStrokeColor method is:</p>
866 void DrawGetStrokeColor(const DrawingWand *wand,
867 $ PixelWand *stroke_color)
870 <p>A description of each parameter follows:</p></ol>
873 <ol><p>the drawing wand.</p></ol>
875 <h5>stroke_color</h5>
876 <ol><p>Return the stroke color.</p></ol>
879 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
880 _8c.html" target="source" name="DrawGetStrokeDashArray">DrawGetStrokeDashArray</a></h2>
881 <div class="doc-section">
883 <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>
885 <p>The format of the DrawGetStrokeDashArray method is:</p>
888 double *DrawGetStrokeDashArray(const DrawingWand *wand,
889 size_t *number_elements)
892 <p>A description of each parameter follows:</p></ol>
895 <ol><p>the drawing wand.</p></ol>
897 <h5>number_elements</h5>
898 <ol><p>address to place number of elements in dash array</p></ol>
901 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
902 _8c.html" target="source" name="DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a></h2>
903 <div class="doc-section">
905 <p>DrawGetStrokeDashOffset() returns the offset into the dash pattern to start the dash.</p></ol>
907 <p>The format of the DrawGetStrokeDashOffset method is:</p>
910 double DrawGetStrokeDashOffset(const DrawingWand *wand)
913 <p>A description of each parameter follows:</p></ol>
916 <ol><p>the drawing wand.</p></ol>
919 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
920 _8c.html" target="source" name="DrawGetStrokeLineCap">DrawGetStrokeLineCap</a></h2>
921 <div class="doc-section">
923 <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>
925 <p>The format of the DrawGetStrokeLineCap method is:</p>
928 LineCap DrawGetStrokeLineCap(const DrawingWand *wand)
931 <p>A description of each parameter follows:</p></ol>
934 <ol><p>the drawing wand.</p></ol>
937 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
938 _8c.html" target="source" name="DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a></h2>
939 <div class="doc-section">
941 <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>
943 <p>The format of the DrawGetStrokeLineJoin method is:</p>
946 LineJoin DrawGetStrokeLineJoin(const DrawingWand *wand)
949 <p>A description of each parameter follows:</p></ol>
952 <ol><p>the drawing wand.</p></ol>
955 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
956 _8c.html" target="source" name="DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a></h2>
957 <div class="doc-section">
959 <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>
961 <p>The format of the DrawGetStrokeMiterLimit method is:</p>
964 size_t DrawGetStrokeMiterLimit(const DrawingWand *wand)
967 <p>A description of each parameter follows:</p></ol>
970 <ol><p>the drawing wand.</p></ol>
973 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
974 _8c.html" target="source" name="DrawGetStrokeOpacity">DrawGetStrokeOpacity</a></h2>
975 <div class="doc-section">
977 <p>DrawGetStrokeOpacity() returns the opacity of stroked object outlines.</p></ol>
979 <p>The format of the DrawGetStrokeOpacity method is:</p>
982 double DrawGetStrokeOpacity(const DrawingWand *wand)
985 <p>A description of each parameter follows:</p></ol>
988 <ol><p>the drawing wand.</p></ol>
991 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
992 _8c.html" target="source" name="DrawGetStrokeWidth">DrawGetStrokeWidth</a></h2>
993 <div class="doc-section">
995 <p>DrawGetStrokeWidth() returns the width of the stroke used to draw object outlines.</p></ol>
997 <p>The format of the DrawGetStrokeWidth method is:</p>
1000 double DrawGetStrokeWidth(const DrawingWand *wand)
1003 <p>A description of each parameter follows:</p></ol>
1006 <ol><p>the drawing wand.</p></ol>
1009 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1010 _8c.html" target="source" name="DrawGetTextAlignment">DrawGetTextAlignment</a></h2>
1011 <div class="doc-section">
1013 <p>DrawGetTextAlignment() returns the alignment applied when annotating with text.</p></ol>
1015 <p>The format of the DrawGetTextAlignment method is:</p>
1018 AlignType DrawGetTextAlignment(DrawingWand *wand)
1021 <p>A description of each parameter follows:</p></ol>
1024 <ol><p>the drawing wand.</p></ol>
1027 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1028 _8c.html" target="source" name="DrawGetTextAntialias">DrawGetTextAntialias</a></h2>
1029 <div class="doc-section">
1031 <p>DrawGetTextAntialias() returns the current text antialias setting, which determines whether text is antialiased. Text is antialiased by default.</p></ol>
1033 <p>The format of the DrawGetTextAntialias method is:</p>
1036 MagickBooleanType DrawGetTextAntialias(const DrawingWand *wand)
1039 <p>A description of each parameter follows:</p></ol>
1042 <ol><p>the drawing wand.</p></ol>
1045 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1046 _8c.html" target="source" name="DrawGetTextDecoration">DrawGetTextDecoration</a></h2>
1047 <div class="doc-section">
1049 <p>DrawGetTextDecoration() returns the decoration applied when annotating with text.</p></ol>
1051 <p>The format of the DrawGetTextDecoration method is:</p>
1054 DecorationType DrawGetTextDecoration(DrawingWand *wand)
1057 <p>A description of each parameter follows:</p></ol>
1060 <ol><p>the drawing wand.</p></ol>
1063 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1064 _8c.html" target="source" name="DrawGetTextEncoding">DrawGetTextEncoding</a></h2>
1065 <div class="doc-section">
1067 <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>
1069 <p>The format of the DrawGetTextEncoding method is:</p>
1072 char *DrawGetTextEncoding(const DrawingWand *wand)
1075 <p>A description of each parameter follows:</p></ol>
1078 <ol><p>the drawing wand.</p></ol>
1081 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1082 _8c.html" target="source" name="DrawGetTextKerning">DrawGetTextKerning</a></h2>
1083 <div class="doc-section">
1085 <p>DrawGetTextKerning() gets the spacing between characters in text.</p></ol>
1087 <p>The format of the DrawSetFontKerning method is:</p>
1090 double DrawGetTextKerning(DrawingWand *wand)
1093 <p>A description of each parameter follows:</p></ol>
1096 <ol><p>the drawing wand.</p></ol>
1099 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1100 _8c.html" target="source" name="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
1101 <div class="doc-section">
1103 <p>DrawGetTextInterwordSpacing() gets the spacing between lines in text.</p></ol>
1105 <p>The format of the DrawSetFontKerning method is:</p>
1108 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1111 <p>A description of each parameter follows:</p></ol>
1114 <ol><p>the drawing wand.</p></ol>
1117 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1118 _8c.html" target="source" name="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
1119 <div class="doc-section">
1121 <p>DrawGetTextInterwordSpacing() gets the spacing between words in text.</p></ol>
1123 <p>The format of the DrawSetFontKerning method is:</p>
1126 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1129 <p>A description of each parameter follows:</p></ol>
1132 <ol><p>the drawing wand.</p></ol>
1135 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1136 _8c.html" target="source" name="DrawGetVectorGraphics">DrawGetVectorGraphics</a></h2>
1137 <div class="doc-section">
1139 <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>
1141 <p>The format of the DrawGetVectorGraphics method is:</p>
1144 char *DrawGetVectorGraphics(const DrawingWand *wand)
1147 <p>A description of each parameter follows:</p></ol>
1150 <ol><p>the drawing wand.</p></ol>
1153 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1154 _8c.html" target="source" name="DrawGetTextUnderColor">DrawGetTextUnderColor</a></h2>
1155 <div class="doc-section">
1157 <p>DrawGetTextUnderColor() returns the color of a background rectangle to place under text annotations.</p></ol>
1159 <p>The format of the DrawGetTextUnderColor method is:</p>
1162 void DrawGetTextUnderColor(const DrawingWand *wand,
1163 PixelWand *under_color)
1166 <p>A description of each parameter follows:</p></ol>
1169 <ol><p>the drawing wand.</p></ol>
1171 <h5>under_color</h5>
1172 <ol><p>Return the under color.</p></ol>
1175 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1176 _8c.html" target="source" name="DrawLine">DrawLine</a></h2>
1177 <div class="doc-section">
1179 <p>DrawLine() draws a line on the image using the current stroke color, stroke opacity, and stroke width.</p></ol>
1181 <p>The format of the DrawLine method is:</p>
1184 void DrawLine(DrawingWand *wand,const double sx,const double sy,
1185 const double ex,const double ey)
1188 <p>A description of each parameter follows:</p></ol>
1191 <ol><p>the drawing wand.</p></ol>
1194 <ol><p>starting x ordinate</p></ol>
1197 <ol><p>starting y ordinate</p></ol>
1200 <ol><p>ending x ordinate</p></ol>
1203 <ol><p>ending y ordinate</p></ol>
1206 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1207 _8c.html" target="source" name="DrawMatte">DrawMatte</a></h2>
1208 <div class="doc-section">
1210 <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>
1213 PointMethod: Select the target pixel
1214 ReplaceMethod: Select any pixel that matches the target pixel.
1215 FloodfillMethod: Select the target pixel and matching neighbors.
1216 FillToBorderMethod: Select the target pixel and neighbors not matching
1218 ResetMethod: Select all pixels.
1221 <p>The format of the DrawMatte method is:</p>
1224 void DrawMatte(DrawingWand *wand,const double x,const double y,
1225 const PaintMethod paint_method)
1228 <p>A description of each parameter follows:</p></ol>
1231 <ol><p>the drawing wand.</p></ol>
1234 <ol><p>x ordinate</p></ol>
1237 <ol><p>y ordinate</p></ol>
1239 <h5>paint_method</h5>
1240 <ol><p>paint method.</p></ol>
1243 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1244 _8c.html" target="source" name="DrawPathClose">DrawPathClose</a></h2>
1245 <div class="doc-section">
1247 <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>
1249 <p>The format of the DrawPathClose method is:</p>
1252 void DrawPathClose(DrawingWand *wand)
1255 <p>A description of each parameter follows:</p></ol>
1258 <ol><p>the drawing wand.</p></ol>
1261 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1262 _8c.html" target="source" name="DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a></h2>
1263 <div class="doc-section">
1265 <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>
1267 <p>The format of the DrawPathCurveToAbsolute method is:</p>
1270 void DrawPathCurveToAbsolute(DrawingWand *wand,const double x1,
1271 const double y1,const double x2,const double y2,const double x,
1275 <p>A description of each parameter follows:</p></ol>
1278 <ol><p>the drawing wand.</p></ol>
1281 <ol><p>x ordinate of control point for curve beginning</p></ol>
1284 <ol><p>y ordinate of control point for curve beginning</p></ol>
1287 <ol><p>x ordinate of control point for curve ending</p></ol>
1290 <ol><p>y ordinate of control point for curve ending</p></ol>
1293 <ol><p>x ordinate of the end of the curve</p></ol>
1296 <ol><p>y ordinate of the end of the curve</p></ol>
1299 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1300 _8c.html" target="source" name="DrawPathCurveToRelative">DrawPathCurveToRelative</a></h2>
1301 <div class="doc-section">
1303 <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>
1305 <p>The format of the DrawPathCurveToRelative method is:</p>
1308 void DrawPathCurveToRelative(DrawingWand *wand,const double x1,
1309 const double y1,const double x2,const double y2,const double x,
1313 <p>A description of each parameter follows:</p></ol>
1316 <ol><p>the drawing wand.</p></ol>
1319 <ol><p>x ordinate of control point for curve beginning</p></ol>
1322 <ol><p>y ordinate of control point for curve beginning</p></ol>
1325 <ol><p>x ordinate of control point for curve ending</p></ol>
1328 <ol><p>y ordinate of control point for curve ending</p></ol>
1331 <ol><p>x ordinate of the end of the curve</p></ol>
1334 <ol><p>y ordinate of the end of the curve</p></ol>
1337 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1338 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a></h2>
1339 <div class="doc-section">
1341 <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>
1343 <p>The format of the DrawPathCurveToQuadraticBezierAbsolute method is:</p>
1346 void DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *wand,
1347 const double x1,const double y1,onst double x,const double y)
1350 <p>A description of each parameter follows:</p></ol>
1353 <ol><p>the drawing wand.</p></ol>
1356 <ol><p>x ordinate of the control point</p></ol>
1359 <ol><p>y ordinate of the control point</p></ol>
1362 <ol><p>x ordinate of final point</p></ol>
1365 <ol><p>y ordinate of final point</p></ol>
1368 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1369 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a></h2>
1370 <div class="doc-section">
1372 <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>
1374 <p>The format of the DrawPathCurveToQuadraticBezierRelative method is:</p>
1377 void DrawPathCurveToQuadraticBezierRelative(DrawingWand *wand,
1378 const double x1,const double y1,const double x,const double y)
1381 <p>A description of each parameter follows:</p></ol>
1384 <ol><p>the drawing wand.</p></ol>
1387 <ol><p>x ordinate of the control point</p></ol>
1390 <ol><p>y ordinate of the control point</p></ol>
1393 <ol><p>x ordinate of final point</p></ol>
1396 <ol><p>y ordinate of final point</p></ol>
1399 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1400 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
1401 <div class="doc-section">
1403 <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>
1405 <p>The format of the DrawPathCurveToQuadraticBezierSmoothAbsolute method is:</p>
1408 void DrawPathCurveToQuadraticBezierSmoothAbsolute(
1409 DrawingWand *wand,const double x,const double y)
1412 <p>A description of each parameter follows:</p></ol>
1415 <ol><p>the drawing wand.</p></ol>
1418 <ol><p>x ordinate of final point</p></ol>
1421 <ol><p>y ordinate of final point</p></ol>
1424 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1425 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
1426 <div class="doc-section">
1428 <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>
1430 <p>The format of the DrawPathCurveToQuadraticBezierSmoothRelative method is:</p>
1433 void DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *wand,
1434 const double x,const double y)
1437 <p>A description of each parameter follows:</p></ol>
1440 <ol><p>the drawing wand.</p></ol>
1443 <ol><p>x ordinate of final point</p></ol>
1446 <ol><p>y ordinate of final point</p></ol>
1449 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1450 _8c.html" target="source" name="DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a></h2>
1451 <div class="doc-section">
1453 <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>
1455 <p>The format of the DrawPathCurveToSmoothAbsolute method is:</p>
1458 void DrawPathCurveToSmoothAbsolute(DrawingWand *wand,
1459 const double x2const double y2,const double x,const double y)
1462 <p>A description of each parameter follows:</p></ol>
1465 <ol><p>the drawing wand.</p></ol>
1468 <ol><p>x ordinate of second control point</p></ol>
1471 <ol><p>y ordinate of second control point</p></ol>
1474 <ol><p>x ordinate of termination point</p></ol>
1477 <ol><p>y ordinate of termination point</p></ol>
1480 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1481 _8c.html" target="source" name="DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a></h2>
1482 <div class="doc-section">
1484 <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>
1486 <p>The format of the DrawPathCurveToSmoothRelative method is:</p>
1489 void DrawPathCurveToSmoothRelative(DrawingWand *wand,
1490 const double x2,const double y2,const double x,const double y)
1493 <p>A description of each parameter follows:</p></ol>
1496 <ol><p>the drawing wand.</p></ol>
1499 <ol><p>x ordinate of second control point</p></ol>
1502 <ol><p>y ordinate of second control point</p></ol>
1505 <ol><p>x ordinate of termination point</p></ol>
1508 <ol><p>y ordinate of termination point</p></ol>
1511 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1512 _8c.html" target="source" name="DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a></h2>
1513 <div class="doc-section">
1515 <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>
1517 <p>The format of the DrawPathEllipticArcAbsolute method is:</p>
1520 void DrawPathEllipticArcAbsolute(DrawingWand *wand,
1521 const double rx,const double ry,const double x_axis_rotation,
1522 const MagickBooleanType large_arc_flag,
1523 const MagickBooleanType sweep_flag,const double x,const double y)
1526 <p>A description of each parameter follows:</p></ol>
1529 <ol><p>the drawing wand.</p></ol>
1532 <ol><p>x radius</p></ol>
1535 <ol><p>y radius</p></ol>
1537 <h5>x_axis_rotation</h5>
1538 <ol><p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p></ol>
1540 <h5>large_arc_flag</h5>
1541 <ol><p>If non-zero (true) then draw the larger of the available arcs</p></ol>
1544 <ol><p>If non-zero (true) then draw the arc matching a clock-wise rotation</p></ol>
1548 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1549 _8c.html" target="source" name="DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a></h2>
1550 <div class="doc-section">
1552 <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>
1554 <p>The format of the DrawPathEllipticArcRelative method is:</p>
1557 void DrawPathEllipticArcRelative(DrawingWand *wand,
1558 const double rx,const double ry,const double x_axis_rotation,
1559 const MagickBooleanType large_arc_flag,
1560 const MagickBooleanType sweep_flag,const double x,const double y)
1563 <p>A description of each parameter follows:</p></ol>
1566 <ol><p>the drawing wand.</p></ol>
1569 <ol><p>x radius</p></ol>
1572 <ol><p>y radius</p></ol>
1574 <h5>x_axis_rotation</h5>
1575 <ol><p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p></ol>
1577 <h5>large_arc_flag</h5>
1578 <ol><p>If non-zero (true) then draw the larger of the available arcs</p></ol>
1581 <ol><p>If non-zero (true) then draw the arc matching a clock-wise rotation</p></ol>
1584 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1585 _8c.html" target="source" name="DrawPathFinish">DrawPathFinish</a></h2>
1586 <div class="doc-section">
1588 <p>DrawPathFinish() terminates the current path.</p></ol>
1590 <p>The format of the DrawPathFinish method is:</p>
1593 void DrawPathFinish(DrawingWand *wand)
1596 <p>A description of each parameter follows:</p></ol>
1599 <ol><p>the drawing wand.</p></ol>
1602 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1603 _8c.html" target="source" name="DrawPathLineToAbsolute">DrawPathLineToAbsolute</a></h2>
1604 <div class="doc-section">
1606 <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>
1608 <p>The format of the DrawPathLineToAbsolute method is:</p>
1611 void DrawPathLineToAbsolute(DrawingWand *wand,const double x,
1615 <p>A description of each parameter follows:</p></ol>
1618 <ol><p>the drawing wand.</p></ol>
1621 <ol><p>target x ordinate</p></ol>
1624 <ol><p>target y ordinate</p></ol>
1627 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1628 _8c.html" target="source" name="DrawPathLineToRelative">DrawPathLineToRelative</a></h2>
1629 <div class="doc-section">
1631 <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>
1633 <p>The format of the DrawPathLineToRelative method is:</p>
1636 void DrawPathLineToRelative(DrawingWand *wand,const double x,
1640 <p>A description of each parameter follows:</p></ol>
1643 <ol><p>the drawing wand.</p></ol>
1646 <ol><p>target x ordinate</p></ol>
1649 <ol><p>target y ordinate</p></ol>
1652 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1653 _8c.html" target="source" name="DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a></h2>
1654 <div class="doc-section">
1656 <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>
1658 <p>The format of the DrawPathLineToHorizontalAbsolute method is:</p>
1661 void DrawPathLineToHorizontalAbsolute(DrawingWand *wand,
1662 const PathMode mode,const double x)
1665 <p>A description of each parameter follows:</p></ol>
1668 <ol><p>the drawing wand.</p></ol>
1671 <ol><p>target x ordinate</p></ol>
1674 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1675 _8c.html" target="source" name="DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a></h2>
1676 <div class="doc-section">
1678 <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>
1680 <p>The format of the DrawPathLineToHorizontalRelative method is:</p>
1683 void DrawPathLineToHorizontalRelative(DrawingWand *wand,
1687 <p>A description of each parameter follows:</p></ol>
1690 <ol><p>the drawing wand.</p></ol>
1693 <ol><p>target x ordinate</p></ol>
1696 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1697 _8c.html" target="source" name="DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a></h2>
1698 <div class="doc-section">
1700 <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>
1702 <p>The format of the DrawPathLineToVerticalAbsolute method is:</p>
1705 void DrawPathLineToVerticalAbsolute(DrawingWand *wand,
1709 <p>A description of each parameter follows:</p></ol>
1712 <ol><p>the drawing wand.</p></ol>
1715 <ol><p>target y ordinate</p></ol>
1718 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1719 _8c.html" target="source" name="DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a></h2>
1720 <div class="doc-section">
1722 <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>
1724 <p>The format of the DrawPathLineToVerticalRelative method is:</p>
1727 void DrawPathLineToVerticalRelative(DrawingWand *wand,
1731 <p>A description of each parameter follows:</p></ol>
1734 <ol><p>the drawing wand.</p></ol>
1737 <ol><p>target y ordinate</p></ol>
1740 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1741 _8c.html" target="source" name="DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a></h2>
1742 <div class="doc-section">
1744 <p>DrawPathMoveToAbsolute() starts a new sub-path at the given coordinate using absolute coordinates. The current point then becomes the specified coordinate.</p></ol>
1746 <p>The format of the DrawPathMoveToAbsolute method is:</p>
1749 void DrawPathMoveToAbsolute(DrawingWand *wand,const double x,
1753 <p>A description of each parameter follows:</p></ol>
1756 <ol><p>the drawing wand.</p></ol>
1759 <ol><p>target x ordinate</p></ol>
1762 <ol><p>target y ordinate</p></ol>
1765 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1766 _8c.html" target="source" name="DrawPathMoveToRelative">DrawPathMoveToRelative</a></h2>
1767 <div class="doc-section">
1769 <p>DrawPathMoveToRelative() starts a new sub-path at the given coordinate using relative coordinates. The current point then becomes the specified coordinate.</p></ol>
1771 <p>The format of the DrawPathMoveToRelative method is:</p>
1774 void DrawPathMoveToRelative(DrawingWand *wand,const double x,
1778 <p>A description of each parameter follows:</p></ol>
1781 <ol><p>the drawing wand.</p></ol>
1784 <ol><p>target x ordinate</p></ol>
1787 <ol><p>target y ordinate</p></ol>
1790 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1791 _8c.html" target="source" name="DrawPathStart">DrawPathStart</a></h2>
1792 <div class="doc-section">
1794 <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>
1796 <p>The format of the DrawPathStart method is:</p>
1799 void DrawPathStart(DrawingWand *wand)
1802 <p>A description of each parameter follows:</p></ol>
1805 <ol><p>the drawing wand.</p></ol>
1808 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1809 _8c.html" target="source" name="DrawPoint">DrawPoint</a></h2>
1810 <div class="doc-section">
1812 <p>DrawPoint() draws a point using the current fill color.</p></ol>
1814 <p>The format of the DrawPoint method is:</p>
1817 void DrawPoint(DrawingWand *wand,const double x,const double y)
1820 <p>A description of each parameter follows:</p></ol>
1823 <ol><p>the drawing wand.</p></ol>
1826 <ol><p>target x coordinate</p></ol>
1829 <ol><p>target y coordinate</p></ol>
1832 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1833 _8c.html" target="source" name="DrawPolygon">DrawPolygon</a></h2>
1834 <div class="doc-section">
1836 <p>DrawPolygon() draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p></ol>
1838 <p>The format of the DrawPolygon method is:</p>
1841 void DrawPolygon(DrawingWand *wand,
1842 const size_t number_coordinates,const PointInfo *coordinates)
1845 <p>A description of each parameter follows:</p></ol>
1848 <ol><p>the drawing wand.</p></ol>
1850 <h5>number_coordinates</h5>
1851 <ol><p>number of coordinates</p></ol>
1853 <h5>coordinates</h5>
1854 <ol><p>coordinate array</p></ol>
1857 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1858 _8c.html" target="source" name="DrawPolyline">DrawPolyline</a></h2>
1859 <div class="doc-section">
1861 <p>DrawPolyline() draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p></ol>
1863 <p>The format of the DrawPolyline method is:</p>
1866 void DrawPolyline(DrawingWand *wand,
1867 const size_t number_coordinates,const PointInfo *coordinates)
1870 <p>A description of each parameter follows:</p></ol>
1873 <ol><p>the drawing wand.</p></ol>
1875 <h5>number_coordinates</h5>
1876 <ol><p>number of coordinates</p></ol>
1878 <h5>coordinates</h5>
1879 <ol><p>coordinate array</p></ol>
1882 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1883 _8c.html" target="source" name="DrawPopClipPath">DrawPopClipPath</a></h2>
1884 <div class="doc-section">
1886 <p>DrawPopClipPath() terminates a clip path definition.</p></ol>
1888 <p>The format of the DrawPopClipPath method is:</p>
1891 void DrawPopClipPath(DrawingWand *wand)
1894 <p>A description of each parameter follows:</p></ol>
1897 <ol><p>the drawing wand.</p></ol>
1900 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1901 _8c.html" target="source" name="DrawPopDefs">DrawPopDefs</a></h2>
1902 <div class="doc-section">
1904 <p>DrawPopDefs() terminates a definition list.</p></ol>
1906 <p>The format of the DrawPopDefs method is:</p>
1909 void DrawPopDefs(DrawingWand *wand)
1912 <p>A description of each parameter follows:</p></ol>
1915 <ol><p>the drawing wand.</p></ol>
1918 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1919 _8c.html" target="source" name="DrawPopPattern">DrawPopPattern</a></h2>
1920 <div class="doc-section">
1922 <p>DrawPopPattern() terminates a pattern definition.</p></ol>
1924 <p>The format of the DrawPopPattern method is:</p>
1927 MagickBooleanType DrawPopPattern(DrawingWand *wand)
1930 <p>A description of each parameter follows:</p></ol>
1933 <ol><p>the drawing wand.</p></ol>
1936 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1937 _8c.html" target="source" name="DrawPushClipPath">DrawPushClipPath</a></h2>
1938 <div class="doc-section">
1940 <p>DrawPushClipPath() starts a clip path definition which is comprized of any number of drawing commands and terminated by a DrawPopClipPath() command.</p></ol>
1942 <p>The format of the DrawPushClipPath method is:</p>
1945 void DrawPushClipPath(DrawingWand *wand,const char *clip_mask_id)
1948 <p>A description of each parameter follows:</p></ol>
1951 <ol><p>the drawing wand.</p></ol>
1953 <h5>clip_mask_id</h5>
1954 <ol><p>string identifier to associate with the clip path for later use.</p></ol>
1957 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1958 _8c.html" target="source" name="DrawPushDefs">DrawPushDefs</a></h2>
1959 <div class="doc-section">
1961 <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>
1963 <p>The format of the DrawPushDefs method is:</p>
1966 void DrawPushDefs(DrawingWand *wand)
1969 <p>A description of each parameter follows:</p></ol>
1972 <ol><p>the drawing wand.</p></ol>
1975 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1976 _8c.html" target="source" name="DrawPushPattern">DrawPushPattern</a></h2>
1977 <div class="doc-section">
1979 <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>
1981 <p>The format of the DrawPushPattern method is:</p>
1984 MagickBooleanType DrawPushPattern(DrawingWand *wand,
1985 const char *pattern_id,const double x,const double y,
1986 const double width,const double height)
1989 <p>A description of each parameter follows:</p></ol>
1992 <ol><p>the drawing wand.</p></ol>
1995 <ol><p>pattern identification for later reference</p></ol>
1998 <ol><p>x ordinate of top left corner</p></ol>
2001 <ol><p>y ordinate of top left corner</p></ol>
2004 <ol><p>width of pattern space</p></ol>
2007 <ol><p>height of pattern space</p></ol>
2010 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2011 _8c.html" target="source" name="DrawRectangle">DrawRectangle</a></h2>
2012 <div class="doc-section">
2014 <p>DrawRectangle() draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.</p></ol>
2016 <p>The format of the DrawRectangle method is:</p>
2019 void DrawRectangle(DrawingWand *wand,const double x1,
2020 const double y1,const double x2,const double y2)
2023 <p>A description of each parameter follows:</p></ol>
2026 <ol><p>x ordinate of first coordinate</p></ol>
2029 <ol><p>y ordinate of first coordinate</p></ol>
2032 <ol><p>x ordinate of second coordinate</p></ol>
2035 <ol><p>y ordinate of second coordinate</p></ol>
2038 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2039 _8c.html" target="source" name="DrawResetVectorGraphics">DrawResetVectorGraphics</a></h2>
2040 <div class="doc-section">
2042 <p>DrawResetVectorGraphics() resets the vector graphics associated with the specified wand.</p></ol>
2044 <p>The format of the DrawResetVectorGraphics method is:</p>
2047 void DrawResetVectorGraphics(DrawingWand *wand)
2050 <p>A description of each parameter follows:</p></ol>
2053 <ol><p>the drawing wand.</p></ol>
2056 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2057 _8c.html" target="source" name="DrawRotate">DrawRotate</a></h2>
2058 <div class="doc-section">
2060 <p>DrawRotate() applies the specified rotation to the current coordinate space.</p></ol>
2062 <p>The format of the DrawRotate method is:</p>
2065 void DrawRotate(DrawingWand *wand,const double degrees)
2068 <p>A description of each parameter follows:</p></ol>
2071 <ol><p>the drawing wand.</p></ol>
2074 <ol><p>degrees of rotation</p></ol>
2077 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2078 _8c.html" target="source" name="DrawRoundRectangle">DrawRoundRectangle</a></h2>
2079 <div class="doc-section">
2081 <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>
2083 <p>The format of the DrawRoundRectangle method is:</p>
2086 void DrawRoundRectangle(DrawingWand *wand,double x1,double y1,
2087 double x2,double y2,double rx,double ry)
2090 <p>A description of each parameter follows:</p></ol>
2093 <ol><p>the drawing wand.</p></ol>
2096 <ol><p>x ordinate of first coordinate</p></ol>
2099 <ol><p>y ordinate of first coordinate</p></ol>
2102 <ol><p>x ordinate of second coordinate</p></ol>
2105 <ol><p>y ordinate of second coordinate</p></ol>
2108 <ol><p>radius of corner in horizontal direction</p></ol>
2111 <ol><p>radius of corner in vertical direction</p></ol>
2114 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2115 _8c.html" target="source" name="DrawScale">DrawScale</a></h2>
2116 <div class="doc-section">
2118 <p>DrawScale() adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space.</p></ol>
2120 <p>The format of the DrawScale method is:</p>
2123 void DrawScale(DrawingWand *wand,const double x,const double y)
2126 <p>A description of each parameter follows:</p></ol>
2129 <ol><p>the drawing wand.</p></ol>
2132 <ol><p>horizontal scale factor</p></ol>
2135 <ol><p>vertical scale factor</p></ol>
2138 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2139 _8c.html" target="source" name="DrawSetBorderColor">DrawSetBorderColor</a></h2>
2140 <div class="doc-section">
2142 <p>DrawSetBorderColor() sets the border color to be used for drawing bordered objects.</p></ol>
2144 <p>The format of the DrawSetBorderColor method is:</p>
2147 void DrawSetBorderColor(DrawingWand *wand,const PixelWand *border_wand)
2150 <p>A description of each parameter follows:</p></ol>
2153 <ol><p>the drawing wand.</p></ol>
2155 <h5>border_wand</h5>
2156 <ol><p>border wand.</p></ol>
2159 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2160 _8c.html" target="source" name="DrawSetClipPath">DrawSetClipPath</a></h2>
2161 <div class="doc-section">
2163 <p>DrawSetClipPath() associates a named clipping path with the image. Only the areas drawn on by the clipping path will be modified as ssize_t as it remains in effect.</p></ol>
2165 <p>The format of the DrawSetClipPath method is:</p>
2168 MagickBooleanType DrawSetClipPath(DrawingWand *wand,
2169 const char *clip_mask)
2172 <p>A description of each parameter follows:</p></ol>
2175 <ol><p>the drawing wand.</p></ol>
2178 <ol><p>name of clipping path to associate with image</p></ol>
2181 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2182 _8c.html" target="source" name="DrawSetClipRule">DrawSetClipRule</a></h2>
2183 <div class="doc-section">
2185 <p>DrawSetClipRule() set the polygon fill rule to be used by the clipping path.</p></ol>
2187 <p>The format of the DrawSetClipRule method is:</p>
2190 void DrawSetClipRule(DrawingWand *wand,const FillRule fill_rule)
2193 <p>A description of each parameter follows:</p></ol>
2196 <ol><p>the drawing wand.</p></ol>
2199 <ol><p>fill rule (EvenOddRule or NonZeroRule)</p></ol>
2202 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2203 _8c.html" target="source" name="DrawSetClipUnits">DrawSetClipUnits</a></h2>
2204 <div class="doc-section">
2206 <p>DrawSetClipUnits() sets the interpretation of clip path units.</p></ol>
2208 <p>The format of the DrawSetClipUnits method is:</p>
2211 void DrawSetClipUnits(DrawingWand *wand,
2212 const ClipPathUnits clip_units)
2215 <p>A description of each parameter follows:</p></ol>
2218 <ol><p>the drawing wand.</p></ol>
2221 <ol><p>units to use (UserSpace, UserSpaceOnUse, or ObjectBoundingBox)</p></ol>
2224 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2225 _8c.html" target="source" name="DrawSetFillColor">DrawSetFillColor</a></h2>
2226 <div class="doc-section">
2228 <p>DrawSetFillColor() sets the fill color to be used for drawing filled objects.</p></ol>
2230 <p>The format of the DrawSetFillColor method is:</p>
2233 void DrawSetFillColor(DrawingWand *wand,const PixelWand *fill_wand)
2236 <p>A description of each parameter follows:</p></ol>
2239 <ol><p>the drawing wand.</p></ol>
2242 <ol><p>fill wand.</p></ol>
2245 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2246 _8c.html" target="source" name="DrawSetFillOpacity">DrawSetFillOpacity</a></h2>
2247 <div class="doc-section">
2249 <p>DrawSetFillOpacity() sets the opacity to use when drawing using the fill color or fill texture. Fully opaque is 1.0.</p></ol>
2251 <p>The format of the DrawSetFillOpacity method is:</p>
2254 void DrawSetFillOpacity(DrawingWand *wand,const double fill_opacity)
2257 <p>A description of each parameter follows:</p></ol>
2260 <ol><p>the drawing wand.</p></ol>
2262 <h5>fill_opacity</h5>
2263 <ol><p>fill opacity</p></ol>
2266 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2267 _8c.html" target="source" name="DrawSetOpacity">DrawSetOpacity</a></h2>
2268 <div class="doc-section">
2270 <p>DrawSetOpacity() sets the opacity to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0.</p></ol>
2272 <p>The format of the DrawSetOpacity method is:</p>
2275 void DrawSetOpacity(DrawingWand *wand,const double opacity)
2278 <p>A description of each parameter follows:</p></ol>
2281 <ol><p>the drawing wand.</p></ol>
2284 <ol><p>fill opacity</p></ol>
2287 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2288 _8c.html" target="source" name="DrawSetFillPatternURL">DrawSetFillPatternURL</a></h2>
2289 <div class="doc-section">
2291 <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>
2293 <p>The format of the DrawSetFillPatternURL method is:</p>
2296 MagickBooleanType DrawSetFillPatternURL(DrawingWand *wand,
2297 const char *fill_url)
2300 <p>A description of each parameter follows:</p></ol>
2303 <ol><p>the drawing wand.</p></ol>
2306 <ol><p>URL to use to obtain fill pattern.</p></ol>
2309 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2310 _8c.html" target="source" name="DrawSetFillRule">DrawSetFillRule</a></h2>
2311 <div class="doc-section">
2313 <p>DrawSetFillRule() sets the fill rule to use while drawing polygons.</p></ol>
2315 <p>The format of the DrawSetFillRule method is:</p>
2318 void DrawSetFillRule(DrawingWand *wand,const FillRule fill_rule)
2321 <p>A description of each parameter follows:</p></ol>
2324 <ol><p>the drawing wand.</p></ol>
2327 <ol><p>fill rule (EvenOddRule or NonZeroRule)</p></ol>
2330 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2331 _8c.html" target="source" name="DrawSetFont">DrawSetFont</a></h2>
2332 <div class="doc-section">
2334 <p>DrawSetFont() sets the fully-sepecified font to use when annotating with text.</p></ol>
2336 <p>The format of the DrawSetFont method is:</p>
2339 MagickBooleanType DrawSetFont(DrawingWand *wand,const char *font_name)
2342 <p>A description of each parameter follows:</p></ol>
2345 <ol><p>the drawing wand.</p></ol>
2348 <ol><p>font name</p></ol>
2351 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2352 _8c.html" target="source" name="DrawSetFontFamily">DrawSetFontFamily</a></h2>
2353 <div class="doc-section">
2355 <p>DrawSetFontFamily() sets the font family to use when annotating with text.</p></ol>
2357 <p>The format of the DrawSetFontFamily method is:</p>
2360 MagickBooleanType DrawSetFontFamily(DrawingWand *wand,
2361 const char *font_family)
2364 <p>A description of each parameter follows:</p></ol>
2367 <ol><p>the drawing wand.</p></ol>
2369 <h5>font_family</h5>
2370 <ol><p>font family</p></ol>
2373 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2374 _8c.html" target="source" name="DrawSetFontSize">DrawSetFontSize</a></h2>
2375 <div class="doc-section">
2377 <p>DrawSetFontSize() sets the font pointsize to use when annotating with text.</p></ol>
2379 <p>The format of the DrawSetFontSize method is:</p>
2382 void DrawSetFontSize(DrawingWand *wand,const double pointsize)
2385 <p>A description of each parameter follows:</p></ol>
2388 <ol><p>the drawing wand.</p></ol>
2391 <ol><p>text pointsize</p></ol>
2394 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2395 _8c.html" target="source" name="DrawSetFontStretch">DrawSetFontStretch</a></h2>
2396 <div class="doc-section">
2398 <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>
2400 <p>The format of the DrawSetFontStretch method is:</p>
2403 void DrawSetFontStretch(DrawingWand *wand,
2404 const StretchType font_stretch)
2407 <p>A description of each parameter follows:</p></ol>
2410 <ol><p>the drawing wand.</p></ol>
2412 <h5>font_stretch</h5>
2413 <ol><p>font stretch (NormalStretch, UltraCondensedStretch, CondensedStretch, SemiCondensedStretch, SemiExpandedStretch, ExpandedStretch, ExtraExpandedStretch, UltraExpandedStretch, AnyStretch)</p></ol>
2416 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2417 _8c.html" target="source" name="DrawSetFontStyle">DrawSetFontStyle</a></h2>
2418 <div class="doc-section">
2420 <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>
2422 <p>The format of the DrawSetFontStyle method is:</p>
2425 void DrawSetFontStyle(DrawingWand *wand,const StyleType style)
2428 <p>A description of each parameter follows:</p></ol>
2431 <ol><p>the drawing wand.</p></ol>
2434 <ol><p>font style (NormalStyle, ItalicStyle, ObliqueStyle, AnyStyle)</p></ol>
2437 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2438 _8c.html" target="source" name="DrawSetFontWeight">DrawSetFontWeight</a></h2>
2439 <div class="doc-section">
2441 <p>DrawSetFontWeight() sets the font weight to use when annotating with text.</p></ol>
2443 <p>The format of the DrawSetFontWeight method is:</p>
2446 void DrawSetFontWeight(DrawingWand *wand,
2447 const size_t font_weight)
2450 <p>A description of each parameter follows:</p></ol>
2453 <ol><p>the drawing wand.</p></ol>
2455 <h5>font_weight</h5>
2456 <ol><p>font weight (valid range 100-900)</p></ol>
2459 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2460 _8c.html" target="source" name="DrawSetGravity">DrawSetGravity</a></h2>
2461 <div class="doc-section">
2463 <p>DrawSetGravity() sets the text placement gravity to use when annotating with text.</p></ol>
2465 <p>The format of the DrawSetGravity method is:</p>
2468 void DrawSetGravity(DrawingWand *wand,const GravityType gravity)
2471 <p>A description of each parameter follows:</p></ol>
2474 <ol><p>the drawing wand.</p></ol>
2477 <ol><p>positioning gravity (NorthWestGravity, NorthGravity, NorthEastGravity, WestGravity, CenterGravity, EastGravity, SouthWestGravity, SouthGravity, SouthEastGravity)</p></ol>
2480 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2481 _8c.html" target="source" name="DrawSetStrokeColor">DrawSetStrokeColor</a></h2>
2482 <div class="doc-section">
2484 <p>DrawSetStrokeColor() sets the color used for stroking object outlines.</p></ol>
2486 <p>The format of the DrawSetStrokeColor method is:</p>
2489 void DrawSetStrokeColor(DrawingWand *wand,
2490 const PixelWand *stroke_wand)
2493 <p>A description of each parameter follows:</p></ol>
2496 <ol><p>the drawing wand.</p></ol>
2498 <h5>stroke_wand</h5>
2499 <ol><p>stroke wand.</p></ol>
2502 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2503 _8c.html" target="source" name="DrawSetStrokePatternURL">DrawSetStrokePatternURL</a></h2>
2504 <div class="doc-section">
2506 <p>DrawSetStrokePatternURL() sets the pattern used for stroking object outlines.</p></ol>
2508 <p>The format of the DrawSetStrokePatternURL method is:</p>
2511 MagickBooleanType DrawSetStrokePatternURL(DrawingWand *wand,
2512 const char *stroke_url)
2515 <p>A description of each parameter follows:</p></ol>
2518 <ol><p>the drawing wand.</p></ol>
2521 <ol><p>URL specifying pattern ID (e.g. "#pattern_id")</p></ol>
2524 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2525 _8c.html" target="source" name="DrawSetStrokeAntialias">DrawSetStrokeAntialias</a></h2>
2526 <div class="doc-section">
2528 <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>
2530 <p>The format of the DrawSetStrokeAntialias method is:</p>
2533 void DrawSetStrokeAntialias(DrawingWand *wand,
2534 const MagickBooleanType stroke_antialias)
2537 <p>A description of each parameter follows:</p></ol>
2540 <ol><p>the drawing wand.</p></ol>
2542 <h5>stroke_antialias</h5>
2543 <ol><p>set to false (zero) to disable antialiasing</p></ol>
2546 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2547 _8c.html" target="source" name="DrawSetStrokeDashArray">DrawSetStrokeDashArray</a></h2>
2548 <div class="doc-section">
2550 <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>
2552 <p>The format of the DrawSetStrokeDashArray method is:</p>
2555 MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand,
2556 const size_t number_elements,const double *dash_array)
2559 <p>A description of each parameter follows:</p></ol>
2562 <ol><p>the drawing wand.</p></ol>
2564 <h5>number_elements</h5>
2565 <ol><p>number of elements in dash array</p></ol>
2568 <ol><p>dash array values</p></ol>
2571 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2572 _8c.html" target="source" name="DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a></h2>
2573 <div class="doc-section">
2575 <p>DrawSetStrokeDashOffset() specifies the offset into the dash pattern to start the dash.</p></ol>
2577 <p>The format of the DrawSetStrokeDashOffset method is:</p>
2580 void DrawSetStrokeDashOffset(DrawingWand *wand,
2581 const double dash_offset)
2584 <p>A description of each parameter follows:</p></ol>
2587 <ol><p>the drawing wand.</p></ol>
2589 <h5>dash_offset</h5>
2590 <ol><p>dash offset</p></ol>
2593 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2594 _8c.html" target="source" name="DrawSetStrokeLineCap">DrawSetStrokeLineCap</a></h2>
2595 <div class="doc-section">
2597 <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>
2599 <p>The format of the DrawSetStrokeLineCap method is:</p>
2602 void DrawSetStrokeLineCap(DrawingWand *wand,
2603 const LineCap linecap)
2606 <p>A description of each parameter follows:</p></ol>
2609 <ol><p>the drawing wand.</p></ol>
2612 <ol><p>linecap style</p></ol>
2615 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2616 _8c.html" target="source" name="DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a></h2>
2617 <div class="doc-section">
2619 <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>
2621 <p>The format of the DrawSetStrokeLineJoin method is:</p>
2624 void DrawSetStrokeLineJoin(DrawingWand *wand,
2625 const LineJoin linejoin)
2628 <p>A description of each parameter follows:</p></ol>
2631 <ol><p>the drawing wand.</p></ol>
2634 <ol><p>line join style</p></ol>
2637 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2638 _8c.html" target="source" name="DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a></h2>
2639 <div class="doc-section">
2641 <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>
2643 <p>The format of the DrawSetStrokeMiterLimit method is:</p>
2646 void DrawSetStrokeMiterLimit(DrawingWand *wand,
2647 const size_t miterlimit)
2650 <p>A description of each parameter follows:</p></ol>
2653 <ol><p>the drawing wand.</p></ol>
2656 <ol><p>miter limit</p></ol>
2659 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2660 _8c.html" target="source" name="DrawSetStrokeOpacity">DrawSetStrokeOpacity</a></h2>
2661 <div class="doc-section">
2663 <p>DrawSetStrokeOpacity() specifies the opacity of stroked object outlines.</p></ol>
2665 <p>The format of the DrawSetStrokeOpacity method is:</p>
2668 void DrawSetStrokeOpacity(DrawingWand *wand,
2669 const double stroke_opacity)
2672 <p>A description of each parameter follows:</p></ol>
2675 <ol><p>the drawing wand.</p></ol>
2677 <h5>stroke_opacity</h5>
2678 <ol><p>stroke opacity. The value 1.0 is opaque.</p></ol>
2681 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2682 _8c.html" target="source" name="DrawSetStrokeWidth">DrawSetStrokeWidth</a></h2>
2683 <div class="doc-section">
2685 <p>DrawSetStrokeWidth() sets the width of the stroke used to draw object outlines.</p></ol>
2687 <p>The format of the DrawSetStrokeWidth method is:</p>
2690 void DrawSetStrokeWidth(DrawingWand *wand,
2691 const double stroke_width)
2694 <p>A description of each parameter follows:</p></ol>
2697 <ol><p>the drawing wand.</p></ol>
2699 <h5>stroke_width</h5>
2700 <ol><p>stroke width</p></ol>
2703 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2704 _8c.html" target="source" name="DrawSetTextAlignment">DrawSetTextAlignment</a></h2>
2705 <div class="doc-section">
2707 <p>DrawSetTextAlignment() specifies a text alignment to be applied when annotating with text.</p></ol>
2709 <p>The format of the DrawSetTextAlignment method is:</p>
2712 void DrawSetTextAlignment(DrawingWand *wand,const AlignType alignment)
2715 <p>A description of each parameter follows:</p></ol>
2718 <ol><p>the drawing wand.</p></ol>
2721 <ol><p>text alignment. One of UndefinedAlign, LeftAlign, CenterAlign, or RightAlign.</p></ol>
2724 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2725 _8c.html" target="source" name="DrawSetTextAntialias">DrawSetTextAntialias</a></h2>
2726 <div class="doc-section">
2728 <p>DrawSetTextAntialias() controls whether text is antialiased. Text is antialiased by default.</p></ol>
2730 <p>The format of the DrawSetTextAntialias method is:</p>
2733 void DrawSetTextAntialias(DrawingWand *wand,
2734 const MagickBooleanType text_antialias)
2737 <p>A description of each parameter follows:</p></ol>
2740 <ol><p>the drawing wand.</p></ol>
2742 <h5>text_antialias</h5>
2743 <ol><p>antialias boolean. Set to false (0) to disable antialiasing.</p></ol>
2746 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2747 _8c.html" target="source" name="DrawSetTextDecoration">DrawSetTextDecoration</a></h2>
2748 <div class="doc-section">
2750 <p>DrawSetTextDecoration() specifies a decoration to be applied when annotating with text.</p></ol>
2752 <p>The format of the DrawSetTextDecoration method is:</p>
2755 void DrawSetTextDecoration(DrawingWand *wand,
2756 const DecorationType decoration)
2759 <p>A description of each parameter follows:</p></ol>
2762 <ol><p>the drawing wand.</p></ol>
2765 <ol><p>text decoration. One of NoDecoration, UnderlineDecoration, OverlineDecoration, or LineThroughDecoration</p></ol>
2768 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2769 _8c.html" target="source" name="DrawSetTextEncoding">DrawSetTextEncoding</a></h2>
2770 <div class="doc-section">
2772 <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>
2774 <p>The format of the DrawSetTextEncoding method is:</p>
2777 void DrawSetTextEncoding(DrawingWand *wand,const char *encoding)
2780 <p>A description of each parameter follows:</p></ol>
2783 <ol><p>the drawing wand.</p></ol>
2786 <ol><p>character string specifying text encoding</p></ol>
2789 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2790 _8c.html" target="source" name="DrawSetTextKerning">DrawSetTextKerning</a></h2>
2791 <div class="doc-section">
2793 <p>DrawSetTextKerning() sets the spacing between characters in text.</p></ol>
2795 <p>The format of the DrawSetTextKerning method is:</p>
2798 void DrawSetTextKerning(DrawingWand *wand,const double kerning)
2801 <p>A description of each parameter follows:</p></ol>
2804 <ol><p>the drawing wand.</p></ol>
2807 <ol><p>text kerning</p></ol>
2810 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2811 _8c.html" target="source" name="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
2812 <div class="doc-section">
2814 <p>DrawSetTextInterwordSpacing() sets the spacing between line in text.</p></ol>
2816 <p>The format of the DrawSetInterwordSpacing method is:</p>
2819 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2820 const double interline_spacing)
2823 <p>A description of each parameter follows:</p></ol>
2826 <ol><p>the drawing wand.</p></ol>
2828 <h5>interline_spacing</h5>
2829 <ol><p>text line spacing</p></ol>
2832 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2833 _8c.html" target="source" name="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
2834 <div class="doc-section">
2836 <p>DrawSetTextInterwordSpacing() sets the spacing between words in text.</p></ol>
2838 <p>The format of the DrawSetInterwordSpacing method is:</p>
2841 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2842 const double interword_spacing)
2845 <p>A description of each parameter follows:</p></ol>
2848 <ol><p>the drawing wand.</p></ol>
2850 <h5>interword_spacing</h5>
2851 <ol><p>text word spacing</p></ol>
2854 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2855 _8c.html" target="source" name="DrawSetTextUnderColor">DrawSetTextUnderColor</a></h2>
2856 <div class="doc-section">
2858 <p>DrawSetTextUnderColor() specifies the color of a background rectangle to place under text annotations.</p></ol>
2860 <p>The format of the DrawSetTextUnderColor method is:</p>
2863 void DrawSetTextUnderColor(DrawingWand *wand,
2864 const PixelWand *under_wand)
2867 <p>A description of each parameter follows:</p></ol>
2870 <ol><p>the drawing wand.</p></ol>
2873 <ol><p>text under wand.</p></ol>
2876 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2877 _8c.html" target="source" name="DrawSetVectorGraphics">DrawSetVectorGraphics</a></h2>
2878 <div class="doc-section">
2880 <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>
2882 <p>The format of the DrawSetVectorGraphics method is:</p>
2885 MagickBooleanType DrawSetVectorGraphics(DrawingWand *wand,
2889 <p>A description of each parameter follows:</p></ol>
2892 <ol><p>the drawing wand.</p></ol>
2895 <ol><p>the drawing wand XML.</p></ol>
2898 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2899 _8c.html" target="source" name="DrawSkewX">DrawSkewX</a></h2>
2900 <div class="doc-section">
2902 <p>DrawSkewX() skews the current coordinate system in the horizontal direction.</p></ol>
2904 <p>The format of the DrawSkewX method is:</p>
2907 void DrawSkewX(DrawingWand *wand,const double degrees)
2910 <p>A description of each parameter follows:</p></ol>
2913 <ol><p>the drawing wand.</p></ol>
2916 <ol><p>number of degrees to skew the coordinates</p></ol>
2919 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2920 _8c.html" target="source" name="DrawSkewY">DrawSkewY</a></h2>
2921 <div class="doc-section">
2923 <p>DrawSkewY() skews the current coordinate system in the vertical direction.</p></ol>
2925 <p>The format of the DrawSkewY method is:</p>
2928 void DrawSkewY(DrawingWand *wand,const double degrees)
2931 <p>A description of each parameter follows:</p></ol>
2934 <ol><p>the drawing wand.</p></ol>
2937 <ol><p>number of degrees to skew the coordinates</p></ol>
2940 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2941 _8c.html" target="source" name="DrawTranslate">DrawTranslate</a></h2>
2942 <div class="doc-section">
2944 <p>DrawTranslate() applies a translation to the current coordinate system which moves the coordinate system origin to the specified coordinate.</p></ol>
2946 <p>The format of the DrawTranslate method is:</p>
2949 void DrawTranslate(DrawingWand *wand,const double x,
2953 <p>A description of each parameter follows:</p></ol>
2956 <ol><p>the drawing wand.</p></ol>
2959 <ol><p>new x ordinate for coordinate system origin</p></ol>
2962 <ol><p>new y ordinate for coordinate system origin</p></ol>
2965 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2966 _8c.html" target="source" name="DrawSetViewbox">DrawSetViewbox</a></h2>
2967 <div class="doc-section">
2969 <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>
2971 <p>The format of the DrawSetViewbox method is:</p>
2974 void DrawSetViewbox(DrawingWand *wand,size_t x1,
2975 size_t y1,size_t x2,size_t y2)
2978 <p>A description of each parameter follows:</p></ol>
2981 <ol><p>the drawing wand.</p></ol>
2984 <ol><p>left x ordinate</p></ol>
2987 <ol><p>top y ordinate</p></ol>
2990 <ol><p>right x ordinate</p></ol>
2993 <ol><p>bottom y ordinate</p></ol>
2996 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2997 _8c.html" target="source" name="IsDrawingWand">IsDrawingWand</a></h2>
2998 <div class="doc-section">
3000 <p>IsDrawingWand() returns MagickTrue if the wand is verified as a drawing wand.</p></ol>
3002 <p>The format of the IsDrawingWand method is:</p>
3005 MagickBooleanType IsDrawingWand(const DrawingWand *wand)
3008 <p>A description of each parameter follows:</p></ol>
3011 <ol><p>the drawing wand.</p></ol>
3014 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3015 _8c.html" target="source" name="NewDrawingWand">NewDrawingWand</a></h2>
3016 <div class="doc-section">
3018 <p>NewDrawingWand() returns a drawing wand required for all other methods in the API.</p></ol>
3020 <p>The format of the NewDrawingWand method is:</p>
3023 DrawingWand NewDrawingWand(void)
3027 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3028 _8c.html" target="source" name="PeekDrawingWand">PeekDrawingWand</a></h2>
3029 <div class="doc-section">
3031 <p>PeekDrawingWand() returns the current drawing wand.</p></ol>
3033 <p>The format of the PeekDrawingWand method is:</p>
3036 DrawInfo *PeekDrawingWand(const DrawingWand *wand)
3039 <p>A description of each parameter follows:</p></ol>
3042 <ol><p>the drawing wand.</p></ol>
3045 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3046 _8c.html" target="source" name="PopDrawingWand">PopDrawingWand</a></h2>
3047 <div class="doc-section">
3049 <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>
3051 <p>The format of the PopDrawingWand method is:</p>
3054 MagickBooleanType PopDrawingWand(DrawingWand *wand)
3057 <p>A description of each parameter follows:</p></ol>
3060 <ol><p>the drawing wand.</p></ol>
3063 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3064 _8c.html" target="source" name="PushDrawingWand">PushDrawingWand</a></h2>
3065 <div class="doc-section">
3067 <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>
3069 <p>The format of the PushDrawingWand method is:</p>
3072 MagickBooleanType PushDrawingWand(DrawingWand *wand)
3075 <p>A description of each parameter follows:</p></ol>
3078 <ol><p>the drawing wand.</p></ol>
3084 <div id="linkbar">
\r
3085 <span id="linkbar-west"> </span>
\r
3086 <span id="linkbar-center">
\r
3087 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
3088 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
3090 <span id="linkbar-east"> </span>
\r
3092 <div class="footer">
\r
3093 <span id="footer-west">© 1999-2010 ImageMagick Studio LLC</span>
\r
3094 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
3096 <div style="clear: both; margin: 0; width: 100%; "></div>
\r
3097 <script type="text/javascript">
\r
3098 var _gaq = _gaq || [];
\r
3099 _gaq.push(['_setAccount', 'UA-17690367-1']);
\r
3100 _gaq.push(['_trackPageview']);
\r
3103 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
\r
3104 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
\r
3105 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
\r