]> granicus.if.org Git - imagemagick/blob - www/api/drawing-wand.html
(no commit message)
[imagemagick] / www / api / drawing-wand.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\r
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\r
4 <head>\r
5   <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />\r
6   <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />\r
7   <style type="text/css" media="screen,projection"><!--\r
8     @import url("../../www/magick.css");\r
9   --></style>\r
10   <link rel="shortcut icon" href="../../images/wand.ico"  type="images/vnd.microsoft.icon"/>
11   <title>ImageMagick: MagickWand, C API for ImageMagick: Drawing Wand Methods</title>
12   <meta http-equiv="Content-Language" content="en-US"/>
13   <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
14   <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
15   <meta name="Generator" content="PHP"/>
16   <meta name="Keywords" content="magickwc, api, for, imagemagick:, drawing, wmethods, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing"/>
17   <meta name="Description" content="ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.  ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems.  The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically."/>
18   <meta name="Rating" content="GENERAL"/>
19   <meta name="Robots" content="INDEX, FOLLOW"/>
20   <meta name="Generator" content="ImageMagick Studio LLC"/>
21   <meta name="Author" content="ImageMagick Studio LLC"/>
22   <meta name="Revisit-after" content="2 DAYS"/>
23   <meta name="Resource-type" content="document"/>
24   <meta name="Copyright" content="Copyright (c) 1999-2009 ImageMagick Studio LLC"/>
25   <meta name="Distribution" content="Global"/>
26 </head>\r
27 \r
28 <body id="www-imagemagick-org">\r
29 <div class="titlebar">\r
30 <a href="../../index.html">\r
31   <img src="../../images/script.png" alt="[ImageMagick]"\r
32   style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>\r
33 <a href="http://www.networkredux.com">\r
34   <img src="../../images/networkredux.png" alt="[sponsor]"\r
35   style="margin: 45px auto; border: 0px; float: left;" /></a>\r
36 <a href="http://www.imagemagick.org/discourse-server/">\r
37   <img src="../../images/logo.jpg" alt=""\r
38   style="width: 114px; height: 118px; border: 0px; float: right;" /></a>\r
39 <a href="../../index.html">\r
40   <img src="../../images/sprite.jpg" alt=""\r
41   style="width: 114px; height: 118px; border: 0px; float: right;" /></a>\r
42 </div>\r
43 \r
44 <div class="eastbar">\r
45 \r
46 <div class="menu">
47   <a href="../../index.html">About ImageMagick</a>
48 </div>
49 <div class="sep"></div>\r
50 <div class="menu">
51   <a href="../../www/command-line-tools.html">Command-line Tools</a>
52 </div>
53 <div class="sub">
54     <a href="../../www/command-line-processing.html">Processing</a>
55 </div>
56 <div class="sub">
57     <a href="../../www/command-line-options.html">Options</a>
58 </div>
59 <div class="sub">
60     <a href="http://www.imagemagick.org/Usage/">Usage</a>
61 </div>
62 <div class="menu">
63   <a href="../../www/api.html">Program Interfaces</a>
64 </div>
65 <div class="sub">
66     <a href="../../www/magick-wand.html">MagickWand</a>
67 </div>
68 <div class="sub">
69     <a href="../../www/magick-core.html">MagickCore</a>
70 </div>
71 <div class="sub">
72     <a href="../../www/perl-magick.html">PerlMagick</a>
73 </div>
74 <div class="sub">
75     <a href="../../Magick++/">Magick++</a>
76 </div>
77 <div class="menu">
78   <a href="../../www/architecture.html">Architecture</a>
79 </div>
80 <div class="sep"></div>\r
81 <div  class="menu">
82    <a href="../../www/install-source.html">Install from Source</a>
83 </div>
84 <div class="sub">
85     <a href="../../www/install-source.html#unix">Unix</a>
86 </div>
87 <div class="sub">
88     <a href="../../www/install-source.html#windows">Windows</a>
89  </div>
90 <div class="menu">
91   <a href="../../www/binary-releases.html">Binary Releases</a>
92 </div>
93 <div class="sub">
94     <a href="../../www/binary-releases.html#unix">Unix</a>
95 </div>
96 <div class="sub">
97     <a href="../../www/binary-releases.html#macosx">Mac OS X</a>
98 </div>
99 <div class="sub">
100     <a href="../../www/binary-releases.html#windows">Windows</a>
101 </div>
102 <div class="menu">
103   <a href="../../www/resources.html">Resources</a>
104 </div>
105 <div class="sep"></div>\r
106 <div class="menu">
107   <a href="../../www/download.html">Download</a>
108 </div>
109 <div class="sep"></div>\r
110 <div class="menu">
111   <a href="../http://www.imagemagick.org/script/search.php">Search</a>
112 </div>
113 <div class="sep"></div>\r
114 <div class="menu">
115   <a href="../../www/sitemap.html">Site Map</a>
116 </div>
117 <div  class="sub">
118     <a href="../../www/links.html">Links</a>
119 </div>
120 <div class="sep"></div>\r
121 <div  class="menu">
122   <a href="../../www/sponsors.html">Sponsors:</a>
123
124 <div class="sponsbox">
125 <div  class="sponsor">
126    <a href="http://www.goyax.de">Börse</a><!-- 201001000240 Gewiese digital-finance.de -->
127 </div>
128 <div  class="sponsor">
129    <a href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012001200 allesdruck.de-->
130 </div>
131 <div  class="sponsor">
132   <a href="http://www.blumenversender.com">Blumenversand</a><!-- 200911010120 -->
133 </div>
134 <div  class="sponsor">
135   <a href="http://www.print24.de/">Druckerei</a><!-- 200911010480 -->
136 </div>
137 <div  class="sponsor">
138   <a href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 201002010000 -->
139 </div>
140 <div  class="sponsor">
141   <a href="http://www.online-kredit-index.de">Kredit</a><!-- 201002010120 Buchhorn -->
142 </div>
143 </div>
144 </div>
145 \r
146 \r
147 </div>\r
148 \r
149 <div class="main">\r
150 \r
151 <p class="navigation-index">[<a href="#ClearDrawingWand">ClearDrawingWand</a> &bull; <a href="#CloneDrawingWand">CloneDrawingWand</a> &bull; <a href="#DestroyDrawingWand">DestroyDrawingWand</a> &bull; <a href="#DrawAffine">DrawAffine</a> &bull; <a href="#DrawAnnotation">DrawAnnotation</a> &bull; <a href="#DrawArc">DrawArc</a> &bull; <a href="#DrawBezier">DrawBezier</a> &bull; <a href="#DrawCircle">DrawCircle</a> &bull; <a href="#DrawClearException">DrawClearException</a> &bull; <a href="#DrawComposite">DrawComposite</a> &bull; <a href="#DrawColor">DrawColor</a> &bull; <a href="#DrawComment">DrawComment</a> &bull; <a href="#DrawEllipse">DrawEllipse</a> &bull; <a href="#DrawGetBorderColor">DrawGetBorderColor</a> &bull; <a href="#DrawGetClipPath">DrawGetClipPath</a> &bull; <a href="#DrawGetClipRule">DrawGetClipRule</a> &bull; <a href="#DrawGetClipUnits">DrawGetClipUnits</a> &bull; <a href="#DrawGetException">DrawGetException</a> &bull; <a href="#DrawGetExceptionType">DrawGetExceptionType</a> &bull; <a href="#DrawGetFillColor">DrawGetFillColor</a> &bull; <a href="#DrawGetFillOpacity">DrawGetFillOpacity</a> &bull; <a href="#DrawGetFillRule">DrawGetFillRule</a> &bull; <a href="#DrawGetFont">DrawGetFont</a> &bull; <a href="#DrawGetFontFamily">DrawGetFontFamily</a> &bull; <a href="#DrawGetFontSize">DrawGetFontSize</a> &bull; <a href="#DrawGetFontStretch">DrawGetFontStretch</a> &bull; <a href="#DrawGetFontStyle">DrawGetFontStyle</a> &bull; <a href="#DrawGetFontWeight">DrawGetFontWeight</a> &bull; <a href="#DrawGetGravity">DrawGetGravity</a> &bull; <a href="#DrawGetOpacity">DrawGetOpacity</a> &bull; <a href="#DrawGetStrokeAntialias">DrawGetStrokeAntialias</a> &bull; <a href="#DrawGetStrokeColor">DrawGetStrokeColor</a> &bull; <a href="#DrawGetStrokeDashArray">DrawGetStrokeDashArray</a> &bull; <a href="#DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a> &bull; <a href="#DrawGetStrokeLineCap">DrawGetStrokeLineCap</a> &bull; <a href="#DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a> &bull; <a href="#DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a> &bull; <a href="#DrawGetStrokeOpacity">DrawGetStrokeOpacity</a> &bull; <a href="#DrawGetStrokeWidth">DrawGetStrokeWidth</a> &bull; <a href="#DrawGetTextAlignment">DrawGetTextAlignment</a> &bull; <a href="#DrawGetTextAntialias">DrawGetTextAntialias</a> &bull; <a href="#DrawGetTextDecoration">DrawGetTextDecoration</a> &bull; <a href="#DrawGetTextEncoding">DrawGetTextEncoding</a> &bull; <a href="#DrawGetTextKerning">DrawGetTextKerning</a> &bull; <a href="#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> &bull; <a href="#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> &bull; <a href="#DrawGetVectorGraphics">DrawGetVectorGraphics</a> &bull; <a href="#DrawGetTextUnderColor">DrawGetTextUnderColor</a> &bull; <a href="#DrawLine">DrawLine</a> &bull; <a href="#DrawMatte">DrawMatte</a> &bull; <a href="#DrawPathClose">DrawPathClose</a> &bull; <a href="#DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a> &bull; <a href="#DrawPathCurveToRelative">DrawPathCurveToRelative</a> &bull; <a href="#DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a> &bull; <a href="#DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a> &bull; <a href="#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> &bull; <a href="#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> &bull; <a href="#DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a> &bull; <a href="#DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a> &bull; <a href="#DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a> &bull; <a href="#DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a> &bull; <a href="#DrawPathFinish">DrawPathFinish</a> &bull; <a href="#DrawPathLineToAbsolute">DrawPathLineToAbsolute</a> &bull; <a href="#DrawPathLineToRelative">DrawPathLineToRelative</a> &bull; <a href="#DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a> &bull; <a href="#DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a> &bull; <a href="#DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a> &bull; <a href="#DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a> &bull; <a href="#DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a> &bull; <a href="#DrawPathMoveToRelative">DrawPathMoveToRelative</a> &bull; <a href="#DrawPathStart">DrawPathStart</a> &bull; <a href="#DrawPoint">DrawPoint</a> &bull; <a href="#DrawPolygon">DrawPolygon</a> &bull; <a href="#DrawPolyline">DrawPolyline</a> &bull; <a href="#DrawPopClipPath">DrawPopClipPath</a> &bull; <a href="#DrawPopDefs">DrawPopDefs</a> &bull; <a href="#DrawPopPattern">DrawPopPattern</a> &bull; <a href="#DrawPushClipPath">DrawPushClipPath</a> &bull; <a href="#DrawPushDefs">DrawPushDefs</a> &bull; <a href="#DrawPushPattern">DrawPushPattern</a> &bull; <a href="#DrawRectangle">DrawRectangle</a> &bull; <a href="#DrawResetVectorGraphics">DrawResetVectorGraphics</a> &bull; <a href="#DrawRotate">DrawRotate</a> &bull; <a href="#DrawRoundRectangle">DrawRoundRectangle</a> &bull; <a href="#DrawScale">DrawScale</a> &bull; <a href="#DrawSetBorderColor">DrawSetBorderColor</a> &bull; <a href="#DrawSetClipPath">DrawSetClipPath</a> &bull; <a href="#DrawSetClipRule">DrawSetClipRule</a> &bull; <a href="#DrawSetClipUnits">DrawSetClipUnits</a> &bull; <a href="#DrawSetFillColor">DrawSetFillColor</a> &bull; <a href="#DrawSetFillOpacity">DrawSetFillOpacity</a> &bull; <a href="#DrawSetOpacity">DrawSetOpacity</a> &bull; <a href="#DrawSetFillPatternURL">DrawSetFillPatternURL</a> &bull; <a href="#DrawSetFillRule">DrawSetFillRule</a> &bull; <a href="#DrawSetFont">DrawSetFont</a> &bull; <a href="#DrawSetFontFamily">DrawSetFontFamily</a> &bull; <a href="#DrawSetFontSize">DrawSetFontSize</a> &bull; <a href="#DrawSetFontStretch">DrawSetFontStretch</a> &bull; <a href="#DrawSetFontStyle">DrawSetFontStyle</a> &bull; <a href="#DrawSetFontWeight">DrawSetFontWeight</a> &bull; <a href="#DrawSetGravity">DrawSetGravity</a> &bull; <a href="#DrawSetStrokeColor">DrawSetStrokeColor</a> &bull; <a href="#DrawSetStrokePatternURL">DrawSetStrokePatternURL</a> &bull; <a href="#DrawSetStrokeAntialias">DrawSetStrokeAntialias</a> &bull; <a href="#DrawSetStrokeDashArray">DrawSetStrokeDashArray</a> &bull; <a href="#DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a> &bull; <a href="#DrawSetStrokeLineCap">DrawSetStrokeLineCap</a> &bull; <a href="#DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a> &bull; <a href="#DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a> &bull; <a href="#DrawSetStrokeOpacity">DrawSetStrokeOpacity</a> &bull; <a href="#DrawSetStrokeWidth">DrawSetStrokeWidth</a> &bull; <a href="#DrawSetTextAlignment">DrawSetTextAlignment</a> &bull; <a href="#DrawSetTextAntialias">DrawSetTextAntialias</a> &bull; <a href="#DrawSetTextDecoration">DrawSetTextDecoration</a> &bull; <a href="#DrawSetTextEncoding">DrawSetTextEncoding</a> &bull; <a href="#DrawSetTextKerning">DrawSetTextKerning</a> &bull; <a href="#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> &bull; <a href="#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> &bull; <a href="#DrawSetTextUnderColor">DrawSetTextUnderColor</a> &bull; <a href="#DrawSetVectorGraphics">DrawSetVectorGraphics</a> &bull; <a href="#DrawSkewX">DrawSkewX</a> &bull; <a href="#DrawSkewY">DrawSkewY</a> &bull; <a href="#DrawTranslate">DrawTranslate</a> &bull; <a href="#DrawSetViewbox">DrawSetViewbox</a> &bull; <a href="#IsDrawingWand">IsDrawingWand</a> &bull; <a href="#NewDrawingWand">NewDrawingWand</a> &bull; <a href="#PeekDrawingWand">PeekDrawingWand</a> &bull; <a href="#PopDrawingWand">PopDrawingWand</a> &bull; <a href="#PushDrawingWand">PushDrawingWand</a>]</p>
152
153 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
154 _8c.html" target="source" name="ClearDrawingWand">ClearDrawingWand</a></h2>
155 <div class="doc-section">
156
157 <p>ClearDrawingWand() clear resources associated with the drawing wand.</p></ol>
158
159 <p>The format of the ClearDrawingWand method is:</p>
160
161 <pre class="code">
162   DrawingWand *ClearDrawingWand(DrawingWand *wand)
163 </pre>
164
165 <p>A description of each parameter follows:</p></ol>
166
167 <h5>wand</h5>
168 <ol><p>the drawing wand. to destroy</p></ol>
169
170  </div>
171 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
172 _8c.html" target="source" name="CloneDrawingWand">CloneDrawingWand</a></h2>
173 <div class="doc-section">
174
175 <p>CloneDrawingWand() makes an exact copy of the specified wand.</p></ol>
176
177 <p>The format of the CloneDrawingWand method is:</p>
178
179 <pre class="code">
180   DrawingWand *CloneDrawingWand(const DrawingWand *wand)
181 </pre>
182
183 <p>A description of each parameter follows:</p></ol>
184
185 <h5>wand</h5>
186 <ol><p>the magick wand.</p></ol>
187
188  </div>
189 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
190 _8c.html" target="source" name="DestroyDrawingWand">DestroyDrawingWand</a></h2>
191 <div class="doc-section">
192
193 <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>
194
195 <p>The format of the DestroyDrawingWand method is:</p>
196
197 <pre class="code">
198   DrawingWand *DestroyDrawingWand(DrawingWand *wand)
199 </pre>
200
201 <p>A description of each parameter follows:</p></ol>
202
203 <h5>wand</h5>
204 <ol><p>the drawing wand. to destroy</p></ol>
205
206  </div>
207 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
208 _8c.html" target="source" name="DrawAffine">DrawAffine</a></h2>
209 <div class="doc-section">
210
211 <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>
212
213 <p>The format of the DrawAffine method is:</p>
214
215 <pre class="code">
216   void DrawAffine(DrawingWand *wand,const AffineMatrix *affine)
217 </pre>
218
219 <p>A description of each parameter follows:</p></ol>
220
221 <h5>wand</h5>
222 <ol><p>Drawing wand</p></ol>
223
224 <h5>affine</h5>
225 <ol><p>Affine matrix parameters</p></ol>
226
227  </div>
228 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
229 _8c.html" target="source" name="DrawAnnotation">DrawAnnotation</a></h2>
230 <div class="doc-section">
231
232 <p>DrawAnnotation() draws text on the image.</p></ol>
233
234 <p>The format of the DrawAnnotation method is:</p>
235
236 <pre class="code">
237   void DrawAnnotation(DrawingWand *wand,const double x,
238     const double y,const unsigned char *text)
239 </pre>
240
241 <p>A description of each parameter follows:</p></ol>
242
243 <h5>wand</h5>
244 <ol><p>the drawing wand.</p></ol>
245
246 <h5>x</h5>
247 <ol><p>x ordinate to left of text</p></ol>
248
249 <h5>y</h5>
250 <ol><p>y ordinate to text baseline</p></ol>
251
252 <h5>text</h5>
253 <ol><p>text to draw</p></ol>
254
255  </div>
256 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
257 _8c.html" target="source" name="DrawArc">DrawArc</a></h2>
258 <div class="doc-section">
259
260 <p>DrawArc() draws an arc falling within a specified bounding rectangle on the image.</p></ol>
261
262 <p>The format of the DrawArc method is:</p>
263
264 <pre class="code">
265   void DrawArc(DrawingWand *wand,const double sx,const double sy,
266     const double ex,const double ey,const double sd,const double ed)
267 </pre>
268
269 <p>A description of each parameter follows:</p></ol>
270
271 <h5>wand</h5>
272 <ol><p>the drawing wand.</p></ol>
273
274 <h5>sx</h5>
275 <ol><p>starting x ordinate of bounding rectangle</p></ol>
276
277 <h5>sy</h5>
278 <ol><p>starting y ordinate of bounding rectangle</p></ol>
279
280 <h5>ex</h5>
281 <ol><p>ending x ordinate of bounding rectangle</p></ol>
282
283 <h5>ey</h5>
284 <ol><p>ending y ordinate of bounding rectangle</p></ol>
285
286 <h5>sd</h5>
287 <ol><p>starting degrees of rotation</p></ol>
288
289 <h5>ed</h5>
290 <ol><p>ending degrees of rotation</p></ol>
291
292  </div>
293 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
294 _8c.html" target="source" name="DrawBezier">DrawBezier</a></h2>
295 <div class="doc-section">
296
297 <p>DrawBezier() draws a bezier curve through a set of points on the image.</p></ol>
298
299 <p>The format of the DrawBezier method is:</p>
300
301 <pre class="code">
302   void DrawBezier(DrawingWand *wand,
303     const unsigned long number_coordinates,const PointInfo *coordinates)
304 </pre>
305
306 <p>A description of each parameter follows:</p></ol>
307
308 <h5>wand</h5>
309 <ol><p>the drawing wand.</p></ol>
310
311 <h5>number_coordinates</h5>
312 <ol><p>number of coordinates</p></ol>
313
314 <h5>coordinates</h5>
315 <ol><p>coordinates</p></ol>
316
317  </div>
318 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
319 _8c.html" target="source" name="DrawCircle">DrawCircle</a></h2>
320 <div class="doc-section">
321
322 <p>DrawCircle() draws a circle on the image.</p></ol>
323
324 <p>The format of the DrawCircle method is:</p>
325
326 <pre class="code">
327   void DrawCircle(DrawingWand *wand,const double ox,
328     const double oy,const double px, const double py)
329 </pre>
330
331 <p>A description of each parameter follows:</p></ol>
332
333 <h5>wand</h5>
334 <ol><p>the drawing wand.</p></ol>
335
336 <h5>ox</h5>
337 <ol><p>origin x ordinate</p></ol>
338
339 <h5>oy</h5>
340 <ol><p>origin y ordinate</p></ol>
341
342 <h5>px</h5>
343 <ol><p>perimeter x ordinate</p></ol>
344
345 <h5>py</h5>
346 <ol><p>perimeter y ordinate</p></ol>
347
348  </div>
349 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
350 _8c.html" target="source" name="DrawClearException">DrawClearException</a></h2>
351 <div class="doc-section">
352
353 <p>DrawClearException() clear any exceptions associated with the wand.</p></ol>
354
355 <p>The format of the DrawClearException method is:</p>
356
357 <pre class="code">
358   MagickBooleanType DrawClearException(DrawWand *wand)
359 </pre>
360
361 <p>A description of each parameter follows:</p></ol>
362
363 <h5>wand</h5>
364 <ol><p>the drawing wand.</p></ol>
365
366  </div>
367 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
368 _8c.html" target="source" name="DrawComposite">DrawComposite</a></h2>
369 <div class="doc-section">
370
371 <p>DrawComposite() composites an image onto the current image, using the specified composition operator, specified position, and at the specified size.</p></ol>
372
373 <p>The format of the DrawComposite method is:</p>
374
375 <pre class="code">
376   MagickBooleanType DrawComposite(DrawingWand *wand,
377     const CompositeOperator compose,const double x,
378     const double y,const double width,const double height,
379     MagickWand *magick_wand)
380 </pre>
381
382 <p>A description of each parameter follows:</p></ol>
383
384 <h5>wand</h5>
385 <ol><p>the drawing wand.</p></ol>
386
387 <h5>compose</h5>
388 <ol><p>composition operator</p></ol>
389
390 <h5>x</h5>
391 <ol><p>x ordinate of top left corner</p></ol>
392
393 <h5>y</h5>
394 <ol><p>y ordinate of top left corner</p></ol>
395
396 <h5>width</h5>
397 <ol><p>Width to resize image to prior to compositing.  Specify zero to use existing width.</p></ol>
398
399 <h5>height</h5>
400 <ol><p>Height to resize image to prior to compositing.  Specify zero to use existing height.</p></ol>
401
402 <h5>magick_wand</h5>
403 <ol><p>Image to composite is obtained from this wand.</p></ol>
404
405  </div>
406 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
407 _8c.html" target="source" name="DrawColor">DrawColor</a></h2>
408 <div class="doc-section">
409
410 <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>
411
412 <pre class="text">
413       PointMethod: Recolors the target pixel
414       ReplaceMethod: Recolor any pixel that matches the target pixel.
415       FloodfillMethod: Recolors target pixels and matching neighbors.
416       ResetMethod: Recolor all pixels.
417 </pre>
418
419 <p>The format of the DrawColor method is:</p>
420
421 <pre class="code">
422   void DrawColor(DrawingWand *wand,const double x,const double y,
423     const PaintMethod paint_method)
424 </pre>
425
426 <p>A description of each parameter follows:</p></ol>
427
428 <h5>wand</h5>
429 <ol><p>the drawing wand.</p></ol>
430
431 <h5>x</h5>
432 <ol><p>x ordinate.</p></ol>
433
434 <h5>y</h5>
435 <ol><p>y ordinate.</p></ol>
436
437 <h5>paint_method</h5>
438 <ol><p>paint method.</p></ol>
439
440  </div>
441 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
442 _8c.html" target="source" name="DrawComment">DrawComment</a></h2>
443 <div class="doc-section">
444
445 <p>DrawComment() adds a comment to a vector output stream.</p></ol>
446
447 <p>The format of the DrawComment method is:</p>
448
449 <pre class="code">
450   void DrawComment(DrawingWand *wand,const char *comment)
451 </pre>
452
453 <p>A description of each parameter follows:</p></ol>
454
455 <h5>wand</h5>
456 <ol><p>the drawing wand.</p></ol>
457
458 <h5>comment</h5>
459 <ol><p>comment text</p></ol>
460
461  </div>
462 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
463 _8c.html" target="source" name="DrawEllipse">DrawEllipse</a></h2>
464 <div class="doc-section">
465
466 <p>DrawEllipse() draws an ellipse on the image.</p></ol>
467
468 <p>The format of the DrawEllipse method is:</p>
469
470 <pre class="code">
471    void DrawEllipse(DrawingWand *wand,const double ox,const double oy,
472      const double rx,const double ry,const double start,const double end)
473 </pre>
474
475 <p>A description of each parameter follows:</p></ol>
476
477 <h5>wand</h5>
478 <ol><p>the drawing wand.</p></ol>
479
480 <h5>ox</h5>
481 <ol><p>origin x ordinate</p></ol>
482
483 <h5>oy</h5>
484 <ol><p>origin y ordinate</p></ol>
485
486 <h5>rx</h5>
487 <ol><p>radius in x</p></ol>
488
489 <h5>ry</h5>
490 <ol><p>radius in y</p></ol>
491
492 <h5>start</h5>
493 <ol><p>starting rotation in degrees</p></ol>
494
495 <h5>end</h5>
496 <ol><p>ending rotation in degrees</p></ol>
497
498  </div>
499 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
500 _8c.html" target="source" name="DrawGetBorderColor">DrawGetBorderColor</a></h2>
501 <div class="doc-section">
502
503 <p>DrawGetBorderColor() returns the border color used for drawing bordered objects.</p></ol>
504
505 <p>The format of the DrawGetBorderColor method is:</p>
506
507 <pre class="code">
508   void DrawGetBorderColor(const DrawingWand *wand,
509     PixelWand *border_color)
510 </pre>
511
512 <p>A description of each parameter follows:</p></ol>
513
514 <h5>wand</h5>
515 <ol><p>the drawing wand.</p></ol>
516
517 <h5>border_color</h5>
518 <ol><p>Return the border color.</p></ol>
519
520  </div>
521 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
522 _8c.html" target="source" name="DrawGetClipPath">DrawGetClipPath</a></h2>
523 <div class="doc-section">
524
525 <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>
526
527 <p>The format of the DrawGetClipPath method is:</p>
528
529 <pre class="code">
530   char *DrawGetClipPath(const DrawingWand *wand)
531 </pre>
532
533 <p>A description of each parameter follows:</p></ol>
534
535 <h5>wand</h5>
536 <ol><p>the drawing wand.</p></ol>
537
538  </div>
539 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
540 _8c.html" target="source" name="DrawGetClipRule">DrawGetClipRule</a></h2>
541 <div class="doc-section">
542
543 <p>DrawGetClipRule() returns the current polygon fill rule to be used by the clipping path.</p></ol>
544
545 <p>The format of the DrawGetClipRule method is:</p>
546
547 <pre class="code">
548        FillRule DrawGetClipRule(const DrawingWand *wand)
549 </pre>
550
551 <p>A description of each parameter follows:</p></ol>
552
553 <h5>wand</h5>
554 <ol><p>the drawing wand.</p></ol>
555
556  </div>
557 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
558 _8c.html" target="source" name="DrawGetClipUnits">DrawGetClipUnits</a></h2>
559 <div class="doc-section">
560
561 <p>DrawGetClipUnits() returns the interpretation of clip path units.</p></ol>
562
563 <p>The format of the DrawGetClipUnits method is:</p>
564
565 <pre class="code">
566   ClipPathUnits DrawGetClipUnits(const DrawingWand *wand)
567 </pre>
568
569 <p>A description of each parameter follows:</p></ol>
570
571 <h5>wand</h5>
572 <ol><p>the drawing wand.</p></ol>
573
574  </div>
575 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
576 _8c.html" target="source" name="DrawGetException">DrawGetException</a></h2>
577 <div class="doc-section">
578
579 <p>DrawGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p></ol>
580
581 <p>The format of the DrawGetException method is:</p>
582
583 <pre class="code">
584   char *DrawGetException(const DrawWand *wand,
585     ExceptionType *severity)
586 </pre>
587
588 <p>A description of each parameter follows:</p></ol>
589
590 <h5>wand</h5>
591 <ol><p>the drawing wand.</p></ol>
592
593 <h5>severity</h5>
594 <ol><p>the severity of the error is returned here.</p></ol>
595
596  </div>
597 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
598 _8c.html" target="source" name="DrawGetExceptionType">DrawGetExceptionType</a></h2>
599 <div class="doc-section">
600
601 <p>DrawGetExceptionType() the exception type associated with the wand.  If no exception has occurred, UndefinedExceptionType is returned.</p></ol>
602
603 <p>The format of the DrawGetExceptionType method is:</p>
604
605 <pre class="code">
606   ExceptionType DrawGetExceptionType(const DrawWand *wand)
607 </pre>
608
609 <p>A description of each parameter follows:</p></ol>
610
611 <h5>wand</h5>
612 <ol><p>the magick wand.</p></ol>
613
614  </div>
615 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
616 _8c.html" target="source" name="DrawGetFillColor">DrawGetFillColor</a></h2>
617 <div class="doc-section">
618
619 <p>DrawGetFillColor() returns the fill color used for drawing filled objects.</p></ol>
620
621 <p>The format of the DrawGetFillColor method is:</p>
622
623 <pre class="code">
624   void DrawGetFillColor(const DrawingWand *wand,
625     PixelWand *fill_color)
626 </pre>
627
628 <p>A description of each parameter follows:</p></ol>
629
630 <h5>wand</h5>
631 <ol><p>the drawing wand.</p></ol>
632
633 <h5>fill_color</h5>
634 <ol><p>Return the fill color.</p></ol>
635
636  </div>
637 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
638 _8c.html" target="source" name="DrawGetFillOpacity">DrawGetFillOpacity</a></h2>
639 <div class="doc-section">
640
641 <p>DrawGetFillOpacity() returns the opacity used when drawing using the fill color or fill texture.  Fully opaque is 1.0.</p></ol>
642
643 <p>The format of the DrawGetFillOpacity method is:</p>
644
645 <pre class="code">
646   double DrawGetFillOpacity(const DrawingWand *wand)
647 </pre>
648
649 <p>A description of each parameter follows:</p></ol>
650
651 <h5>wand</h5>
652 <ol><p>the drawing wand.</p></ol>
653
654  </div>
655 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
656 _8c.html" target="source" name="DrawGetFillRule">DrawGetFillRule</a></h2>
657 <div class="doc-section">
658
659 <p>DrawGetFillRule() returns the fill rule used while drawing polygons.</p></ol>
660
661 <p>The format of the DrawGetFillRule method is:</p>
662
663 <pre class="code">
664   FillRule DrawGetFillRule(const DrawingWand *wand)
665 </pre>
666
667 <p>A description of each parameter follows:</p></ol>
668
669 <h5>wand</h5>
670 <ol><p>the drawing wand.</p></ol>
671
672  </div>
673 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
674 _8c.html" target="source" name="DrawGetFont">DrawGetFont</a></h2>
675 <div class="doc-section">
676
677 <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>
678
679 <p>The format of the DrawGetFont method is:</p>
680
681 <pre class="code">
682   char *DrawGetFont(const DrawingWand *wand)
683 </pre>
684
685 <p>A description of each parameter follows:</p></ol>
686
687 <h5>wand</h5>
688 <ol><p>the drawing wand.</p></ol>
689
690  </div>
691 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
692 _8c.html" target="source" name="DrawGetFontFamily">DrawGetFontFamily</a></h2>
693 <div class="doc-section">
694
695 <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>
696
697 <p>The format of the DrawGetFontFamily method is:</p>
698
699 <pre class="code">
700   char *DrawGetFontFamily(const DrawingWand *wand)
701 </pre>
702
703 <p>A description of each parameter follows:</p></ol>
704
705 <h5>wand</h5>
706 <ol><p>the drawing wand.</p></ol>
707
708  </div>
709 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
710 _8c.html" target="source" name="DrawGetFontSize">DrawGetFontSize</a></h2>
711 <div class="doc-section">
712
713 <p>DrawGetFontSize() returns the font pointsize used when annotating with text.</p></ol>
714
715 <p>The format of the DrawGetFontSize method is:</p>
716
717 <pre class="code">
718   double DrawGetFontSize(const DrawingWand *wand)
719 </pre>
720
721 <p>A description of each parameter follows:</p></ol>
722
723 <h5>wand</h5>
724 <ol><p>the drawing wand.</p></ol>
725
726  </div>
727 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
728 _8c.html" target="source" name="DrawGetFontStretch">DrawGetFontStretch</a></h2>
729 <div class="doc-section">
730
731 <p>DrawGetFontStretch() returns the font stretch used when annotating with text.</p></ol>
732
733 <p>The format of the DrawGetFontStretch method is:</p>
734
735 <pre class="code">
736   StretchType DrawGetFontStretch(const DrawingWand *wand)
737 </pre>
738
739 <p>A description of each parameter follows:</p></ol>
740
741 <h5>wand</h5>
742 <ol><p>the drawing wand.</p></ol>
743
744  </div>
745 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
746 _8c.html" target="source" name="DrawGetFontStyle">DrawGetFontStyle</a></h2>
747 <div class="doc-section">
748
749 <p>DrawGetFontStyle() returns the font style used when annotating with text.</p></ol>
750
751 <p>The format of the DrawGetFontStyle method is:</p>
752
753 <pre class="code">
754   StyleType DrawGetFontStyle(const DrawingWand *wand)
755 </pre>
756
757 <p>A description of each parameter follows:</p></ol>
758
759 <h5>wand</h5>
760 <ol><p>the drawing wand.</p></ol>
761
762  </div>
763 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
764 _8c.html" target="source" name="DrawGetFontWeight">DrawGetFontWeight</a></h2>
765 <div class="doc-section">
766
767 <p>DrawGetFontWeight() returns the font weight used when annotating with text.</p></ol>
768
769 <p>The format of the DrawGetFontWeight method is:</p>
770
771 <pre class="code">
772   unsigned long DrawGetFontWeight(const DrawingWand *wand)
773 </pre>
774
775 <p>A description of each parameter follows:</p></ol>
776
777 <h5>wand</h5>
778 <ol><p>the drawing wand.</p></ol>
779
780  </div>
781 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
782 _8c.html" target="source" name="DrawGetGravity">DrawGetGravity</a></h2>
783 <div class="doc-section">
784
785 <p>DrawGetGravity() returns the text placement gravity used when annotating with text.</p></ol>
786
787 <p>The format of the DrawGetGravity method is:</p>
788
789 <pre class="code">
790   GravityType DrawGetGravity(const DrawingWand *wand)
791 </pre>
792
793 <p>A description of each parameter follows:</p></ol>
794
795 <h5>wand</h5>
796 <ol><p>the drawing wand.</p></ol>
797
798  </div>
799 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
800 _8c.html" target="source" name="DrawGetOpacity">DrawGetOpacity</a></h2>
801 <div class="doc-section">
802
803 <p>DrawGetOpacity() returns the opacity used when drawing with the fill or stroke color or texture.  Fully opaque is 1.0.</p></ol>
804
805 <p>The format of the DrawGetOpacity method is:</p>
806
807 <pre class="code">
808   double DrawGetOpacity(const DrawingWand *wand)
809 </pre>
810
811 <p>A description of each parameter follows:</p></ol>
812
813 <h5>wand</h5>
814 <ol><p>the drawing wand.</p></ol>
815
816  </div>
817 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
818 _8c.html" target="source" name="DrawGetStrokeAntialias">DrawGetStrokeAntialias</a></h2>
819 <div class="doc-section">
820
821 <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>
822
823 <p>The format of the DrawGetStrokeAntialias method is:</p>
824
825 <pre class="code">
826   MagickBooleanType DrawGetStrokeAntialias(const DrawingWand *wand)
827 </pre>
828
829 <p>A description of each parameter follows:</p></ol>
830
831 <h5>wand</h5>
832 <ol><p>the drawing wand.</p></ol>
833
834  </div>
835 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
836 _8c.html" target="source" name="DrawGetStrokeColor">DrawGetStrokeColor</a></h2>
837 <div class="doc-section">
838
839 <p>DrawGetStrokeColor() returns the color used for stroking object outlines.</p></ol>
840
841 <p>The format of the DrawGetStrokeColor method is:</p>
842
843 <pre class="code">
844   void DrawGetStrokeColor(const DrawingWand *wand,
845   $  PixelWand *stroke_color)
846 </pre>
847
848 <p>A description of each parameter follows:</p></ol>
849
850 <h5>wand</h5>
851 <ol><p>the drawing wand.</p></ol>
852
853 <h5>stroke_color</h5>
854 <ol><p>Return the stroke color.</p></ol>
855
856  </div>
857 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
858 _8c.html" target="source" name="DrawGetStrokeDashArray">DrawGetStrokeDashArray</a></h2>
859 <div class="doc-section">
860
861 <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>
862
863 <p>The format of the DrawGetStrokeDashArray method is:</p>
864
865 <pre class="code">
866   double *DrawGetStrokeDashArray(const DrawingWand *wand,
867     unsigned long *number_elements)
868 </pre>
869
870 <p>A description of each parameter follows:</p></ol>
871
872 <h5>wand</h5>
873 <ol><p>the drawing wand.</p></ol>
874
875 <h5>number_elements</h5>
876 <ol><p>address to place number of elements in dash array</p></ol>
877
878  </div>
879 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
880 _8c.html" target="source" name="DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a></h2>
881 <div class="doc-section">
882
883 <p>DrawGetStrokeDashOffset() returns the offset into the dash pattern to start the dash.</p></ol>
884
885 <p>The format of the DrawGetStrokeDashOffset method is:</p>
886
887 <pre class="code">
888   double DrawGetStrokeDashOffset(const DrawingWand *wand)
889 </pre>
890
891 <p>A description of each parameter follows:</p></ol>
892
893 <h5>wand</h5>
894 <ol><p>the drawing wand.</p></ol>
895
896  </div>
897 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
898 _8c.html" target="source" name="DrawGetStrokeLineCap">DrawGetStrokeLineCap</a></h2>
899 <div class="doc-section">
900
901 <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>
902
903 <p>The format of the DrawGetStrokeLineCap method is:</p>
904
905 <pre class="code">
906   LineCap DrawGetStrokeLineCap(const DrawingWand *wand)
907 </pre>
908
909 <p>A description of each parameter follows:</p></ol>
910
911 <h5>wand</h5>
912 <ol><p>the drawing wand.</p></ol>
913
914  </div>
915 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
916 _8c.html" target="source" name="DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a></h2>
917 <div class="doc-section">
918
919 <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>
920
921 <p>The format of the DrawGetStrokeLineJoin method is:</p>
922
923 <pre class="code">
924   LineJoin DrawGetStrokeLineJoin(const DrawingWand *wand)
925 </pre>
926
927 <p>A description of each parameter follows:</p></ol>
928
929 <h5>wand</h5>
930 <ol><p>the drawing wand.</p></ol>
931
932  </div>
933 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
934 _8c.html" target="source" name="DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a></h2>
935 <div class="doc-section">
936
937 <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>
938
939 <p>The format of the DrawGetStrokeMiterLimit method is:</p>
940
941 <pre class="code">
942   unsigned long DrawGetStrokeMiterLimit(const DrawingWand *wand)
943 </pre>
944
945 <p>A description of each parameter follows:</p></ol>
946
947 <h5>wand</h5>
948 <ol><p>the drawing wand.</p></ol>
949
950  </div>
951 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
952 _8c.html" target="source" name="DrawGetStrokeOpacity">DrawGetStrokeOpacity</a></h2>
953 <div class="doc-section">
954
955 <p>DrawGetStrokeOpacity() returns the opacity of stroked object outlines.</p></ol>
956
957 <p>The format of the DrawGetStrokeOpacity method is:</p>
958
959 <pre class="code">
960   double DrawGetStrokeOpacity(const DrawingWand *wand)
961 </pre>
962
963 <p>A description of each parameter follows:</p></ol>
964
965 <h5>wand</h5>
966 <ol><p>the drawing wand.</p></ol>
967
968  </div>
969 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
970 _8c.html" target="source" name="DrawGetStrokeWidth">DrawGetStrokeWidth</a></h2>
971 <div class="doc-section">
972
973 <p>DrawGetStrokeWidth() returns the width of the stroke used to draw object outlines.</p></ol>
974
975 <p>The format of the DrawGetStrokeWidth method is:</p>
976
977 <pre class="code">
978   double DrawGetStrokeWidth(const DrawingWand *wand)
979 </pre>
980
981 <p>A description of each parameter follows:</p></ol>
982
983 <h5>wand</h5>
984 <ol><p>the drawing wand.</p></ol>
985
986  </div>
987 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
988 _8c.html" target="source" name="DrawGetTextAlignment">DrawGetTextAlignment</a></h2>
989 <div class="doc-section">
990
991 <p>DrawGetTextAlignment() returns the alignment applied when annotating with text.</p></ol>
992
993 <p>The format of the DrawGetTextAlignment method is:</p>
994
995 <pre class="code">
996   AlignType DrawGetTextAlignment(DrawingWand *wand)
997 </pre>
998
999 <p>A description of each parameter follows:</p></ol>
1000
1001 <h5>wand</h5>
1002 <ol><p>the drawing wand.</p></ol>
1003
1004  </div>
1005 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1006 _8c.html" target="source" name="DrawGetTextAntialias">DrawGetTextAntialias</a></h2>
1007 <div class="doc-section">
1008
1009 <p>DrawGetTextAntialias() returns the current text antialias setting, which determines whether text is antialiased.  Text is antialiased by default.</p></ol>
1010
1011 <p>The format of the DrawGetTextAntialias method is:</p>
1012
1013 <pre class="code">
1014   MagickBooleanType DrawGetTextAntialias(const DrawingWand *wand)
1015 </pre>
1016
1017 <p>A description of each parameter follows:</p></ol>
1018
1019 <h5>wand</h5>
1020 <ol><p>the drawing wand.</p></ol>
1021
1022  </div>
1023 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1024 _8c.html" target="source" name="DrawGetTextDecoration">DrawGetTextDecoration</a></h2>
1025 <div class="doc-section">
1026
1027 <p>DrawGetTextDecoration() returns the decoration applied when annotating with text.</p></ol>
1028
1029 <p>The format of the DrawGetTextDecoration method is:</p>
1030
1031 <pre class="code">
1032   DecorationType DrawGetTextDecoration(DrawingWand *wand)
1033 </pre>
1034
1035 <p>A description of each parameter follows:</p></ol>
1036
1037 <h5>wand</h5>
1038 <ol><p>the drawing wand.</p></ol>
1039
1040  </div>
1041 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1042 _8c.html" target="source" name="DrawGetTextEncoding">DrawGetTextEncoding</a></h2>
1043 <div class="doc-section">
1044
1045 <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>
1046
1047 <p>The format of the DrawGetTextEncoding method is:</p>
1048
1049 <pre class="code">
1050   char *DrawGetTextEncoding(const DrawingWand *wand)
1051 </pre>
1052
1053 <p>A description of each parameter follows:</p></ol>
1054
1055 <h5>wand</h5>
1056 <ol><p>the drawing wand.</p></ol>
1057
1058  </div>
1059 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1060 _8c.html" target="source" name="DrawGetTextKerning">DrawGetTextKerning</a></h2>
1061 <div class="doc-section">
1062
1063 <p>DrawGetTextKerning() gets the spacing between characters in text.</p></ol>
1064
1065 <p>The format of the DrawSetFontKerning method is:</p>
1066
1067 <pre class="code">
1068   double DrawGetTextKerning(DrawingWand *wand)
1069 </pre>
1070
1071 <p>A description of each parameter follows:</p></ol>
1072
1073 <h5>wand</h5>
1074 <ol><p>the drawing wand.</p></ol>
1075
1076  </div>
1077 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1078 _8c.html" target="source" name="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
1079 <div class="doc-section">
1080
1081 <p>DrawGetTextInterwordSpacing() gets the spacing between lines in text.</p></ol>
1082
1083 <p>The format of the DrawSetFontKerning method is:</p>
1084
1085 <pre class="code">
1086   double DrawGetTextInterwordSpacing(DrawingWand *wand)
1087 </pre>
1088
1089 <p>A description of each parameter follows:</p></ol>
1090
1091 <h5>wand</h5>
1092 <ol><p>the drawing wand.</p></ol>
1093
1094  </div>
1095 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1096 _8c.html" target="source" name="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
1097 <div class="doc-section">
1098
1099 <p>DrawGetTextInterwordSpacing() gets the spacing between words in text.</p></ol>
1100
1101 <p>The format of the DrawSetFontKerning method is:</p>
1102
1103 <pre class="code">
1104   double DrawGetTextInterwordSpacing(DrawingWand *wand)
1105 </pre>
1106
1107 <p>A description of each parameter follows:</p></ol>
1108
1109 <h5>wand</h5>
1110 <ol><p>the drawing wand.</p></ol>
1111
1112  </div>
1113 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1114 _8c.html" target="source" name="DrawGetVectorGraphics">DrawGetVectorGraphics</a></h2>
1115 <div class="doc-section">
1116
1117 <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>
1118
1119 <p>The format of the DrawGetVectorGraphics method is:</p>
1120
1121 <pre class="code">
1122   char *DrawGetVectorGraphics(const DrawingWand *wand)
1123 </pre>
1124
1125 <p>A description of each parameter follows:</p></ol>
1126
1127 <h5>wand</h5>
1128 <ol><p>the drawing wand.</p></ol>
1129
1130  </div>
1131 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1132 _8c.html" target="source" name="DrawGetTextUnderColor">DrawGetTextUnderColor</a></h2>
1133 <div class="doc-section">
1134
1135 <p>DrawGetTextUnderColor() returns the color of a background rectangle to place under text annotations.</p></ol>
1136
1137 <p>The format of the DrawGetTextUnderColor method is:</p>
1138
1139 <pre class="code">
1140   void DrawGetTextUnderColor(const DrawingWand *wand,
1141     PixelWand *under_color)
1142 </pre>
1143
1144 <p>A description of each parameter follows:</p></ol>
1145
1146 <h5>wand</h5>
1147 <ol><p>the drawing wand.</p></ol>
1148
1149 <h5>under_color</h5>
1150 <ol><p>Return the under color.</p></ol>
1151
1152  </div>
1153 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1154 _8c.html" target="source" name="DrawLine">DrawLine</a></h2>
1155 <div class="doc-section">
1156
1157 <p>DrawLine() draws a line on the image using the current stroke color, stroke opacity, and stroke width.</p></ol>
1158
1159 <p>The format of the DrawLine method is:</p>
1160
1161 <pre class="code">
1162   void DrawLine(DrawingWand *wand,const double sx,const double sy,
1163     const double ex,const double ey)
1164 </pre>
1165
1166 <p>A description of each parameter follows:</p></ol>
1167
1168 <h5>wand</h5>
1169 <ol><p>the drawing wand.</p></ol>
1170
1171 <h5>sx</h5>
1172 <ol><p>starting x ordinate</p></ol>
1173
1174 <h5>sy</h5>
1175 <ol><p>starting y ordinate</p></ol>
1176
1177 <h5>ex</h5>
1178 <ol><p>ending x ordinate</p></ol>
1179
1180 <h5>ey</h5>
1181 <ol><p>ending y ordinate</p></ol>
1182
1183  </div>
1184 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1185 _8c.html" target="source" name="DrawMatte">DrawMatte</a></h2>
1186 <div class="doc-section">
1187
1188 <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>
1189
1190 <pre class="text">
1191       PointMethod: Select the target pixel
1192       ReplaceMethod: Select any pixel that matches the target pixel.
1193       FloodfillMethod: Select the target pixel and matching neighbors.
1194       FillToBorderMethod: Select the target pixel and neighbors not matching
1195   border color.
1196       ResetMethod: Select all pixels.
1197 </pre>
1198
1199 <p>The format of the DrawMatte method is:</p>
1200
1201 <pre class="code">
1202   void DrawMatte(DrawingWand *wand,const double x,const double y,
1203     const PaintMethod paint_method)
1204 </pre>
1205
1206 <p>A description of each parameter follows:</p></ol>
1207
1208 <h5>wand</h5>
1209 <ol><p>the drawing wand.</p></ol>
1210
1211 <h5>x</h5>
1212 <ol><p>x ordinate</p></ol>
1213
1214 <h5>y</h5>
1215 <ol><p>y ordinate</p></ol>
1216
1217 <h5>paint_method</h5>
1218 <ol><p>paint method.</p></ol>
1219
1220  </div>
1221 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1222 _8c.html" target="source" name="DrawPathClose">DrawPathClose</a></h2>
1223 <div class="doc-section">
1224
1225 <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>
1226
1227 <p>The format of the DrawPathClose method is:</p>
1228
1229 <pre class="code">
1230   void DrawPathClose(DrawingWand *wand)
1231 </pre>
1232
1233 <p>A description of each parameter follows:</p></ol>
1234
1235 <h5>wand</h5>
1236 <ol><p>the drawing wand.</p></ol>
1237
1238  </div>
1239 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1240 _8c.html" target="source" name="DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a></h2>
1241 <div class="doc-section">
1242
1243 <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>
1244
1245 <p>The format of the DrawPathCurveToAbsolute method is:</p>
1246
1247 <pre class="code">
1248   void DrawPathCurveToAbsolute(DrawingWand *wand,const double x1,
1249     const double y1,const double x2,const double y2,const double x,
1250     const double y)
1251 </pre>
1252
1253 <p>A description of each parameter follows:</p></ol>
1254
1255 <h5>wand</h5>
1256 <ol><p>the drawing wand.</p></ol>
1257
1258 <h5>x1</h5>
1259 <ol><p>x ordinate of control point for curve beginning</p></ol>
1260
1261 <h5>y1</h5>
1262 <ol><p>y ordinate of control point for curve beginning</p></ol>
1263
1264 <h5>x2</h5>
1265 <ol><p>x ordinate of control point for curve ending</p></ol>
1266
1267 <h5>y2</h5>
1268 <ol><p>y ordinate of control point for curve ending</p></ol>
1269
1270 <h5>x</h5>
1271 <ol><p>x ordinate of the end of the curve</p></ol>
1272
1273 <h5>y</h5>
1274 <ol><p>y ordinate of the end of the curve</p></ol>
1275
1276  </div>
1277 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1278 _8c.html" target="source" name="DrawPathCurveToRelative">DrawPathCurveToRelative</a></h2>
1279 <div class="doc-section">
1280
1281 <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>
1282
1283 <p>The format of the DrawPathCurveToRelative method is:</p>
1284
1285 <pre class="code">
1286   void DrawPathCurveToRelative(DrawingWand *wand,const double x1,
1287     const double y1,const double x2,const double y2,const double x,
1288     const double y)
1289 </pre>
1290
1291 <p>A description of each parameter follows:</p></ol>
1292
1293 <h5>wand</h5>
1294 <ol><p>the drawing wand.</p></ol>
1295
1296 <h5>x1</h5>
1297 <ol><p>x ordinate of control point for curve beginning</p></ol>
1298
1299 <h5>y1</h5>
1300 <ol><p>y ordinate of control point for curve beginning</p></ol>
1301
1302 <h5>x2</h5>
1303 <ol><p>x ordinate of control point for curve ending</p></ol>
1304
1305 <h5>y2</h5>
1306 <ol><p>y ordinate of control point for curve ending</p></ol>
1307
1308 <h5>x</h5>
1309 <ol><p>x ordinate of the end of the curve</p></ol>
1310
1311 <h5>y</h5>
1312 <ol><p>y ordinate of the end of the curve</p></ol>
1313
1314  </div>
1315 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1316 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a></h2>
1317 <div class="doc-section">
1318
1319 <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>
1320
1321 <p>The format of the DrawPathCurveToQuadraticBezierAbsolute method is:</p>
1322
1323 <pre class="code">
1324   void DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *wand,
1325     const double x1,const double y1,onst double x,const double y)
1326 </pre>
1327
1328 <p>A description of each parameter follows:</p></ol>
1329
1330 <h5>wand</h5>
1331 <ol><p>the drawing wand.</p></ol>
1332
1333 <h5>x1</h5>
1334 <ol><p>x ordinate of the control point</p></ol>
1335
1336 <h5>y1</h5>
1337 <ol><p>y ordinate of the control point</p></ol>
1338
1339 <h5>x</h5>
1340 <ol><p>x ordinate of final point</p></ol>
1341
1342 <h5>y</h5>
1343 <ol><p>y ordinate of final point</p></ol>
1344
1345  </div>
1346 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1347 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a></h2>
1348 <div class="doc-section">
1349
1350 <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>
1351
1352 <p>The format of the DrawPathCurveToQuadraticBezierRelative method is:</p>
1353
1354 <pre class="code">
1355   void DrawPathCurveToQuadraticBezierRelative(DrawingWand *wand,
1356     const double x1,const double y1,const double x,const double y)
1357 </pre>
1358
1359 <p>A description of each parameter follows:</p></ol>
1360
1361 <h5>wand</h5>
1362 <ol><p>the drawing wand.</p></ol>
1363
1364 <h5>x1</h5>
1365 <ol><p>x ordinate of the control point</p></ol>
1366
1367 <h5>y1</h5>
1368 <ol><p>y ordinate of the control point</p></ol>
1369
1370 <h5>x</h5>
1371 <ol><p>x ordinate of final point</p></ol>
1372
1373 <h5>y</h5>
1374 <ol><p>y ordinate of final point</p></ol>
1375
1376  </div>
1377 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1378 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
1379 <div class="doc-section">
1380
1381 <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>
1382
1383 <p>The format of the DrawPathCurveToQuadraticBezierSmoothAbsolute method is:</p>
1384
1385 <pre class="code">
1386   void DrawPathCurveToQuadraticBezierSmoothAbsolute(
1387     DrawingWand *wand,const double x,const double y)
1388 </pre>
1389
1390 <p>A description of each parameter follows:</p></ol>
1391
1392 <h5>wand</h5>
1393 <ol><p>the drawing wand.</p></ol>
1394
1395 <h5>x</h5>
1396 <ol><p>x ordinate of final point</p></ol>
1397
1398 <h5>y</h5>
1399 <ol><p>y ordinate of final point</p></ol>
1400
1401  </div>
1402 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1403 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
1404 <div class="doc-section">
1405
1406 <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>
1407
1408 <p>The format of the DrawPathCurveToQuadraticBezierSmoothRelative method is:</p>
1409
1410 <pre class="code">
1411   void DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *wand,
1412     const double x,const double y)
1413 </pre>
1414
1415 <p>A description of each parameter follows:</p></ol>
1416
1417 <h5>wand</h5>
1418 <ol><p>the drawing wand.</p></ol>
1419
1420 <h5>x</h5>
1421 <ol><p>x ordinate of final point</p></ol>
1422
1423 <h5>y</h5>
1424 <ol><p>y ordinate of final point</p></ol>
1425
1426  </div>
1427 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1428 _8c.html" target="source" name="DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a></h2>
1429 <div class="doc-section">
1430
1431 <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>
1432
1433 <p>The format of the DrawPathCurveToSmoothAbsolute method is:</p>
1434
1435 <pre class="code">
1436   void DrawPathCurveToSmoothAbsolute(DrawingWand *wand,
1437     const double x2const double y2,const double x,const double y)
1438 </pre>
1439
1440 <p>A description of each parameter follows:</p></ol>
1441
1442 <h5>wand</h5>
1443 <ol><p>the drawing wand.</p></ol>
1444
1445 <h5>x2</h5>
1446 <ol><p>x ordinate of second control point</p></ol>
1447
1448 <h5>y2</h5>
1449 <ol><p>y ordinate of second control point</p></ol>
1450
1451 <h5>x</h5>
1452 <ol><p>x ordinate of termination point</p></ol>
1453
1454 <h5>y</h5>
1455 <ol><p>y ordinate of termination point</p></ol>
1456
1457  </div>
1458 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1459 _8c.html" target="source" name="DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a></h2>
1460 <div class="doc-section">
1461
1462 <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>
1463
1464 <p>The format of the DrawPathCurveToSmoothRelative method is:</p>
1465
1466 <pre class="code">
1467   void DrawPathCurveToSmoothRelative(DrawingWand *wand,
1468     const double x2,const double y2,const double x,const double y)
1469 </pre>
1470
1471 <p>A description of each parameter follows:</p></ol>
1472
1473 <h5>wand</h5>
1474 <ol><p>the drawing wand.</p></ol>
1475
1476 <h5>x2</h5>
1477 <ol><p>x ordinate of second control point</p></ol>
1478
1479 <h5>y2</h5>
1480 <ol><p>y ordinate of second control point</p></ol>
1481
1482 <h5>x</h5>
1483 <ol><p>x ordinate of termination point</p></ol>
1484
1485 <h5>y</h5>
1486 <ol><p>y ordinate of termination point</p></ol>
1487
1488  </div>
1489 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1490 _8c.html" target="source" name="DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a></h2>
1491 <div class="doc-section">
1492
1493 <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>
1494
1495 <p>The format of the DrawPathEllipticArcAbsolute method is:</p>
1496
1497 <pre class="code">
1498   void DrawPathEllipticArcAbsolute(DrawingWand *wand,
1499     const double rx,const double ry,const double x_axis_rotation,
1500     const MagickBooleanType large_arc_flag,
1501     const MagickBooleanType sweep_flag,const double x,const double y)
1502 </pre>
1503
1504 <p>A description of each parameter follows:</p></ol>
1505
1506 <h5>wand</h5>
1507 <ol><p>the drawing wand.</p></ol>
1508
1509 <h5>rx</h5>
1510 <ol><p>x radius</p></ol>
1511
1512 <h5>ry</h5>
1513 <ol><p>y radius</p></ol>
1514
1515 <h5>x_axis_rotation</h5>
1516 <ol><p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p></ol>
1517
1518 <h5>large_arc_flag</h5>
1519 <ol><p>If non-zero (true) then draw the larger of the available arcs</p></ol>
1520
1521 <h5>sweep_flag</h5>
1522 <ol><p>If non-zero (true) then draw the arc matching a clock-wise rotation</p></ol>
1523
1524
1525  </div>
1526 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1527 _8c.html" target="source" name="DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a></h2>
1528 <div class="doc-section">
1529
1530 <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>
1531
1532 <p>The format of the DrawPathEllipticArcRelative method is:</p>
1533
1534 <pre class="code">
1535   void DrawPathEllipticArcRelative(DrawingWand *wand,
1536     const double rx,const double ry,const double x_axis_rotation,
1537     const MagickBooleanType large_arc_flag,
1538     const MagickBooleanType sweep_flag,const double x,const double y)
1539 </pre>
1540
1541 <p>A description of each parameter follows:</p></ol>
1542
1543 <h5>wand</h5>
1544 <ol><p>the drawing wand.</p></ol>
1545
1546 <h5>rx</h5>
1547 <ol><p>x radius</p></ol>
1548
1549 <h5>ry</h5>
1550 <ol><p>y radius</p></ol>
1551
1552 <h5>x_axis_rotation</h5>
1553 <ol><p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p></ol>
1554
1555 <h5>large_arc_flag</h5>
1556 <ol><p>If non-zero (true) then draw the larger of the available arcs</p></ol>
1557
1558 <h5>sweep_flag</h5>
1559 <ol><p>If non-zero (true) then draw the arc matching a clock-wise rotation</p></ol>
1560
1561  </div>
1562 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1563 _8c.html" target="source" name="DrawPathFinish">DrawPathFinish</a></h2>
1564 <div class="doc-section">
1565
1566 <p>DrawPathFinish() terminates the current path.</p></ol>
1567
1568 <p>The format of the DrawPathFinish method is:</p>
1569
1570 <pre class="code">
1571   void DrawPathFinish(DrawingWand *wand)
1572 </pre>
1573
1574 <p>A description of each parameter follows:</p></ol>
1575
1576 <h5>wand</h5>
1577 <ol><p>the drawing wand.</p></ol>
1578
1579  </div>
1580 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1581 _8c.html" target="source" name="DrawPathLineToAbsolute">DrawPathLineToAbsolute</a></h2>
1582 <div class="doc-section">
1583
1584 <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>
1585
1586 <p>The format of the DrawPathLineToAbsolute method is:</p>
1587
1588 <pre class="code">
1589   void DrawPathLineToAbsolute(DrawingWand *wand,const double x,
1590     const double y)
1591 </pre>
1592
1593 <p>A description of each parameter follows:</p></ol>
1594
1595 <h5>wand</h5>
1596 <ol><p>the drawing wand.</p></ol>
1597
1598 <h5>x</h5>
1599 <ol><p>target x ordinate</p></ol>
1600
1601 <h5>y</h5>
1602 <ol><p>target y ordinate</p></ol>
1603
1604  </div>
1605 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1606 _8c.html" target="source" name="DrawPathLineToRelative">DrawPathLineToRelative</a></h2>
1607 <div class="doc-section">
1608
1609 <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>
1610
1611 <p>The format of the DrawPathLineToRelative method is:</p>
1612
1613 <pre class="code">
1614   void DrawPathLineToRelative(DrawingWand *wand,const double x,
1615     const double y)
1616 </pre>
1617
1618 <p>A description of each parameter follows:</p></ol>
1619
1620 <h5>wand</h5>
1621 <ol><p>the drawing wand.</p></ol>
1622
1623 <h5>x</h5>
1624 <ol><p>target x ordinate</p></ol>
1625
1626 <h5>y</h5>
1627 <ol><p>target y ordinate</p></ol>
1628
1629  </div>
1630 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1631 _8c.html" target="source" name="DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a></h2>
1632 <div class="doc-section">
1633
1634 <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>
1635
1636 <p>The format of the DrawPathLineToHorizontalAbsolute method is:</p>
1637
1638 <pre class="code">
1639   void DrawPathLineToHorizontalAbsolute(DrawingWand *wand,
1640     const PathMode mode,const double x)
1641 </pre>
1642
1643 <p>A description of each parameter follows:</p></ol>
1644
1645 <h5>wand</h5>
1646 <ol><p>the drawing wand.</p></ol>
1647
1648 <h5>x</h5>
1649 <ol><p>target x ordinate</p></ol>
1650
1651  </div>
1652 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1653 _8c.html" target="source" name="DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a></h2>
1654 <div class="doc-section">
1655
1656 <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>
1657
1658 <p>The format of the DrawPathLineToHorizontalRelative method is:</p>
1659
1660 <pre class="code">
1661   void DrawPathLineToHorizontalRelative(DrawingWand *wand,
1662     const double x)
1663 </pre>
1664
1665 <p>A description of each parameter follows:</p></ol>
1666
1667 <h5>wand</h5>
1668 <ol><p>the drawing wand.</p></ol>
1669
1670 <h5>x</h5>
1671 <ol><p>target x ordinate</p></ol>
1672
1673  </div>
1674 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1675 _8c.html" target="source" name="DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a></h2>
1676 <div class="doc-section">
1677
1678 <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>
1679
1680 <p>The format of the DrawPathLineToVerticalAbsolute method is:</p>
1681
1682 <pre class="code">
1683   void DrawPathLineToVerticalAbsolute(DrawingWand *wand,
1684     const double y)
1685 </pre>
1686
1687 <p>A description of each parameter follows:</p></ol>
1688
1689 <h5>wand</h5>
1690 <ol><p>the drawing wand.</p></ol>
1691
1692 <h5>y</h5>
1693 <ol><p>target y ordinate</p></ol>
1694
1695  </div>
1696 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1697 _8c.html" target="source" name="DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a></h2>
1698 <div class="doc-section">
1699
1700 <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>
1701
1702 <p>The format of the DrawPathLineToVerticalRelative method is:</p>
1703
1704 <pre class="code">
1705   void DrawPathLineToVerticalRelative(DrawingWand *wand,
1706     const double y)
1707 </pre>
1708
1709 <p>A description of each parameter follows:</p></ol>
1710
1711 <h5>wand</h5>
1712 <ol><p>the drawing wand.</p></ol>
1713
1714 <h5>y</h5>
1715 <ol><p>target y ordinate</p></ol>
1716
1717  </div>
1718 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1719 _8c.html" target="source" name="DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a></h2>
1720 <div class="doc-section">
1721
1722 <p>DrawPathMoveToAbsolute() starts a new sub-path at the given coordinate using absolute coordinates. The current point then becomes the specified coordinate.</p></ol>
1723
1724 <p>The format of the DrawPathMoveToAbsolute method is:</p>
1725
1726 <pre class="code">
1727   void DrawPathMoveToAbsolute(DrawingWand *wand,const double x,
1728     const double y)
1729 </pre>
1730
1731 <p>A description of each parameter follows:</p></ol>
1732
1733 <h5>wand</h5>
1734 <ol><p>the drawing wand.</p></ol>
1735
1736 <h5>x</h5>
1737 <ol><p>target x ordinate</p></ol>
1738
1739 <h5>y</h5>
1740 <ol><p>target y ordinate</p></ol>
1741
1742  </div>
1743 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1744 _8c.html" target="source" name="DrawPathMoveToRelative">DrawPathMoveToRelative</a></h2>
1745 <div class="doc-section">
1746
1747 <p>DrawPathMoveToRelative() starts a new sub-path at the given coordinate using relative coordinates. The current point then becomes the specified coordinate.</p></ol>
1748
1749 <p>The format of the DrawPathMoveToRelative method is:</p>
1750
1751 <pre class="code">
1752   void DrawPathMoveToRelative(DrawingWand *wand,const double x,
1753     const double y)
1754 </pre>
1755
1756 <p>A description of each parameter follows:</p></ol>
1757
1758 <h5>wand</h5>
1759 <ol><p>the drawing wand.</p></ol>
1760
1761 <h5>x</h5>
1762 <ol><p>target x ordinate</p></ol>
1763
1764 <h5>y</h5>
1765 <ol><p>target y ordinate</p></ol>
1766
1767  </div>
1768 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1769 _8c.html" target="source" name="DrawPathStart">DrawPathStart</a></h2>
1770 <div class="doc-section">
1771
1772 <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>
1773
1774 <p>The format of the DrawPathStart method is:</p>
1775
1776 <pre class="code">
1777   void DrawPathStart(DrawingWand *wand)
1778 </pre>
1779
1780 <p>A description of each parameter follows:</p></ol>
1781
1782 <h5>wand</h5>
1783 <ol><p>the drawing wand.</p></ol>
1784
1785  </div>
1786 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1787 _8c.html" target="source" name="DrawPoint">DrawPoint</a></h2>
1788 <div class="doc-section">
1789
1790 <p>DrawPoint() draws a point using the current fill color.</p></ol>
1791
1792 <p>The format of the DrawPoint method is:</p>
1793
1794 <pre class="code">
1795   void DrawPoint(DrawingWand *wand,const double x,const double y)
1796 </pre>
1797
1798 <p>A description of each parameter follows:</p></ol>
1799
1800 <h5>wand</h5>
1801 <ol><p>the drawing wand.</p></ol>
1802
1803 <h5>x</h5>
1804 <ol><p>target x coordinate</p></ol>
1805
1806 <h5>y</h5>
1807 <ol><p>target y coordinate</p></ol>
1808
1809  </div>
1810 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1811 _8c.html" target="source" name="DrawPolygon">DrawPolygon</a></h2>
1812 <div class="doc-section">
1813
1814 <p>DrawPolygon() draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p></ol>
1815
1816 <p>The format of the DrawPolygon method is:</p>
1817
1818 <pre class="code">
1819   void DrawPolygon(DrawingWand *wand,
1820     const unsigned long number_coordinates,const PointInfo *coordinates)
1821 </pre>
1822
1823 <p>A description of each parameter follows:</p></ol>
1824
1825 <h5>wand</h5>
1826 <ol><p>the drawing wand.</p></ol>
1827
1828 <h5>number_coordinates</h5>
1829 <ol><p>number of coordinates</p></ol>
1830
1831 <h5>coordinates</h5>
1832 <ol><p>coordinate array</p></ol>
1833
1834  </div>
1835 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1836 _8c.html" target="source" name="DrawPolyline">DrawPolyline</a></h2>
1837 <div class="doc-section">
1838
1839 <p>DrawPolyline() draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p></ol>
1840
1841 <p>The format of the DrawPolyline method is:</p>
1842
1843 <pre class="code">
1844   void DrawPolyline(DrawingWand *wand,
1845     const unsigned long number_coordinates,const PointInfo *coordinates)
1846 </pre>
1847
1848 <p>A description of each parameter follows:</p></ol>
1849
1850 <h5>wand</h5>
1851 <ol><p>the drawing wand.</p></ol>
1852
1853 <h5>number_coordinates</h5>
1854 <ol><p>number of coordinates</p></ol>
1855
1856 <h5>coordinates</h5>
1857 <ol><p>coordinate array</p></ol>
1858
1859  </div>
1860 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1861 _8c.html" target="source" name="DrawPopClipPath">DrawPopClipPath</a></h2>
1862 <div class="doc-section">
1863
1864 <p>DrawPopClipPath() terminates a clip path definition.</p></ol>
1865
1866 <p>The format of the DrawPopClipPath method is:</p>
1867
1868 <pre class="code">
1869   void DrawPopClipPath(DrawingWand *wand)
1870 </pre>
1871
1872 <p>A description of each parameter follows:</p></ol>
1873
1874 <h5>wand</h5>
1875 <ol><p>the drawing wand.</p></ol>
1876
1877  </div>
1878 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1879 _8c.html" target="source" name="DrawPopDefs">DrawPopDefs</a></h2>
1880 <div class="doc-section">
1881
1882 <p>DrawPopDefs() terminates a definition list.</p></ol>
1883
1884 <p>The format of the DrawPopDefs method is:</p>
1885
1886 <pre class="code">
1887   void DrawPopDefs(DrawingWand *wand)
1888 </pre>
1889
1890 <p>A description of each parameter follows:</p></ol>
1891
1892 <h5>wand</h5>
1893 <ol><p>the drawing wand.</p></ol>
1894
1895  </div>
1896 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1897 _8c.html" target="source" name="DrawPopPattern">DrawPopPattern</a></h2>
1898 <div class="doc-section">
1899
1900 <p>DrawPopPattern() terminates a pattern definition.</p></ol>
1901
1902 <p>The format of the DrawPopPattern method is:</p>
1903
1904 <pre class="code">
1905   MagickBooleanType DrawPopPattern(DrawingWand *wand)
1906 </pre>
1907
1908 <p>A description of each parameter follows:</p></ol>
1909
1910 <h5>wand</h5>
1911 <ol><p>the drawing wand.</p></ol>
1912
1913  </div>
1914 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1915 _8c.html" target="source" name="DrawPushClipPath">DrawPushClipPath</a></h2>
1916 <div class="doc-section">
1917
1918 <p>DrawPushClipPath() starts a clip path definition which is comprized of any number of drawing commands and terminated by a DrawPopClipPath() command.</p></ol>
1919
1920 <p>The format of the DrawPushClipPath method is:</p>
1921
1922 <pre class="code">
1923   void DrawPushClipPath(DrawingWand *wand,const char *clip_mask_id)
1924 </pre>
1925
1926 <p>A description of each parameter follows:</p></ol>
1927
1928 <h5>wand</h5>
1929 <ol><p>the drawing wand.</p></ol>
1930
1931 <h5>clip_mask_id</h5>
1932 <ol><p>string identifier to associate with the clip path for later use.</p></ol>
1933
1934  </div>
1935 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1936 _8c.html" target="source" name="DrawPushDefs">DrawPushDefs</a></h2>
1937 <div class="doc-section">
1938
1939 <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>
1940
1941 <p>The format of the DrawPushDefs method is:</p>
1942
1943 <pre class="code">
1944   void DrawPushDefs(DrawingWand *wand)
1945 </pre>
1946
1947 <p>A description of each parameter follows:</p></ol>
1948
1949 <h5>wand</h5>
1950 <ol><p>the drawing wand.</p></ol>
1951
1952  </div>
1953 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1954 _8c.html" target="source" name="DrawPushPattern">DrawPushPattern</a></h2>
1955 <div class="doc-section">
1956
1957 <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>
1958
1959 <p>The format of the DrawPushPattern method is:</p>
1960
1961 <pre class="code">
1962   MagickBooleanType DrawPushPattern(DrawingWand *wand,
1963     const char *pattern_id,const double x,const double y,
1964     const double width,const double height)
1965 </pre>
1966
1967 <p>A description of each parameter follows:</p></ol>
1968
1969 <h5>wand</h5>
1970 <ol><p>the drawing wand.</p></ol>
1971
1972 <h5>pattern_id</h5>
1973 <ol><p>pattern identification for later reference</p></ol>
1974
1975 <h5>x</h5>
1976 <ol><p>x ordinate of top left corner</p></ol>
1977
1978 <h5>y</h5>
1979 <ol><p>y ordinate of top left corner</p></ol>
1980
1981 <h5>width</h5>
1982 <ol><p>width of pattern space</p></ol>
1983
1984 <h5>height</h5>
1985 <ol><p>height of pattern space</p></ol>
1986
1987  </div>
1988 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1989 _8c.html" target="source" name="DrawRectangle">DrawRectangle</a></h2>
1990 <div class="doc-section">
1991
1992 <p>DrawRectangle() draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.</p></ol>
1993
1994 <p>The format of the DrawRectangle method is:</p>
1995
1996 <pre class="code">
1997   void DrawRectangle(DrawingWand *wand,const double x1,
1998     const double y1,const double x2,const double y2)
1999 </pre>
2000
2001 <p>A description of each parameter follows:</p></ol>
2002
2003 <h5>x1</h5>
2004 <ol><p>x ordinate of first coordinate</p></ol>
2005
2006 <h5>y1</h5>
2007 <ol><p>y ordinate of first coordinate</p></ol>
2008
2009 <h5>x2</h5>
2010 <ol><p>x ordinate of second coordinate</p></ol>
2011
2012 <h5>y2</h5>
2013 <ol><p>y ordinate of second coordinate</p></ol>
2014
2015  </div>
2016 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2017 _8c.html" target="source" name="DrawResetVectorGraphics">DrawResetVectorGraphics</a></h2>
2018 <div class="doc-section">
2019
2020 <p>DrawResetVectorGraphics() resets the vector graphics associated with the specified wand.</p></ol>
2021
2022 <p>The format of the DrawResetVectorGraphics method is:</p>
2023
2024 <pre class="code">
2025   void DrawResetVectorGraphics(DrawingWand *wand)
2026 </pre>
2027
2028 <p>A description of each parameter follows:</p></ol>
2029
2030 <h5>wand</h5>
2031 <ol><p>the drawing wand.</p></ol>
2032
2033  </div>
2034 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2035 _8c.html" target="source" name="DrawRotate">DrawRotate</a></h2>
2036 <div class="doc-section">
2037
2038 <p>DrawRotate() applies the specified rotation to the current coordinate space.</p></ol>
2039
2040 <p>The format of the DrawRotate method is:</p>
2041
2042 <pre class="code">
2043   void DrawRotate(DrawingWand *wand,const double degrees)
2044 </pre>
2045
2046 <p>A description of each parameter follows:</p></ol>
2047
2048 <h5>wand</h5>
2049 <ol><p>the drawing wand.</p></ol>
2050
2051 <h5>degrees</h5>
2052 <ol><p>degrees of rotation</p></ol>
2053
2054  </div>
2055 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2056 _8c.html" target="source" name="DrawRoundRectangle">DrawRoundRectangle</a></h2>
2057 <div class="doc-section">
2058
2059 <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>
2060
2061 <p>The format of the DrawRoundRectangle method is:</p>
2062
2063 <pre class="code">
2064   void DrawRoundRectangle(DrawingWand *wand,double x1,double y1,
2065     double x2,double y2,double rx,double ry)
2066 </pre>
2067
2068 <p>A description of each parameter follows:</p></ol>
2069
2070 <h5>wand</h5>
2071 <ol><p>the drawing wand.</p></ol>
2072
2073 <h5>x1</h5>
2074 <ol><p>x ordinate of first coordinate</p></ol>
2075
2076 <h5>y1</h5>
2077 <ol><p>y ordinate of first coordinate</p></ol>
2078
2079 <h5>x2</h5>
2080 <ol><p>x ordinate of second coordinate</p></ol>
2081
2082 <h5>y2</h5>
2083 <ol><p>y ordinate of second coordinate</p></ol>
2084
2085 <h5>rx</h5>
2086 <ol><p>radius of corner in horizontal direction</p></ol>
2087
2088 <h5>ry</h5>
2089 <ol><p>radius of corner in vertical direction</p></ol>
2090
2091  </div>
2092 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2093 _8c.html" target="source" name="DrawScale">DrawScale</a></h2>
2094 <div class="doc-section">
2095
2096 <p>DrawScale() adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space.</p></ol>
2097
2098 <p>The format of the DrawScale method is:</p>
2099
2100 <pre class="code">
2101   void DrawScale(DrawingWand *wand,const double x,const double y)
2102 </pre>
2103
2104 <p>A description of each parameter follows:</p></ol>
2105
2106 <h5>wand</h5>
2107 <ol><p>the drawing wand.</p></ol>
2108
2109 <h5>x</h5>
2110 <ol><p>horizontal scale factor</p></ol>
2111
2112 <h5>y</h5>
2113 <ol><p>vertical scale factor</p></ol>
2114
2115  </div>
2116 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2117 _8c.html" target="source" name="DrawSetBorderColor">DrawSetBorderColor</a></h2>
2118 <div class="doc-section">
2119
2120 <p>DrawSetBorderColor() sets the border color to be used for drawing bordered objects.</p></ol>
2121
2122 <p>The format of the DrawSetBorderColor method is:</p>
2123
2124 <pre class="code">
2125   void DrawSetBorderColor(DrawingWand *wand,const PixelWand *border_wand)
2126 </pre>
2127
2128 <p>A description of each parameter follows:</p></ol>
2129
2130 <h5>wand</h5>
2131 <ol><p>the drawing wand.</p></ol>
2132
2133 <h5>border_wand</h5>
2134 <ol><p>border wand.</p></ol>
2135
2136  </div>
2137 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2138 _8c.html" target="source" name="DrawSetClipPath">DrawSetClipPath</a></h2>
2139 <div class="doc-section">
2140
2141 <p>DrawSetClipPath() associates a named clipping path with the image.  Only the areas drawn on by the clipping path will be modified as long as it remains in effect.</p></ol>
2142
2143 <p>The format of the DrawSetClipPath method is:</p>
2144
2145 <pre class="code">
2146   MagickBooleanType DrawSetClipPath(DrawingWand *wand,
2147     const char *clip_mask)
2148 </pre>
2149
2150 <p>A description of each parameter follows:</p></ol>
2151
2152 <h5>wand</h5>
2153 <ol><p>the drawing wand.</p></ol>
2154
2155 <h5>clip_mask</h5>
2156 <ol><p>name of clipping path to associate with image</p></ol>
2157
2158  </div>
2159 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2160 _8c.html" target="source" name="DrawSetClipRule">DrawSetClipRule</a></h2>
2161 <div class="doc-section">
2162
2163 <p>DrawSetClipRule() set the polygon fill rule to be used by the clipping path.</p></ol>
2164
2165 <p>The format of the DrawSetClipRule method is:</p>
2166
2167 <pre class="code">
2168   void DrawSetClipRule(DrawingWand *wand,const FillRule fill_rule)
2169 </pre>
2170
2171 <p>A description of each parameter follows:</p></ol>
2172
2173 <h5>wand</h5>
2174 <ol><p>the drawing wand.</p></ol>
2175
2176 <h5>fill_rule</h5>
2177 <ol><p>fill rule (EvenOddRule or NonZeroRule)</p></ol>
2178
2179  </div>
2180 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2181 _8c.html" target="source" name="DrawSetClipUnits">DrawSetClipUnits</a></h2>
2182 <div class="doc-section">
2183
2184 <p>DrawSetClipUnits() sets the interpretation of clip path units.</p></ol>
2185
2186 <p>The format of the DrawSetClipUnits method is:</p>
2187
2188 <pre class="code">
2189   void DrawSetClipUnits(DrawingWand *wand,
2190     const ClipPathUnits clip_units)
2191 </pre>
2192
2193 <p>A description of each parameter follows:</p></ol>
2194
2195 <h5>wand</h5>
2196 <ol><p>the drawing wand.</p></ol>
2197
2198 <h5>clip_units</h5>
2199 <ol><p>units to use (UserSpace, UserSpaceOnUse, or ObjectBoundingBox)</p></ol>
2200
2201  </div>
2202 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2203 _8c.html" target="source" name="DrawSetFillColor">DrawSetFillColor</a></h2>
2204 <div class="doc-section">
2205
2206 <p>DrawSetFillColor() sets the fill color to be used for drawing filled objects.</p></ol>
2207
2208 <p>The format of the DrawSetFillColor method is:</p>
2209
2210 <pre class="code">
2211   void DrawSetFillColor(DrawingWand *wand,const PixelWand *fill_wand)
2212 </pre>
2213
2214 <p>A description of each parameter follows:</p></ol>
2215
2216 <h5>wand</h5>
2217 <ol><p>the drawing wand.</p></ol>
2218
2219 <h5>fill_wand</h5>
2220 <ol><p>fill wand.</p></ol>
2221
2222  </div>
2223 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2224 _8c.html" target="source" name="DrawSetFillOpacity">DrawSetFillOpacity</a></h2>
2225 <div class="doc-section">
2226
2227 <p>DrawSetFillOpacity() sets the opacity to use when drawing using the fill color or fill texture.  Fully opaque is 1.0.</p></ol>
2228
2229 <p>The format of the DrawSetFillOpacity method is:</p>
2230
2231 <pre class="code">
2232   void DrawSetFillOpacity(DrawingWand *wand,const double fill_opacity)
2233 </pre>
2234
2235 <p>A description of each parameter follows:</p></ol>
2236
2237 <h5>wand</h5>
2238 <ol><p>the drawing wand.</p></ol>
2239
2240 <h5>fill_opacity</h5>
2241 <ol><p>fill opacity</p></ol>
2242
2243  </div>
2244 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2245 _8c.html" target="source" name="DrawSetOpacity">DrawSetOpacity</a></h2>
2246 <div class="doc-section">
2247
2248 <p>DrawSetOpacity() sets the opacity to use when drawing using the fill or stroke color or texture.  Fully opaque is 1.0.</p></ol>
2249
2250 <p>The format of the DrawSetOpacity method is:</p>
2251
2252 <pre class="code">
2253   void DrawSetOpacity(DrawingWand *wand,const double opacity)
2254 </pre>
2255
2256 <p>A description of each parameter follows:</p></ol>
2257
2258 <h5>wand</h5>
2259 <ol><p>the drawing wand.</p></ol>
2260
2261 <h5>opacity</h5>
2262 <ol><p>fill opacity</p></ol>
2263
2264  </div>
2265 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2266 _8c.html" target="source" name="DrawSetFillPatternURL">DrawSetFillPatternURL</a></h2>
2267 <div class="doc-section">
2268
2269 <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>
2270
2271 <p>The format of the DrawSetFillPatternURL method is:</p>
2272
2273 <pre class="code">
2274   MagickBooleanType DrawSetFillPatternURL(DrawingWand *wand,
2275     const char *fill_url)
2276 </pre>
2277
2278 <p>A description of each parameter follows:</p></ol>
2279
2280 <h5>wand</h5>
2281 <ol><p>the drawing wand.</p></ol>
2282
2283 <h5>fill_url</h5>
2284 <ol><p>URL to use to obtain fill pattern.</p></ol>
2285
2286  </div>
2287 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2288 _8c.html" target="source" name="DrawSetFillRule">DrawSetFillRule</a></h2>
2289 <div class="doc-section">
2290
2291 <p>DrawSetFillRule() sets the fill rule to use while drawing polygons.</p></ol>
2292
2293 <p>The format of the DrawSetFillRule method is:</p>
2294
2295 <pre class="code">
2296   void DrawSetFillRule(DrawingWand *wand,const FillRule fill_rule)
2297 </pre>
2298
2299 <p>A description of each parameter follows:</p></ol>
2300
2301 <h5>wand</h5>
2302 <ol><p>the drawing wand.</p></ol>
2303
2304 <h5>fill_rule</h5>
2305 <ol><p>fill rule (EvenOddRule or NonZeroRule)</p></ol>
2306
2307  </div>
2308 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2309 _8c.html" target="source" name="DrawSetFont">DrawSetFont</a></h2>
2310 <div class="doc-section">
2311
2312 <p>DrawSetFont() sets the fully-sepecified font to use when annotating with text.</p></ol>
2313
2314 <p>The format of the DrawSetFont method is:</p>
2315
2316 <pre class="code">
2317   MagickBooleanType DrawSetFont(DrawingWand *wand,const char *font_name)
2318 </pre>
2319
2320 <p>A description of each parameter follows:</p></ol>
2321
2322 <h5>wand</h5>
2323 <ol><p>the drawing wand.</p></ol>
2324
2325 <h5>font_name</h5>
2326 <ol><p>font name</p></ol>
2327
2328  </div>
2329 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2330 _8c.html" target="source" name="DrawSetFontFamily">DrawSetFontFamily</a></h2>
2331 <div class="doc-section">
2332
2333 <p>DrawSetFontFamily() sets the font family to use when annotating with text.</p></ol>
2334
2335 <p>The format of the DrawSetFontFamily method is:</p>
2336
2337 <pre class="code">
2338   MagickBooleanType DrawSetFontFamily(DrawingWand *wand,
2339     const char *font_family)
2340 </pre>
2341
2342 <p>A description of each parameter follows:</p></ol>
2343
2344 <h5>wand</h5>
2345 <ol><p>the drawing wand.</p></ol>
2346
2347 <h5>font_family</h5>
2348 <ol><p>font family</p></ol>
2349
2350  </div>
2351 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2352 _8c.html" target="source" name="DrawSetFontSize">DrawSetFontSize</a></h2>
2353 <div class="doc-section">
2354
2355 <p>DrawSetFontSize() sets the font pointsize to use when annotating with text.</p></ol>
2356
2357 <p>The format of the DrawSetFontSize method is:</p>
2358
2359 <pre class="code">
2360   void DrawSetFontSize(DrawingWand *wand,const double pointsize)
2361 </pre>
2362
2363 <p>A description of each parameter follows:</p></ol>
2364
2365 <h5>wand</h5>
2366 <ol><p>the drawing wand.</p></ol>
2367
2368 <h5>pointsize</h5>
2369 <ol><p>text pointsize</p></ol>
2370
2371  </div>
2372 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2373 _8c.html" target="source" name="DrawSetFontStretch">DrawSetFontStretch</a></h2>
2374 <div class="doc-section">
2375
2376 <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>
2377
2378 <p>The format of the DrawSetFontStretch method is:</p>
2379
2380 <pre class="code">
2381   void DrawSetFontStretch(DrawingWand *wand,
2382     const StretchType font_stretch)
2383 </pre>
2384
2385 <p>A description of each parameter follows:</p></ol>
2386
2387 <h5>wand</h5>
2388 <ol><p>the drawing wand.</p></ol>
2389
2390 <h5>font_stretch</h5>
2391 <ol><p>font stretch (NormalStretch, UltraCondensedStretch, CondensedStretch, SemiCondensedStretch, SemiExpandedStretch, ExpandedStretch, ExtraExpandedStretch, UltraExpandedStretch, AnyStretch)</p></ol>
2392
2393  </div>
2394 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2395 _8c.html" target="source" name="DrawSetFontStyle">DrawSetFontStyle</a></h2>
2396 <div class="doc-section">
2397
2398 <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>
2399
2400 <p>The format of the DrawSetFontStyle method is:</p>
2401
2402 <pre class="code">
2403   void DrawSetFontStyle(DrawingWand *wand,const StyleType style)
2404 </pre>
2405
2406 <p>A description of each parameter follows:</p></ol>
2407
2408 <h5>wand</h5>
2409 <ol><p>the drawing wand.</p></ol>
2410
2411 <h5>style</h5>
2412 <ol><p>font style (NormalStyle, ItalicStyle, ObliqueStyle, AnyStyle)</p></ol>
2413
2414  </div>
2415 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2416 _8c.html" target="source" name="DrawSetFontWeight">DrawSetFontWeight</a></h2>
2417 <div class="doc-section">
2418
2419 <p>DrawSetFontWeight() sets the font weight to use when annotating with text.</p></ol>
2420
2421 <p>The format of the DrawSetFontWeight method is:</p>
2422
2423 <pre class="code">
2424   void DrawSetFontWeight(DrawingWand *wand,
2425     const unsigned long font_weight)
2426 </pre>
2427
2428 <p>A description of each parameter follows:</p></ol>
2429
2430 <h5>wand</h5>
2431 <ol><p>the drawing wand.</p></ol>
2432
2433 <h5>font_weight</h5>
2434 <ol><p>font weight (valid range 100-900)</p></ol>
2435
2436  </div>
2437 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2438 _8c.html" target="source" name="DrawSetGravity">DrawSetGravity</a></h2>
2439 <div class="doc-section">
2440
2441 <p>DrawSetGravity() sets the text placement gravity to use when annotating with text.</p></ol>
2442
2443 <p>The format of the DrawSetGravity method is:</p>
2444
2445 <pre class="code">
2446   void DrawSetGravity(DrawingWand *wand,const GravityType gravity)
2447 </pre>
2448
2449 <p>A description of each parameter follows:</p></ol>
2450
2451 <h5>wand</h5>
2452 <ol><p>the drawing wand.</p></ol>
2453
2454 <h5>gravity</h5>
2455 <ol><p>positioning gravity (NorthWestGravity, NorthGravity, NorthEastGravity, WestGravity, CenterGravity, EastGravity, SouthWestGravity, SouthGravity, SouthEastGravity)</p></ol>
2456
2457  </div>
2458 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2459 _8c.html" target="source" name="DrawSetStrokeColor">DrawSetStrokeColor</a></h2>
2460 <div class="doc-section">
2461
2462 <p>DrawSetStrokeColor() sets the color used for stroking object outlines.</p></ol>
2463
2464 <p>The format of the DrawSetStrokeColor method is:</p>
2465
2466 <pre class="code">
2467   void DrawSetStrokeColor(DrawingWand *wand,
2468     const PixelWand *stroke_wand)
2469 </pre>
2470
2471 <p>A description of each parameter follows:</p></ol>
2472
2473 <h5>wand</h5>
2474 <ol><p>the drawing wand.</p></ol>
2475
2476 <h5>stroke_wand</h5>
2477 <ol><p>stroke wand.</p></ol>
2478
2479  </div>
2480 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2481 _8c.html" target="source" name="DrawSetStrokePatternURL">DrawSetStrokePatternURL</a></h2>
2482 <div class="doc-section">
2483
2484 <p>DrawSetStrokePatternURL() sets the pattern used for stroking object outlines.</p></ol>
2485
2486 <p>The format of the DrawSetStrokePatternURL method is:</p>
2487
2488 <pre class="code">
2489   MagickBooleanType DrawSetStrokePatternURL(DrawingWand *wand,
2490     const char *stroke_url)
2491 </pre>
2492
2493 <p>A description of each parameter follows:</p></ol>
2494
2495 <h5>wand</h5>
2496 <ol><p>the drawing wand.</p></ol>
2497
2498 <h5>stroke_url</h5>
2499 <ol><p>URL specifying pattern ID (e.g. "#pattern_id")</p></ol>
2500
2501  </div>
2502 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2503 _8c.html" target="source" name="DrawSetStrokeAntialias">DrawSetStrokeAntialias</a></h2>
2504 <div class="doc-section">
2505
2506 <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>
2507
2508 <p>The format of the DrawSetStrokeAntialias method is:</p>
2509
2510 <pre class="code">
2511   void DrawSetStrokeAntialias(DrawingWand *wand,
2512     const MagickBooleanType stroke_antialias)
2513 </pre>
2514
2515 <p>A description of each parameter follows:</p></ol>
2516
2517 <h5>wand</h5>
2518 <ol><p>the drawing wand.</p></ol>
2519
2520 <h5>stroke_antialias</h5>
2521 <ol><p>set to false (zero) to disable antialiasing</p></ol>
2522
2523  </div>
2524 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2525 _8c.html" target="source" name="DrawSetStrokeDashArray">DrawSetStrokeDashArray</a></h2>
2526 <div class="doc-section">
2527
2528 <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>
2529
2530 <p>The format of the DrawSetStrokeDashArray method is:</p>
2531
2532 <pre class="code">
2533   MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand,
2534     const unsigned long number_elements,const double *dash_array)
2535 </pre>
2536
2537 <p>A description of each parameter follows:</p></ol>
2538
2539 <h5>wand</h5>
2540 <ol><p>the drawing wand.</p></ol>
2541
2542 <h5>number_elements</h5>
2543 <ol><p>number of elements in dash array</p></ol>
2544
2545 <h5>dash_array</h5>
2546 <ol><p>dash array values</p></ol>
2547
2548  </div>
2549 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2550 _8c.html" target="source" name="DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a></h2>
2551 <div class="doc-section">
2552
2553 <p>DrawSetStrokeDashOffset() specifies the offset into the dash pattern to start the dash.</p></ol>
2554
2555 <p>The format of the DrawSetStrokeDashOffset method is:</p>
2556
2557 <pre class="code">
2558   void DrawSetStrokeDashOffset(DrawingWand *wand,
2559     const double dash_offset)
2560 </pre>
2561
2562 <p>A description of each parameter follows:</p></ol>
2563
2564 <h5>wand</h5>
2565 <ol><p>the drawing wand.</p></ol>
2566
2567 <h5>dash_offset</h5>
2568 <ol><p>dash offset</p></ol>
2569
2570  </div>
2571 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2572 _8c.html" target="source" name="DrawSetStrokeLineCap">DrawSetStrokeLineCap</a></h2>
2573 <div class="doc-section">
2574
2575 <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>
2576
2577 <p>The format of the DrawSetStrokeLineCap method is:</p>
2578
2579 <pre class="code">
2580   void DrawSetStrokeLineCap(DrawingWand *wand,
2581     const LineCap linecap)
2582 </pre>
2583
2584 <p>A description of each parameter follows:</p></ol>
2585
2586 <h5>wand</h5>
2587 <ol><p>the drawing wand.</p></ol>
2588
2589 <h5>linecap</h5>
2590 <ol><p>linecap style</p></ol>
2591
2592  </div>
2593 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2594 _8c.html" target="source" name="DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a></h2>
2595 <div class="doc-section">
2596
2597 <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>
2598
2599 <p>The format of the DrawSetStrokeLineJoin method is:</p>
2600
2601 <pre class="code">
2602   void DrawSetStrokeLineJoin(DrawingWand *wand,
2603     const LineJoin linejoin)
2604 </pre>
2605
2606 <p>A description of each parameter follows:</p></ol>
2607
2608 <h5>wand</h5>
2609 <ol><p>the drawing wand.</p></ol>
2610
2611 <h5>linejoin</h5>
2612 <ol><p>line join style</p></ol>
2613
2614  </div>
2615 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2616 _8c.html" target="source" name="DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a></h2>
2617 <div class="doc-section">
2618
2619 <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>
2620
2621 <p>The format of the DrawSetStrokeMiterLimit method is:</p>
2622
2623 <pre class="code">
2624   void DrawSetStrokeMiterLimit(DrawingWand *wand,
2625     const unsigned long miterlimit)
2626 </pre>
2627
2628 <p>A description of each parameter follows:</p></ol>
2629
2630 <h5>wand</h5>
2631 <ol><p>the drawing wand.</p></ol>
2632
2633 <h5>miterlimit</h5>
2634 <ol><p>miter limit</p></ol>
2635
2636  </div>
2637 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2638 _8c.html" target="source" name="DrawSetStrokeOpacity">DrawSetStrokeOpacity</a></h2>
2639 <div class="doc-section">
2640
2641 <p>DrawSetStrokeOpacity() specifies the opacity of stroked object outlines.</p></ol>
2642
2643 <p>The format of the DrawSetStrokeOpacity method is:</p>
2644
2645 <pre class="code">
2646   void DrawSetStrokeOpacity(DrawingWand *wand,
2647     const double stroke_opacity)
2648 </pre>
2649
2650 <p>A description of each parameter follows:</p></ol>
2651
2652 <h5>wand</h5>
2653 <ol><p>the drawing wand.</p></ol>
2654
2655 <h5>stroke_opacity</h5>
2656 <ol><p>stroke opacity.  The value 1.0 is opaque.</p></ol>
2657
2658  </div>
2659 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2660 _8c.html" target="source" name="DrawSetStrokeWidth">DrawSetStrokeWidth</a></h2>
2661 <div class="doc-section">
2662
2663 <p>DrawSetStrokeWidth() sets the width of the stroke used to draw object outlines.</p></ol>
2664
2665 <p>The format of the DrawSetStrokeWidth method is:</p>
2666
2667 <pre class="code">
2668   void DrawSetStrokeWidth(DrawingWand *wand,
2669     const double stroke_width)
2670 </pre>
2671
2672 <p>A description of each parameter follows:</p></ol>
2673
2674 <h5>wand</h5>
2675 <ol><p>the drawing wand.</p></ol>
2676
2677 <h5>stroke_width</h5>
2678 <ol><p>stroke width</p></ol>
2679
2680  </div>
2681 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2682 _8c.html" target="source" name="DrawSetTextAlignment">DrawSetTextAlignment</a></h2>
2683 <div class="doc-section">
2684
2685 <p>DrawSetTextAlignment() specifies a text alignment to be applied when annotating with text.</p></ol>
2686
2687 <p>The format of the DrawSetTextAlignment method is:</p>
2688
2689 <pre class="code">
2690   void DrawSetTextAlignment(DrawingWand *wand,const AlignType alignment)
2691 </pre>
2692
2693 <p>A description of each parameter follows:</p></ol>
2694
2695 <h5>wand</h5>
2696 <ol><p>the drawing wand.</p></ol>
2697
2698 <h5>alignment</h5>
2699 <ol><p>text alignment.  One of UndefinedAlign, LeftAlign, CenterAlign, or RightAlign.</p></ol>
2700
2701  </div>
2702 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2703 _8c.html" target="source" name="DrawSetTextAntialias">DrawSetTextAntialias</a></h2>
2704 <div class="doc-section">
2705
2706 <p>DrawSetTextAntialias() controls whether text is antialiased.  Text is antialiased by default.</p></ol>
2707
2708 <p>The format of the DrawSetTextAntialias method is:</p>
2709
2710 <pre class="code">
2711   void DrawSetTextAntialias(DrawingWand *wand,
2712     const MagickBooleanType text_antialias)
2713 </pre>
2714
2715 <p>A description of each parameter follows:</p></ol>
2716
2717 <h5>wand</h5>
2718 <ol><p>the drawing wand.</p></ol>
2719
2720 <h5>text_antialias</h5>
2721 <ol><p>antialias boolean. Set to false (0) to disable antialiasing.</p></ol>
2722
2723  </div>
2724 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2725 _8c.html" target="source" name="DrawSetTextDecoration">DrawSetTextDecoration</a></h2>
2726 <div class="doc-section">
2727
2728 <p>DrawSetTextDecoration() specifies a decoration to be applied when annotating with text.</p></ol>
2729
2730 <p>The format of the DrawSetTextDecoration method is:</p>
2731
2732 <pre class="code">
2733   void DrawSetTextDecoration(DrawingWand *wand,
2734     const DecorationType decoration)
2735 </pre>
2736
2737 <p>A description of each parameter follows:</p></ol>
2738
2739 <h5>wand</h5>
2740 <ol><p>the drawing wand.</p></ol>
2741
2742 <h5>decoration</h5>
2743 <ol><p>text decoration.  One of NoDecoration, UnderlineDecoration, OverlineDecoration, or LineThroughDecoration</p></ol>
2744
2745  </div>
2746 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2747 _8c.html" target="source" name="DrawSetTextEncoding">DrawSetTextEncoding</a></h2>
2748 <div class="doc-section">
2749
2750 <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>
2751
2752 <p>The format of the DrawSetTextEncoding method is:</p>
2753
2754 <pre class="code">
2755   void DrawSetTextEncoding(DrawingWand *wand,const char *encoding)
2756 </pre>
2757
2758 <p>A description of each parameter follows:</p></ol>
2759
2760 <h5>wand</h5>
2761 <ol><p>the drawing wand.</p></ol>
2762
2763 <h5>encoding</h5>
2764 <ol><p>character string specifying text encoding</p></ol>
2765
2766  </div>
2767 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2768 _8c.html" target="source" name="DrawSetTextKerning">DrawSetTextKerning</a></h2>
2769 <div class="doc-section">
2770
2771 <p>DrawSetTextKerning() sets the spacing between characters in text.</p></ol>
2772
2773 <p>The format of the DrawSetTextKerning method is:</p>
2774
2775 <pre class="code">
2776   void DrawSetTextKerning(DrawingWand *wand,const double kerning)
2777 </pre>
2778
2779 <p>A description of each parameter follows:</p></ol>
2780
2781 <h5>wand</h5>
2782 <ol><p>the drawing wand.</p></ol>
2783
2784 <h5>kerning</h5>
2785 <ol><p>text kerning</p></ol>
2786
2787  </div>
2788 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2789 _8c.html" target="source" name="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
2790 <div class="doc-section">
2791
2792 <p>DrawSetTextInterwordSpacing() sets the spacing between line in text.</p></ol>
2793
2794 <p>The format of the DrawSetInterwordSpacing method is:</p>
2795
2796 <pre class="code">
2797   void DrawSetTextInterwordSpacing(DrawingWand *wand,
2798     const double interline_spacing)
2799 </pre>
2800
2801 <p>A description of each parameter follows:</p></ol>
2802
2803 <h5>wand</h5>
2804 <ol><p>the drawing wand.</p></ol>
2805
2806 <h5>interline_spacing</h5>
2807 <ol><p>text line spacing</p></ol>
2808
2809  </div>
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">
2813
2814 <p>DrawSetTextInterwordSpacing() sets the spacing between words in text.</p></ol>
2815
2816 <p>The format of the DrawSetInterwordSpacing method is:</p>
2817
2818 <pre class="code">
2819   void DrawSetTextInterwordSpacing(DrawingWand *wand,
2820     const double interword_spacing)
2821 </pre>
2822
2823 <p>A description of each parameter follows:</p></ol>
2824
2825 <h5>wand</h5>
2826 <ol><p>the drawing wand.</p></ol>
2827
2828 <h5>interword_spacing</h5>
2829 <ol><p>text word spacing</p></ol>
2830
2831  </div>
2832 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2833 _8c.html" target="source" name="DrawSetTextUnderColor">DrawSetTextUnderColor</a></h2>
2834 <div class="doc-section">
2835
2836 <p>DrawSetTextUnderColor() specifies the color of a background rectangle to place under text annotations.</p></ol>
2837
2838 <p>The format of the DrawSetTextUnderColor method is:</p>
2839
2840 <pre class="code">
2841   void DrawSetTextUnderColor(DrawingWand *wand,
2842     const PixelWand *under_wand)
2843 </pre>
2844
2845 <p>A description of each parameter follows:</p></ol>
2846
2847 <h5>wand</h5>
2848 <ol><p>the drawing wand.</p></ol>
2849
2850 <h5>under_wand</h5>
2851 <ol><p>text under wand.</p></ol>
2852
2853  </div>
2854 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2855 _8c.html" target="source" name="DrawSetVectorGraphics">DrawSetVectorGraphics</a></h2>
2856 <div class="doc-section">
2857
2858 <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>
2859
2860 <p>The format of the DrawSetVectorGraphics method is:</p>
2861
2862 <pre class="code">
2863   MagickBooleanType DrawSetVectorGraphics(DrawingWand *wand,
2864     const char *xml)
2865 </pre>
2866
2867 <p>A description of each parameter follows:</p></ol>
2868
2869 <h5>wand</h5>
2870 <ol><p>the drawing wand.</p></ol>
2871
2872 <h5>xml</h5>
2873 <ol><p>the drawing wand XML.</p></ol>
2874
2875  </div>
2876 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2877 _8c.html" target="source" name="DrawSkewX">DrawSkewX</a></h2>
2878 <div class="doc-section">
2879
2880 <p>DrawSkewX() skews the current coordinate system in the horizontal direction.</p></ol>
2881
2882 <p>The format of the DrawSkewX method is:</p>
2883
2884 <pre class="code">
2885   void DrawSkewX(DrawingWand *wand,const double degrees)
2886 </pre>
2887
2888 <p>A description of each parameter follows:</p></ol>
2889
2890 <h5>wand</h5>
2891 <ol><p>the drawing wand.</p></ol>
2892
2893 <h5>degrees</h5>
2894 <ol><p>number of degrees to skew the coordinates</p></ol>
2895
2896  </div>
2897 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2898 _8c.html" target="source" name="DrawSkewY">DrawSkewY</a></h2>
2899 <div class="doc-section">
2900
2901 <p>DrawSkewY() skews the current coordinate system in the vertical direction.</p></ol>
2902
2903 <p>The format of the DrawSkewY method is:</p>
2904
2905 <pre class="code">
2906   void DrawSkewY(DrawingWand *wand,const double degrees)
2907 </pre>
2908
2909 <p>A description of each parameter follows:</p></ol>
2910
2911 <h5>wand</h5>
2912 <ol><p>the drawing wand.</p></ol>
2913
2914 <h5>degrees</h5>
2915 <ol><p>number of degrees to skew the coordinates</p></ol>
2916
2917  </div>
2918 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2919 _8c.html" target="source" name="DrawTranslate">DrawTranslate</a></h2>
2920 <div class="doc-section">
2921
2922 <p>DrawTranslate() applies a translation to the current coordinate system which moves the coordinate system origin to the specified coordinate.</p></ol>
2923
2924 <p>The format of the DrawTranslate method is:</p>
2925
2926 <pre class="code">
2927   void DrawTranslate(DrawingWand *wand,const double x,
2928     const double y)
2929 </pre>
2930
2931 <p>A description of each parameter follows:</p></ol>
2932
2933 <h5>wand</h5>
2934 <ol><p>the drawing wand.</p></ol>
2935
2936 <h5>x</h5>
2937 <ol><p>new x ordinate for coordinate system origin</p></ol>
2938
2939 <h5>y</h5>
2940 <ol><p>new y ordinate for coordinate system origin</p></ol>
2941
2942  </div>
2943 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2944 _8c.html" target="source" name="DrawSetViewbox">DrawSetViewbox</a></h2>
2945 <div class="doc-section">
2946
2947 <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>
2948
2949 <p>The format of the DrawSetViewbox method is:</p>
2950
2951 <pre class="code">
2952   void DrawSetViewbox(DrawingWand *wand,unsigned long x1,
2953     unsigned long y1,unsigned long x2,unsigned long y2)
2954 </pre>
2955
2956 <p>A description of each parameter follows:</p></ol>
2957
2958 <h5>wand</h5>
2959 <ol><p>the drawing wand.</p></ol>
2960
2961 <h5>x1</h5>
2962 <ol><p>left x ordinate</p></ol>
2963
2964 <h5>y1</h5>
2965 <ol><p>top y ordinate</p></ol>
2966
2967 <h5>x2</h5>
2968 <ol><p>right x ordinate</p></ol>
2969
2970 <h5>y2</h5>
2971 <ol><p>bottom y ordinate</p></ol>
2972
2973  </div>
2974 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2975 _8c.html" target="source" name="IsDrawingWand">IsDrawingWand</a></h2>
2976 <div class="doc-section">
2977
2978 <p>IsDrawingWand() returns MagickTrue if the wand is verified as a drawing wand.</p></ol>
2979
2980 <p>The format of the IsDrawingWand method is:</p>
2981
2982 <pre class="code">
2983   MagickBooleanType IsDrawingWand(const DrawingWand *wand)
2984 </pre>
2985
2986 <p>A description of each parameter follows:</p></ol>
2987
2988 <h5>wand</h5>
2989 <ol><p>the drawing wand.</p></ol>
2990
2991  </div>
2992 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2993 _8c.html" target="source" name="NewDrawingWand">NewDrawingWand</a></h2>
2994 <div class="doc-section">
2995
2996 <p>NewDrawingWand() returns a drawing wand required for all other methods in the API.</p></ol>
2997
2998 <p>The format of the NewDrawingWand method is:</p>
2999
3000 <pre class="code">
3001   DrawingWand NewDrawingWand(void)
3002 </pre>
3003
3004  </div>
3005 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3006 _8c.html" target="source" name="PeekDrawingWand">PeekDrawingWand</a></h2>
3007 <div class="doc-section">
3008
3009 <p>PeekDrawingWand() returns the current drawing wand.</p></ol>
3010
3011 <p>The format of the PeekDrawingWand method is:</p>
3012
3013 <pre class="code">
3014   DrawInfo *PeekDrawingWand(const DrawingWand *wand)
3015 </pre>
3016
3017 <p>A description of each parameter follows:</p></ol>
3018
3019 <h5>wand</h5>
3020 <ol><p>the drawing wand.</p></ol>
3021
3022  </div>
3023 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3024 _8c.html" target="source" name="PopDrawingWand">PopDrawingWand</a></h2>
3025 <div class="doc-section">
3026
3027 <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>
3028
3029 <p>The format of the PopDrawingWand method is:</p>
3030
3031 <pre class="code">
3032   MagickBooleanType PopDrawingWand(DrawingWand *wand)
3033 </pre>
3034
3035 <p>A description of each parameter follows:</p></ol>
3036
3037 <h5>wand</h5>
3038 <ol><p>the drawing wand.</p></ol>
3039
3040  </div>
3041 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3042 _8c.html" target="source" name="PushDrawingWand">PushDrawingWand</a></h2>
3043 <div class="doc-section">
3044
3045 <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>
3046
3047 <p>The format of the PushDrawingWand method is:</p>
3048
3049 <pre class="code">
3050   MagickBooleanType PushDrawingWand(DrawingWand *wand)
3051 </pre>
3052
3053 <p>A description of each parameter follows:</p></ol>
3054
3055 <h5>wand</h5>
3056 <ol><p>the drawing wand.</p></ol>
3057
3058  </div>
3059 \r
3060 </div>\r
3061 \r
3062 <div id="linkbar">\r
3063  <!--    <span id="linkbar-west">&nbsp;</span>  -->\r
3064     <span id="linkbar-center">\r
3065       <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> &bull;\r
3066       <a href="../../www/mailing-list.html">Mailing Lists</a> &bull;\r
3067     <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>\r
3068     </span>\r
3069     <span id="linkbar-east">&nbsp;</span>\r
3070   </div>\r
3071   <div class="footer">\r
3072     <span id="footer-west">&copy; 1999-2009 ImageMagick Studio LLC</span>\r
3073     <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>\r
3074   </div>\r
3075   <div style="clear: both; margin: 0; width: 100%; "></div>\r
3076 </body>\r
3077 </html>\r