1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
\r
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
\r
3 <html version="-//W3C//DTD XHTML 1.1//EN"
\r
4 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
\r
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
\r
6 xsi:schemaLocation="http://www.w3.org/1999/xhtml
\r
7 http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
\r
9 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
\r
10 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>
\r
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="Application-name" content="ImageMagick"/>
16 <meta name="Description" content="Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition resize, rotate, shear, distort and transform images."/>
17 <meta name="Application-url" content="http://www.imagemagick.org"/>
18 <meta name="Generator" content="PHP"/>
19 <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"/>
20 <meta name="Rating" content="GENERAL"/>
21 <meta name="Robots" content="INDEX, FOLLOW"/>
22 <meta name="Generator" content="ImageMagick Studio LLC"/>
23 <meta name="Author" content="ImageMagick Studio LLC"/>
24 <meta name="Revisit-after" content="2 DAYS"/>
25 <meta name="Resource-type" content="document"/>
26 <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/>
27 <meta name="Distribution" content="Global"/>
28 <link rel="icon" href="../../images/wand.png"/>
29 <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/>
30 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
\r
31 <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
\r
32 <style type="text/css" media="all">
\r
33 @import url("../../www/magick.css");
\r
35 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
\r
36 <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"></script>
\r
37 <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />
\r
38 <script type="text/javascript">
\r
39 $(document).ready(function() {
\r
40 $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
\r
41 'transitionIn' : 'elastic',
\r
42 'transitionOut' : 'elastic',
\r
43 'overlayShow' : false,
\r
50 <body id="www-imagemagick-org">
\r
51 <div class="titlebar">
\r
52 <a href="../../index.html">
\r
53 <img src="../../images/script.png" alt="[ImageMagick]"
\r
54 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
55 <a href="http://www.networkredux.com">
\r
56 <img src="../../images/networkredux.png" alt="[sponsor]"
\r
57 style="margin-top: 42px; border: 0px; float: left;" /></a>
\r
58 <a href="http://www.imagemagick.org/discourse-server/">
\r
59 <img src="../../images/logo.jpg"
\r
60 alt="ImageMagick Logo"
\r
61 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
\r
62 <a href="../../index.html">
\r
63 <img src="../../images/sprite.jpg"
\r
64 alt="ImageMagick Sprite"
\r
65 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
68 <div class="westbar">
\r
71 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
73 <div class="sep"></div>
\r
75 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
78 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
81 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
84 <a title="Binary Release: iPhone" href="../../www/binary-releases.html#iPhone">iPhone</a>
87 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
89 <div class="sep"></div>
\r
91 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
94 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
97 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
100 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
103 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
106 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
109 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
112 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
115 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
117 <div class="sep"></div>
\r
119 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
122 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
125 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
128 <a title="Resources" href="../../www/resources.html">Resources</a>
131 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
134 <a title="Download" href="../../www/download.html">Download</a>
136 <div class="sep"></div>
\r
138 <a title="Search" href="../../www/search.html">Search</a>
140 <div class="sep"></div>
\r
142 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
145 <a title="Site Map: Links" href="../../www/links.html">Links</a>
147 <div class="sep"></div>
\r
149 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
151 <div class="sponsbox">
152 <div class="sponsor">
153 <a title="Sponsor: Hotel München" href="http://www.messehotel-erb-muenchen.de">Hotel München</a><!-- 201111010450 cerb -->
155 <div class="sponsor">
156 <a title="Sponsor: Website Hosting" href="http://www.hostreviewgeeks.com">Website Hosting</a><!-- 201106010090 alexanian media -->
158 <div class="sponsor">
159 <a title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201107010240 r.leo -->
161 <div class="sponsor">
162 <a title="Sponsor: Best Web Hosting" href="http://webhostinggeeks.com">Best Web Hosting</a><!-- 201110010720 -->
164 <div class="sponsor">
165 <a title="Sponsor: Web Hosting Ratings" href="http://webhostingrating.com">Web Hosting Ratings</a><!-- 201110010720 -->
167 <div class="sponsor">
168 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
170 <div class="sponsor">
171 <a title="Sponsor: Web Hosting" href="http://www.bodhost.com/hosting.shtml">Web Hosting</a><!-- 201104010090 -->
173 <div class="sponsor">
174 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
176 <div class="sponsor">
177 <a title="Sponsor: Custom T-Shirts" href="http://www.ooshirts.com">Custom T-Shirts</a><!-- 2011050100030 ooshirts.com-->
183 <div class="eastbar">
\r
184 <script type="text/javascript">
\r
186 google_ad_client = "pub-3129977114552745";
\r
187 google_ad_slot = "0574824969";
\r
188 google_ad_width = 160;
\r
189 google_ad_height = 600;
\r
192 <script type="text/javascript"
\r
193 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
\r
199 <h1>Module drawing-wand Methods</h1>
200 <p class="navigation-index">[<a href="#ClearDrawingWand">ClearDrawingWand</a> • <a href="#CloneDrawingWand">CloneDrawingWand</a> • <a href="#DestroyDrawingWand">DestroyDrawingWand</a> • <a href="#DrawAffine">DrawAffine</a> • <a href="#DrawAnnotation">DrawAnnotation</a> • <a href="#DrawArc">DrawArc</a> • <a href="#DrawBezier">DrawBezier</a> • <a href="#DrawCircle">DrawCircle</a> • <a href="#DrawClearException">DrawClearException</a> • <a href="#DrawComposite">DrawComposite</a> • <a href="#DrawColor">DrawColor</a> • <a href="#DrawComment">DrawComment</a> • <a href="#DrawEllipse">DrawEllipse</a> • <a href="#DrawGetBorderColor">DrawGetBorderColor</a> • <a href="#DrawGetClipPath">DrawGetClipPath</a> • <a href="#DrawGetClipRule">DrawGetClipRule</a> • <a href="#DrawGetClipUnits">DrawGetClipUnits</a> • <a href="#DrawGetException">DrawGetException</a> • <a href="#DrawGetExceptionType">DrawGetExceptionType</a> • <a href="#DrawGetFillColor">DrawGetFillColor</a> • <a href="#DrawGetFillOpacity">DrawGetFillOpacity</a> • <a href="#DrawGetFillRule">DrawGetFillRule</a> • <a href="#DrawGetFont">DrawGetFont</a> • <a href="#DrawGetFontFamily">DrawGetFontFamily</a> • <a href="#DrawGetFontResolution">DrawGetFontResolution</a> • <a href="#DrawGetFontSize">DrawGetFontSize</a> • <a href="#DrawGetFontStretch">DrawGetFontStretch</a> • <a href="#DrawGetFontStyle">DrawGetFontStyle</a> • <a href="#DrawGetFontWeight">DrawGetFontWeight</a> • <a href="#DrawGetGravity">DrawGetGravity</a> • <a href="#DrawGetOpacity">DrawGetOpacity</a> • <a href="#DrawGetStrokeAntialias">DrawGetStrokeAntialias</a> • <a href="#DrawGetStrokeColor">DrawGetStrokeColor</a> • <a href="#DrawGetStrokeDashArray">DrawGetStrokeDashArray</a> • <a href="#DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a> • <a href="#DrawGetStrokeLineCap">DrawGetStrokeLineCap</a> • <a href="#DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a> • <a href="#DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a> • <a href="#DrawGetStrokeOpacity">DrawGetStrokeOpacity</a> • <a href="#DrawGetStrokeWidth">DrawGetStrokeWidth</a> • <a href="#DrawGetTextAlignment">DrawGetTextAlignment</a> • <a href="#DrawGetTextAntialias">DrawGetTextAntialias</a> • <a href="#DrawGetTextDecoration">DrawGetTextDecoration</a> • <a href="#DrawGetTextEncoding">DrawGetTextEncoding</a> • <a href="#DrawGetTextKerning">DrawGetTextKerning</a> • <a href="#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> • <a href="#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> • <a href="#DrawGetVectorGraphics">DrawGetVectorGraphics</a> • <a href="#DrawGetTextUnderColor">DrawGetTextUnderColor</a> • <a href="#DrawLine">DrawLine</a> • <a href="#DrawMatte">DrawMatte</a> • <a href="#DrawPathClose">DrawPathClose</a> • <a href="#DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a> • <a href="#DrawPathCurveToRelative">DrawPathCurveToRelative</a> • <a href="#DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a> • <a href="#DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a> • <a href="#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> • <a href="#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> • <a href="#DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a> • <a href="#DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a> • <a href="#DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a> • <a href="#DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a> • <a href="#DrawPathFinish">DrawPathFinish</a> • <a href="#DrawPathLineToAbsolute">DrawPathLineToAbsolute</a> • <a href="#DrawPathLineToRelative">DrawPathLineToRelative</a> • <a href="#DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a> • <a href="#DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a> • <a href="#DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a> • <a href="#DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a> • <a href="#DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a> • <a href="#DrawPathMoveToRelative">DrawPathMoveToRelative</a> • <a href="#DrawPathStart">DrawPathStart</a> • <a href="#DrawPoint">DrawPoint</a> • <a href="#DrawPolygon">DrawPolygon</a> • <a href="#DrawPolyline">DrawPolyline</a> • <a href="#DrawPopClipPath">DrawPopClipPath</a> • <a href="#DrawPopDefs">DrawPopDefs</a> • <a href="#DrawPopPattern">DrawPopPattern</a> • <a href="#DrawPushClipPath">DrawPushClipPath</a> • <a href="#DrawPushDefs">DrawPushDefs</a> • <a href="#DrawPushPattern">DrawPushPattern</a> • <a href="#DrawRectangle">DrawRectangle</a> • <a href="#DrawResetVectorGraphics">DrawResetVectorGraphics</a> • <a href="#DrawRotate">DrawRotate</a> • <a href="#DrawRoundRectangle">DrawRoundRectangle</a> • <a href="#DrawScale">DrawScale</a> • <a href="#DrawSetBorderColor">DrawSetBorderColor</a> • <a href="#DrawSetClipPath">DrawSetClipPath</a> • <a href="#DrawSetClipRule">DrawSetClipRule</a> • <a href="#DrawSetClipUnits">DrawSetClipUnits</a> • <a href="#DrawSetFillColor">DrawSetFillColor</a> • <a href="#DrawSetFillOpacity">DrawSetFillOpacity</a> • <a href="#DrawSetFontResolution">DrawSetFontResolution</a> • <a href="#DrawSetOpacity">DrawSetOpacity</a> • <a href="#DrawSetFillPatternURL">DrawSetFillPatternURL</a> • <a href="#DrawSetFillRule">DrawSetFillRule</a> • <a href="#DrawSetFont">DrawSetFont</a> • <a href="#DrawSetFontFamily">DrawSetFontFamily</a> • <a href="#DrawSetFontSize">DrawSetFontSize</a> • <a href="#DrawSetFontStretch">DrawSetFontStretch</a> • <a href="#DrawSetFontStyle">DrawSetFontStyle</a> • <a href="#DrawSetFontWeight">DrawSetFontWeight</a> • <a href="#DrawSetGravity">DrawSetGravity</a> • <a href="#DrawSetStrokeColor">DrawSetStrokeColor</a> • <a href="#DrawSetStrokePatternURL">DrawSetStrokePatternURL</a> • <a href="#DrawSetStrokeAntialias">DrawSetStrokeAntialias</a> • <a href="#DrawSetStrokeDashArray">DrawSetStrokeDashArray</a> • <a href="#DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a> • <a href="#DrawSetStrokeLineCap">DrawSetStrokeLineCap</a> • <a href="#DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a> • <a href="#DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a> • <a href="#DrawSetStrokeOpacity">DrawSetStrokeOpacity</a> • <a href="#DrawSetStrokeWidth">DrawSetStrokeWidth</a> • <a href="#DrawSetTextAlignment">DrawSetTextAlignment</a> • <a href="#DrawSetTextAntialias">DrawSetTextAntialias</a> • <a href="#DrawSetTextDecoration">DrawSetTextDecoration</a> • <a href="#DrawSetTextEncoding">DrawSetTextEncoding</a> • <a href="#DrawSetTextKerning">DrawSetTextKerning</a> • <a href="#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> • <a href="#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> • <a href="#DrawSetTextUnderColor">DrawSetTextUnderColor</a> • <a href="#DrawSetVectorGraphics">DrawSetVectorGraphics</a> • <a href="#DrawSkewX">DrawSkewX</a> • <a href="#DrawSkewY">DrawSkewY</a> • <a href="#DrawTranslate">DrawTranslate</a> • <a href="#DrawSetViewbox">DrawSetViewbox</a> • <a href="#IsDrawingWand">IsDrawingWand</a> • <a href="#NewDrawingWand">NewDrawingWand</a> • <a href="#PeekDrawingWand">PeekDrawingWand</a> • <a href="#PopDrawingWand">PopDrawingWand</a> • <a href="#PushDrawingWand">PushDrawingWand</a>]</p>
202 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="ClearDrawingWand">ClearDrawingWand</a></h2>
203 <div class="doc-section">
205 <p>ClearDrawingWand() clear resources associated with the drawing wand.</p>
207 <p>The format of the ClearDrawingWand method is:</p>
210 DrawingWand *ClearDrawingWand(DrawingWand *wand)
213 <p>A description of each parameter follows:</p>
216 <p>the drawing wand. to destroy</p>
219 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="CloneDrawingWand">CloneDrawingWand</a></h2>
220 <div class="doc-section">
222 <p>CloneDrawingWand() makes an exact copy of the specified wand.</p>
224 <p>The format of the CloneDrawingWand method is:</p>
227 DrawingWand *CloneDrawingWand(const DrawingWand *wand)
230 <p>A description of each parameter follows:</p>
233 <p>the magick wand.</p>
236 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DestroyDrawingWand">DestroyDrawingWand</a></h2>
237 <div class="doc-section">
239 <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>
241 <p>The format of the DestroyDrawingWand method is:</p>
244 DrawingWand *DestroyDrawingWand(DrawingWand *wand)
247 <p>A description of each parameter follows:</p>
250 <p>the drawing wand. to destroy</p>
253 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawAffine">DrawAffine</a></h2>
254 <div class="doc-section">
256 <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>
258 <p>The format of the DrawAffine method is:</p>
261 void DrawAffine(DrawingWand *wand,const AffineMatrix *affine)
264 <p>A description of each parameter follows:</p>
270 <p>Affine matrix parameters</p>
273 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawAnnotation">DrawAnnotation</a></h2>
274 <div class="doc-section">
276 <p>DrawAnnotation() draws text on the image.</p>
278 <p>The format of the DrawAnnotation method is:</p>
281 void DrawAnnotation(DrawingWand *wand,const double x,
282 const double y,const unsigned char *text)
285 <p>A description of each parameter follows:</p>
288 <p>the drawing wand.</p>
291 <p>x ordinate to left of text</p>
294 <p>y ordinate to text baseline</p>
300 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawArc">DrawArc</a></h2>
301 <div class="doc-section">
303 <p>DrawArc() draws an arc falling within a specified bounding rectangle on the image.</p>
305 <p>The format of the DrawArc method is:</p>
308 void DrawArc(DrawingWand *wand,const double sx,const double sy,
309 const double ex,const double ey,const double sd,const double ed)
312 <p>A description of each parameter follows:</p>
315 <p>the drawing wand.</p>
318 <p>starting x ordinate of bounding rectangle</p>
321 <p>starting y ordinate of bounding rectangle</p>
324 <p>ending x ordinate of bounding rectangle</p>
327 <p>ending y ordinate of bounding rectangle</p>
330 <p>starting degrees of rotation</p>
333 <p>ending degrees of rotation</p>
336 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawBezier">DrawBezier</a></h2>
337 <div class="doc-section">
339 <p>DrawBezier() draws a bezier curve through a set of points on the image.</p>
341 <p>The format of the DrawBezier method is:</p>
344 void DrawBezier(DrawingWand *wand,
345 const size_t number_coordinates,const PointInfo *coordinates)
348 <p>A description of each parameter follows:</p>
351 <p>the drawing wand.</p>
353 <h5>number_coordinates</h5>
354 <p>number of coordinates</p>
360 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawCircle">DrawCircle</a></h2>
361 <div class="doc-section">
363 <p>DrawCircle() draws a circle on the image.</p>
365 <p>The format of the DrawCircle method is:</p>
368 void DrawCircle(DrawingWand *wand,const double ox,
369 const double oy,const double px, const double py)
372 <p>A description of each parameter follows:</p>
375 <p>the drawing wand.</p>
378 <p>origin x ordinate</p>
381 <p>origin y ordinate</p>
384 <p>perimeter x ordinate</p>
387 <p>perimeter y ordinate</p>
390 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawClearException">DrawClearException</a></h2>
391 <div class="doc-section">
393 <p>DrawClearException() clear any exceptions associated with the wand.</p>
395 <p>The format of the DrawClearException method is:</p>
398 MagickBooleanType DrawClearException(DrawWand *wand)
401 <p>A description of each parameter follows:</p>
404 <p>the drawing wand.</p>
407 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawComposite">DrawComposite</a></h2>
408 <div class="doc-section">
410 <p>DrawComposite() composites an image onto the current image, using the specified composition operator, specified position, and at the specified size.</p>
412 <p>The format of the DrawComposite method is:</p>
415 MagickBooleanType DrawComposite(DrawingWand *wand,
416 const CompositeOperator compose,const double x,
417 const double y,const double width,const double height,
418 MagickWand *magick_wand)
421 <p>A description of each parameter follows:</p>
424 <p>the drawing wand.</p>
427 <p>composition operator</p>
430 <p>x ordinate of top left corner</p>
433 <p>y ordinate of top left corner</p>
436 <p>Width to resize image to prior to compositing. Specify zero to use existing width.</p>
439 <p>Height to resize image to prior to compositing. Specify zero to use existing height.</p>
442 <p>Image to composite is obtained from this wand.</p>
445 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawColor">DrawColor</a></h2>
446 <div class="doc-section">
448 <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>
451 PointMethod: Recolors the target pixel
452 ReplaceMethod: Recolor any pixel that matches the target pixel.
453 FloodfillMethod: Recolors target pixels and matching neighbors.
454 ResetMethod: Recolor all pixels.
457 <p>The format of the DrawColor method is:</p>
460 void DrawColor(DrawingWand *wand,const double x,const double y,
461 const PaintMethod paint_method)
464 <p>A description of each parameter follows:</p>
467 <p>the drawing wand.</p>
475 <h5>paint_method</h5>
479 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawComment">DrawComment</a></h2>
480 <div class="doc-section">
482 <p>DrawComment() adds a comment to a vector output stream.</p>
484 <p>The format of the DrawComment method is:</p>
487 void DrawComment(DrawingWand *wand,const char *comment)
490 <p>A description of each parameter follows:</p>
493 <p>the drawing wand.</p>
499 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawEllipse">DrawEllipse</a></h2>
500 <div class="doc-section">
502 <p>DrawEllipse() draws an ellipse on the image.</p>
504 <p>The format of the DrawEllipse method is:</p>
507 void DrawEllipse(DrawingWand *wand,const double ox,const double oy,
508 const double rx,const double ry,const double start,const double end)
511 <p>A description of each parameter follows:</p>
514 <p>the drawing wand.</p>
517 <p>origin x ordinate</p>
520 <p>origin y ordinate</p>
529 <p>starting rotation in degrees</p>
532 <p>ending rotation in degrees</p>
535 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetBorderColor">DrawGetBorderColor</a></h2>
536 <div class="doc-section">
538 <p>DrawGetBorderColor() returns the border color used for drawing bordered objects.</p>
540 <p>The format of the DrawGetBorderColor method is:</p>
543 void DrawGetBorderColor(const DrawingWand *wand,
544 PixelWand *border_color)
547 <p>A description of each parameter follows:</p>
550 <p>the drawing wand.</p>
552 <h5>border_color</h5>
553 <p>Return the border color.</p>
556 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipPath">DrawGetClipPath</a></h2>
557 <div class="doc-section">
559 <p>DrawGetClipPath() obtains the current clipping path ID. The value returned must be deallocated by the user when it is no longer needed.</p>
561 <p>The format of the DrawGetClipPath method is:</p>
564 char *DrawGetClipPath(const DrawingWand *wand)
567 <p>A description of each parameter follows:</p>
570 <p>the drawing wand.</p>
573 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipRule">DrawGetClipRule</a></h2>
574 <div class="doc-section">
576 <p>DrawGetClipRule() returns the current polygon fill rule to be used by the clipping path.</p>
578 <p>The format of the DrawGetClipRule method is:</p>
581 FillRule DrawGetClipRule(const DrawingWand *wand)
584 <p>A description of each parameter follows:</p>
587 <p>the drawing wand.</p>
590 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipUnits">DrawGetClipUnits</a></h2>
591 <div class="doc-section">
593 <p>DrawGetClipUnits() returns the interpretation of clip path units.</p>
595 <p>The format of the DrawGetClipUnits method is:</p>
598 ClipPathUnits DrawGetClipUnits(const DrawingWand *wand)
601 <p>A description of each parameter follows:</p>
604 <p>the drawing wand.</p>
607 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetException">DrawGetException</a></h2>
608 <div class="doc-section">
610 <p>DrawGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>
612 <p>The format of the DrawGetException method is:</p>
615 char *DrawGetException(const DrawWand *wand,
616 ExceptionType *severity)
619 <p>A description of each parameter follows:</p>
622 <p>the drawing wand.</p>
625 <p>the severity of the error is returned here.</p>
628 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetExceptionType">DrawGetExceptionType</a></h2>
629 <div class="doc-section">
631 <p>DrawGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p>
633 <p>The format of the DrawGetExceptionType method is:</p>
636 ExceptionType DrawGetExceptionType(const DrawWand *wand)
639 <p>A description of each parameter follows:</p>
642 <p>the magick wand.</p>
645 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillColor">DrawGetFillColor</a></h2>
646 <div class="doc-section">
648 <p>DrawGetFillColor() returns the fill color used for drawing filled objects.</p>
650 <p>The format of the DrawGetFillColor method is:</p>
653 void DrawGetFillColor(const DrawingWand *wand,
654 PixelWand *fill_color)
657 <p>A description of each parameter follows:</p>
660 <p>the drawing wand.</p>
663 <p>Return the fill color.</p>
666 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillOpacity">DrawGetFillOpacity</a></h2>
667 <div class="doc-section">
669 <p>DrawGetFillOpacity() returns the opacity used when drawing using the fill color or fill texture. Fully opaque is 1.0.</p>
671 <p>The format of the DrawGetFillOpacity method is:</p>
674 double DrawGetFillOpacity(const DrawingWand *wand)
677 <p>A description of each parameter follows:</p>
680 <p>the drawing wand.</p>
683 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillRule">DrawGetFillRule</a></h2>
684 <div class="doc-section">
686 <p>DrawGetFillRule() returns the fill rule used while drawing polygons.</p>
688 <p>The format of the DrawGetFillRule method is:</p>
691 FillRule DrawGetFillRule(const DrawingWand *wand)
694 <p>A description of each parameter follows:</p>
697 <p>the drawing wand.</p>
700 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFont">DrawGetFont</a></h2>
701 <div class="doc-section">
703 <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>
705 <p>The format of the DrawGetFont method is:</p>
708 char *DrawGetFont(const DrawingWand *wand)
711 <p>A description of each parameter follows:</p>
714 <p>the drawing wand.</p>
717 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontFamily">DrawGetFontFamily</a></h2>
718 <div class="doc-section">
720 <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>
722 <p>The format of the DrawGetFontFamily method is:</p>
725 char *DrawGetFontFamily(const DrawingWand *wand)
728 <p>A description of each parameter follows:</p>
731 <p>the drawing wand.</p>
734 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontResolution">DrawGetFontResolution</a></h2>
735 <div class="doc-section">
737 <p>DrawGetFontResolution() gets the image X and Y resolution.</p>
739 <p>The format of the DrawGetFontResolution method is:</p>
742 DrawBooleanType DrawGetFontResolution(const DrawingWand *wand,
746 <p>A description of each parameter follows:</p>
749 <p>the magick wand.</p>
752 <p>the x-resolution.</p>
755 <p>the y-resolution.</p>
758 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontSize">DrawGetFontSize</a></h2>
759 <div class="doc-section">
761 <p>DrawGetFontSize() returns the font pointsize used when annotating with text.</p>
763 <p>The format of the DrawGetFontSize method is:</p>
766 double DrawGetFontSize(const DrawingWand *wand)
769 <p>A description of each parameter follows:</p>
772 <p>the drawing wand.</p>
775 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontStretch">DrawGetFontStretch</a></h2>
776 <div class="doc-section">
778 <p>DrawGetFontStretch() returns the font stretch used when annotating with text.</p>
780 <p>The format of the DrawGetFontStretch method is:</p>
783 StretchType DrawGetFontStretch(const DrawingWand *wand)
786 <p>A description of each parameter follows:</p>
789 <p>the drawing wand.</p>
792 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontStyle">DrawGetFontStyle</a></h2>
793 <div class="doc-section">
795 <p>DrawGetFontStyle() returns the font style used when annotating with text.</p>
797 <p>The format of the DrawGetFontStyle method is:</p>
800 StyleType DrawGetFontStyle(const DrawingWand *wand)
803 <p>A description of each parameter follows:</p>
806 <p>the drawing wand.</p>
809 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontWeight">DrawGetFontWeight</a></h2>
810 <div class="doc-section">
812 <p>DrawGetFontWeight() returns the font weight used when annotating with text.</p>
814 <p>The format of the DrawGetFontWeight method is:</p>
817 size_t DrawGetFontWeight(const DrawingWand *wand)
820 <p>A description of each parameter follows:</p>
823 <p>the drawing wand.</p>
826 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetGravity">DrawGetGravity</a></h2>
827 <div class="doc-section">
829 <p>DrawGetGravity() returns the text placement gravity used when annotating with text.</p>
831 <p>The format of the DrawGetGravity method is:</p>
834 GravityType DrawGetGravity(const DrawingWand *wand)
837 <p>A description of each parameter follows:</p>
840 <p>the drawing wand.</p>
843 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetOpacity">DrawGetOpacity</a></h2>
844 <div class="doc-section">
846 <p>DrawGetOpacity() returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.</p>
848 <p>The format of the DrawGetOpacity method is:</p>
851 double DrawGetOpacity(const DrawingWand *wand)
854 <p>A description of each parameter follows:</p>
857 <p>the drawing wand.</p>
860 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeAntialias">DrawGetStrokeAntialias</a></h2>
861 <div class="doc-section">
863 <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>
865 <p>The format of the DrawGetStrokeAntialias method is:</p>
868 MagickBooleanType DrawGetStrokeAntialias(const DrawingWand *wand)
871 <p>A description of each parameter follows:</p>
874 <p>the drawing wand.</p>
877 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeColor">DrawGetStrokeColor</a></h2>
878 <div class="doc-section">
880 <p>DrawGetStrokeColor() returns the color used for stroking object outlines.</p>
882 <p>The format of the DrawGetStrokeColor method is:</p>
885 void DrawGetStrokeColor(const DrawingWand *wand,
886 $ PixelWand *stroke_color)
889 <p>A description of each parameter follows:</p>
892 <p>the drawing wand.</p>
894 <h5>stroke_color</h5>
895 <p>Return the stroke color.</p>
898 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeDashArray">DrawGetStrokeDashArray</a></h2>
899 <div class="doc-section">
901 <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>
903 <p>The format of the DrawGetStrokeDashArray method is:</p>
906 double *DrawGetStrokeDashArray(const DrawingWand *wand,
907 size_t *number_elements)
910 <p>A description of each parameter follows:</p>
913 <p>the drawing wand.</p>
915 <h5>number_elements</h5>
916 <p>address to place number of elements in dash array</p>
919 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a></h2>
920 <div class="doc-section">
922 <p>DrawGetStrokeDashOffset() returns the offset into the dash pattern to start the dash.</p>
924 <p>The format of the DrawGetStrokeDashOffset method is:</p>
927 double DrawGetStrokeDashOffset(const DrawingWand *wand)
930 <p>A description of each parameter follows:</p>
933 <p>the drawing wand.</p>
936 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeLineCap">DrawGetStrokeLineCap</a></h2>
937 <div class="doc-section">
939 <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>
941 <p>The format of the DrawGetStrokeLineCap method is:</p>
944 LineCap DrawGetStrokeLineCap(const DrawingWand *wand)
947 <p>A description of each parameter follows:</p>
950 <p>the drawing wand.</p>
953 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a></h2>
954 <div class="doc-section">
956 <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>
958 <p>The format of the DrawGetStrokeLineJoin method is:</p>
961 LineJoin DrawGetStrokeLineJoin(const DrawingWand *wand)
964 <p>A description of each parameter follows:</p>
967 <p>the drawing wand.</p>
970 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a></h2>
971 <div class="doc-section">
973 <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>
975 <p>The format of the DrawGetStrokeMiterLimit method is:</p>
978 size_t DrawGetStrokeMiterLimit(const DrawingWand *wand)
981 <p>A description of each parameter follows:</p>
984 <p>the drawing wand.</p>
987 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeOpacity">DrawGetStrokeOpacity</a></h2>
988 <div class="doc-section">
990 <p>DrawGetStrokeOpacity() returns the opacity of stroked object outlines.</p>
992 <p>The format of the DrawGetStrokeOpacity method is:</p>
995 double DrawGetStrokeOpacity(const DrawingWand *wand)
998 <p>A description of each parameter follows:</p>
1001 <p>the drawing wand.</p>
1004 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeWidth">DrawGetStrokeWidth</a></h2>
1005 <div class="doc-section">
1007 <p>DrawGetStrokeWidth() returns the width of the stroke used to draw object outlines.</p>
1009 <p>The format of the DrawGetStrokeWidth method is:</p>
1012 double DrawGetStrokeWidth(const DrawingWand *wand)
1015 <p>A description of each parameter follows:</p>
1018 <p>the drawing wand.</p>
1021 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextAlignment">DrawGetTextAlignment</a></h2>
1022 <div class="doc-section">
1024 <p>DrawGetTextAlignment() returns the alignment applied when annotating with text.</p>
1026 <p>The format of the DrawGetTextAlignment method is:</p>
1029 AlignType DrawGetTextAlignment(DrawingWand *wand)
1032 <p>A description of each parameter follows:</p>
1035 <p>the drawing wand.</p>
1038 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextAntialias">DrawGetTextAntialias</a></h2>
1039 <div class="doc-section">
1041 <p>DrawGetTextAntialias() returns the current text antialias setting, which determines whether text is antialiased. Text is antialiased by default.</p>
1043 <p>The format of the DrawGetTextAntialias method is:</p>
1046 MagickBooleanType DrawGetTextAntialias(const DrawingWand *wand)
1049 <p>A description of each parameter follows:</p>
1052 <p>the drawing wand.</p>
1055 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextDecoration">DrawGetTextDecoration</a></h2>
1056 <div class="doc-section">
1058 <p>DrawGetTextDecoration() returns the decoration applied when annotating with text.</p>
1060 <p>The format of the DrawGetTextDecoration method is:</p>
1063 DecorationType DrawGetTextDecoration(DrawingWand *wand)
1066 <p>A description of each parameter follows:</p>
1069 <p>the drawing wand.</p>
1072 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextEncoding">DrawGetTextEncoding</a></h2>
1073 <div class="doc-section">
1075 <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>
1077 <p>The format of the DrawGetTextEncoding method is:</p>
1080 char *DrawGetTextEncoding(const DrawingWand *wand)
1083 <p>A description of each parameter follows:</p>
1086 <p>the drawing wand.</p>
1089 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextKerning">DrawGetTextKerning</a></h2>
1090 <div class="doc-section">
1092 <p>DrawGetTextKerning() gets the spacing between characters in text.</p>
1094 <p>The format of the DrawSetFontKerning method is:</p>
1097 double DrawGetTextKerning(DrawingWand *wand)
1100 <p>A description of each parameter follows:</p>
1103 <p>the drawing wand.</p>
1106 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
1107 <div class="doc-section">
1109 <p>DrawGetTextInterwordSpacing() gets the spacing between lines in text.</p>
1111 <p>The format of the DrawSetFontKerning method is:</p>
1114 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1117 <p>A description of each parameter follows:</p>
1120 <p>the drawing wand.</p>
1123 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
1124 <div class="doc-section">
1126 <p>DrawGetTextInterwordSpacing() gets the spacing between words in text.</p>
1128 <p>The format of the DrawSetFontKerning method is:</p>
1131 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1134 <p>A description of each parameter follows:</p>
1137 <p>the drawing wand.</p>
1140 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetVectorGraphics">DrawGetVectorGraphics</a></h2>
1141 <div class="doc-section">
1143 <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>
1145 <p>The format of the DrawGetVectorGraphics method is:</p>
1148 char *DrawGetVectorGraphics(const DrawingWand *wand)
1151 <p>A description of each parameter follows:</p>
1154 <p>the drawing wand.</p>
1157 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextUnderColor">DrawGetTextUnderColor</a></h2>
1158 <div class="doc-section">
1160 <p>DrawGetTextUnderColor() returns the color of a background rectangle to place under text annotations.</p>
1162 <p>The format of the DrawGetTextUnderColor method is:</p>
1165 void DrawGetTextUnderColor(const DrawingWand *wand,
1166 PixelWand *under_color)
1169 <p>A description of each parameter follows:</p>
1172 <p>the drawing wand.</p>
1174 <h5>under_color</h5>
1175 <p>Return the under color.</p>
1178 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawLine">DrawLine</a></h2>
1179 <div class="doc-section">
1181 <p>DrawLine() draws a line on the image using the current stroke color, stroke opacity, and stroke width.</p>
1183 <p>The format of the DrawLine method is:</p>
1186 void DrawLine(DrawingWand *wand,const double sx,const double sy,
1187 const double ex,const double ey)
1190 <p>A description of each parameter follows:</p>
1193 <p>the drawing wand.</p>
1196 <p>starting x ordinate</p>
1199 <p>starting y ordinate</p>
1202 <p>ending x ordinate</p>
1205 <p>ending y ordinate</p>
1208 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawMatte">DrawMatte</a></h2>
1209 <div class="doc-section">
1211 <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>
1214 PointMethod: Select the target pixel
1215 ReplaceMethod: Select any pixel that matches the target pixel.
1216 FloodfillMethod: Select the target pixel and matching neighbors.
1217 FillToBorderMethod: Select the target pixel and neighbors not matching
1219 ResetMethod: Select all pixels.
1222 <p>The format of the DrawMatte method is:</p>
1225 void DrawMatte(DrawingWand *wand,const double x,const double y,
1226 const PaintMethod paint_method)
1229 <p>A description of each parameter follows:</p>
1232 <p>the drawing wand.</p>
1240 <h5>paint_method</h5>
1241 <p>paint method.</p>
1244 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathClose">DrawPathClose</a></h2>
1245 <div class="doc-section">
1247 <p>DrawPathClose() adds a path element to the current path which closes the current subpath by drawing a straight line from the current point to the current subpath's most recent starting point (usually, the most recent moveto point).</p>
1249 <p>The format of the DrawPathClose method is:</p>
1252 void DrawPathClose(DrawingWand *wand)
1255 <p>A description of each parameter follows:</p>
1258 <p>the drawing wand.</p>
1261 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a></h2>
1262 <div class="doc-section">
1264 <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>
1266 <p>The format of the DrawPathCurveToAbsolute method is:</p>
1269 void DrawPathCurveToAbsolute(DrawingWand *wand,const double x1,
1270 const double y1,const double x2,const double y2,const double x,
1274 <p>A description of each parameter follows:</p>
1277 <p>the drawing wand.</p>
1280 <p>x ordinate of control point for curve beginning</p>
1283 <p>y ordinate of control point for curve beginning</p>
1286 <p>x ordinate of control point for curve ending</p>
1289 <p>y ordinate of control point for curve ending</p>
1292 <p>x ordinate of the end of the curve</p>
1295 <p>y ordinate of the end of the curve</p>
1298 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToRelative">DrawPathCurveToRelative</a></h2>
1299 <div class="doc-section">
1301 <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>
1303 <p>The format of the DrawPathCurveToRelative method is:</p>
1306 void DrawPathCurveToRelative(DrawingWand *wand,const double x1,
1307 const double y1,const double x2,const double y2,const double x,
1311 <p>A description of each parameter follows:</p>
1314 <p>the drawing wand.</p>
1317 <p>x ordinate of control point for curve beginning</p>
1320 <p>y ordinate of control point for curve beginning</p>
1323 <p>x ordinate of control point for curve ending</p>
1326 <p>y ordinate of control point for curve ending</p>
1329 <p>x ordinate of the end of the curve</p>
1332 <p>y ordinate of the end of the curve</p>
1335 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a></h2>
1336 <div class="doc-section">
1338 <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>
1340 <p>The format of the DrawPathCurveToQuadraticBezierAbsolute method is:</p>
1343 void DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *wand,
1344 const double x1,const double y1,onst double x,const double y)
1347 <p>A description of each parameter follows:</p>
1350 <p>the drawing wand.</p>
1353 <p>x ordinate of the control point</p>
1356 <p>y ordinate of the control point</p>
1359 <p>x ordinate of final point</p>
1362 <p>y ordinate of final point</p>
1365 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a></h2>
1366 <div class="doc-section">
1368 <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>
1370 <p>The format of the DrawPathCurveToQuadraticBezierRelative method is:</p>
1373 void DrawPathCurveToQuadraticBezierRelative(DrawingWand *wand,
1374 const double x1,const double y1,const double x,const double y)
1377 <p>A description of each parameter follows:</p>
1380 <p>the drawing wand.</p>
1383 <p>x ordinate of the control point</p>
1386 <p>y ordinate of the control point</p>
1389 <p>x ordinate of final point</p>
1392 <p>y ordinate of final point</p>
1395 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
1396 <div class="doc-section">
1398 <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>
1400 <p>The format of the DrawPathCurveToQuadraticBezierSmoothAbsolute method is:</p>
1403 void DrawPathCurveToQuadraticBezierSmoothAbsolute(
1404 DrawingWand *wand,const double x,const double y)
1407 <p>A description of each parameter follows:</p>
1410 <p>the drawing wand.</p>
1413 <p>x ordinate of final point</p>
1416 <p>y ordinate of final point</p>
1419 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
1420 <div class="doc-section">
1422 <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>
1424 <p>The format of the DrawPathCurveToQuadraticBezierSmoothRelative method is:</p>
1427 void DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *wand,
1428 const double x,const double y)
1431 <p>A description of each parameter follows:</p>
1434 <p>the drawing wand.</p>
1437 <p>x ordinate of final point</p>
1440 <p>y ordinate of final point</p>
1443 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a></h2>
1444 <div class="doc-section">
1446 <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>
1448 <p>The format of the DrawPathCurveToSmoothAbsolute method is:</p>
1451 void DrawPathCurveToSmoothAbsolute(DrawingWand *wand,
1452 const double x2const double y2,const double x,const double y)
1455 <p>A description of each parameter follows:</p>
1458 <p>the drawing wand.</p>
1461 <p>x ordinate of second control point</p>
1464 <p>y ordinate of second control point</p>
1467 <p>x ordinate of termination point</p>
1470 <p>y ordinate of termination point</p>
1473 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a></h2>
1474 <div class="doc-section">
1476 <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>
1478 <p>The format of the DrawPathCurveToSmoothRelative method is:</p>
1481 void DrawPathCurveToSmoothRelative(DrawingWand *wand,
1482 const double x2,const double y2,const double x,const double y)
1485 <p>A description of each parameter follows:</p>
1488 <p>the drawing wand.</p>
1491 <p>x ordinate of second control point</p>
1494 <p>y ordinate of second control point</p>
1497 <p>x ordinate of termination point</p>
1500 <p>y ordinate of termination point</p>
1503 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a></h2>
1504 <div class="doc-section">
1506 <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>
1508 <p>The format of the DrawPathEllipticArcAbsolute method is:</p>
1511 void DrawPathEllipticArcAbsolute(DrawingWand *wand,
1512 const double rx,const double ry,const double x_axis_rotation,
1513 const MagickBooleanType large_arc_flag,
1514 const MagickBooleanType sweep_flag,const double x,const double y)
1517 <p>A description of each parameter follows:</p>
1520 <p>the drawing wand.</p>
1528 <h5>x_axis_rotation</h5>
1529 <p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p>
1531 <h5>large_arc_flag</h5>
1532 <p>If non-zero (true) then draw the larger of the available arcs</p>
1535 <p>If non-zero (true) then draw the arc matching a clock-wise rotation</p>
1539 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a></h2>
1540 <div class="doc-section">
1542 <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>
1544 <p>The format of the DrawPathEllipticArcRelative method is:</p>
1547 void DrawPathEllipticArcRelative(DrawingWand *wand,
1548 const double rx,const double ry,const double x_axis_rotation,
1549 const MagickBooleanType large_arc_flag,
1550 const MagickBooleanType sweep_flag,const double x,const double y)
1553 <p>A description of each parameter follows:</p>
1556 <p>the drawing wand.</p>
1564 <h5>x_axis_rotation</h5>
1565 <p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p>
1567 <h5>large_arc_flag</h5>
1568 <p>If non-zero (true) then draw the larger of the available arcs</p>
1571 <p>If non-zero (true) then draw the arc matching a clock-wise rotation</p>
1574 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathFinish">DrawPathFinish</a></h2>
1575 <div class="doc-section">
1577 <p>DrawPathFinish() terminates the current path.</p>
1579 <p>The format of the DrawPathFinish method is:</p>
1582 void DrawPathFinish(DrawingWand *wand)
1585 <p>A description of each parameter follows:</p>
1588 <p>the drawing wand.</p>
1591 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToAbsolute">DrawPathLineToAbsolute</a></h2>
1592 <div class="doc-section">
1594 <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>
1596 <p>The format of the DrawPathLineToAbsolute method is:</p>
1599 void DrawPathLineToAbsolute(DrawingWand *wand,const double x,
1603 <p>A description of each parameter follows:</p>
1606 <p>the drawing wand.</p>
1609 <p>target x ordinate</p>
1612 <p>target y ordinate</p>
1615 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToRelative">DrawPathLineToRelative</a></h2>
1616 <div class="doc-section">
1618 <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>
1620 <p>The format of the DrawPathLineToRelative method is:</p>
1623 void DrawPathLineToRelative(DrawingWand *wand,const double x,
1627 <p>A description of each parameter follows:</p>
1630 <p>the drawing wand.</p>
1633 <p>target x ordinate</p>
1636 <p>target y ordinate</p>
1639 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a></h2>
1640 <div class="doc-section">
1642 <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>
1644 <p>The format of the DrawPathLineToHorizontalAbsolute method is:</p>
1647 void DrawPathLineToHorizontalAbsolute(DrawingWand *wand,
1648 const PathMode mode,const double x)
1651 <p>A description of each parameter follows:</p>
1654 <p>the drawing wand.</p>
1657 <p>target x ordinate</p>
1660 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a></h2>
1661 <div class="doc-section">
1663 <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>
1665 <p>The format of the DrawPathLineToHorizontalRelative method is:</p>
1668 void DrawPathLineToHorizontalRelative(DrawingWand *wand,
1672 <p>A description of each parameter follows:</p>
1675 <p>the drawing wand.</p>
1678 <p>target x ordinate</p>
1681 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a></h2>
1682 <div class="doc-section">
1684 <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>
1686 <p>The format of the DrawPathLineToVerticalAbsolute method is:</p>
1689 void DrawPathLineToVerticalAbsolute(DrawingWand *wand,
1693 <p>A description of each parameter follows:</p>
1696 <p>the drawing wand.</p>
1699 <p>target y ordinate</p>
1702 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a></h2>
1703 <div class="doc-section">
1705 <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>
1707 <p>The format of the DrawPathLineToVerticalRelative method is:</p>
1710 void DrawPathLineToVerticalRelative(DrawingWand *wand,
1714 <p>A description of each parameter follows:</p>
1717 <p>the drawing wand.</p>
1720 <p>target y ordinate</p>
1723 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a></h2>
1724 <div class="doc-section">
1726 <p>DrawPathMoveToAbsolute() starts a new sub-path at the given coordinate using absolute coordinates. The current point then becomes the specified coordinate.</p>
1728 <p>The format of the DrawPathMoveToAbsolute method is:</p>
1731 void DrawPathMoveToAbsolute(DrawingWand *wand,const double x,
1735 <p>A description of each parameter follows:</p>
1738 <p>the drawing wand.</p>
1741 <p>target x ordinate</p>
1744 <p>target y ordinate</p>
1747 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathMoveToRelative">DrawPathMoveToRelative</a></h2>
1748 <div class="doc-section">
1750 <p>DrawPathMoveToRelative() starts a new sub-path at the given coordinate using relative coordinates. The current point then becomes the specified coordinate.</p>
1752 <p>The format of the DrawPathMoveToRelative method is:</p>
1755 void DrawPathMoveToRelative(DrawingWand *wand,const double x,
1759 <p>A description of each parameter follows:</p>
1762 <p>the drawing wand.</p>
1765 <p>target x ordinate</p>
1768 <p>target y ordinate</p>
1771 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathStart">DrawPathStart</a></h2>
1772 <div class="doc-section">
1774 <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>
1776 <p>The format of the DrawPathStart method is:</p>
1779 void DrawPathStart(DrawingWand *wand)
1782 <p>A description of each parameter follows:</p>
1785 <p>the drawing wand.</p>
1788 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPoint">DrawPoint</a></h2>
1789 <div class="doc-section">
1791 <p>DrawPoint() draws a point using the current fill color.</p>
1793 <p>The format of the DrawPoint method is:</p>
1796 void DrawPoint(DrawingWand *wand,const double x,const double y)
1799 <p>A description of each parameter follows:</p>
1802 <p>the drawing wand.</p>
1805 <p>target x coordinate</p>
1808 <p>target y coordinate</p>
1811 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPolygon">DrawPolygon</a></h2>
1812 <div class="doc-section">
1814 <p>DrawPolygon() draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p>
1816 <p>The format of the DrawPolygon method is:</p>
1819 void DrawPolygon(DrawingWand *wand,
1820 const size_t number_coordinates,const PointInfo *coordinates)
1823 <p>A description of each parameter follows:</p>
1826 <p>the drawing wand.</p>
1828 <h5>number_coordinates</h5>
1829 <p>number of coordinates</p>
1831 <h5>coordinates</h5>
1832 <p>coordinate array</p>
1835 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPolyline">DrawPolyline</a></h2>
1836 <div class="doc-section">
1838 <p>DrawPolyline() draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p>
1840 <p>The format of the DrawPolyline method is:</p>
1843 void DrawPolyline(DrawingWand *wand,
1844 const size_t number_coordinates,const PointInfo *coordinates)
1847 <p>A description of each parameter follows:</p>
1850 <p>the drawing wand.</p>
1852 <h5>number_coordinates</h5>
1853 <p>number of coordinates</p>
1855 <h5>coordinates</h5>
1856 <p>coordinate array</p>
1859 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPopClipPath">DrawPopClipPath</a></h2>
1860 <div class="doc-section">
1862 <p>DrawPopClipPath() terminates a clip path definition.</p>
1864 <p>The format of the DrawPopClipPath method is:</p>
1867 void DrawPopClipPath(DrawingWand *wand)
1870 <p>A description of each parameter follows:</p>
1873 <p>the drawing wand.</p>
1876 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPopDefs">DrawPopDefs</a></h2>
1877 <div class="doc-section">
1879 <p>DrawPopDefs() terminates a definition list.</p>
1881 <p>The format of the DrawPopDefs method is:</p>
1884 void DrawPopDefs(DrawingWand *wand)
1887 <p>A description of each parameter follows:</p>
1890 <p>the drawing wand.</p>
1893 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPopPattern">DrawPopPattern</a></h2>
1894 <div class="doc-section">
1896 <p>DrawPopPattern() terminates a pattern definition.</p>
1898 <p>The format of the DrawPopPattern method is:</p>
1901 MagickBooleanType DrawPopPattern(DrawingWand *wand)
1904 <p>A description of each parameter follows:</p>
1907 <p>the drawing wand.</p>
1910 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPushClipPath">DrawPushClipPath</a></h2>
1911 <div class="doc-section">
1913 <p>DrawPushClipPath() starts a clip path definition which is comprized of any number of drawing commands and terminated by a DrawPopClipPath() command.</p>
1915 <p>The format of the DrawPushClipPath method is:</p>
1918 void DrawPushClipPath(DrawingWand *wand,const char *clip_mask_id)
1921 <p>A description of each parameter follows:</p>
1924 <p>the drawing wand.</p>
1926 <h5>clip_mask_id</h5>
1927 <p>string identifier to associate with the clip path for later use.</p>
1930 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPushDefs">DrawPushDefs</a></h2>
1931 <div class="doc-section">
1933 <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>
1935 <p>The format of the DrawPushDefs method is:</p>
1938 void DrawPushDefs(DrawingWand *wand)
1941 <p>A description of each parameter follows:</p>
1944 <p>the drawing wand.</p>
1947 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPushPattern">DrawPushPattern</a></h2>
1948 <div class="doc-section">
1950 <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>
1952 <p>The format of the DrawPushPattern method is:</p>
1955 MagickBooleanType DrawPushPattern(DrawingWand *wand,
1956 const char *pattern_id,const double x,const double y,
1957 const double width,const double height)
1960 <p>A description of each parameter follows:</p>
1963 <p>the drawing wand.</p>
1966 <p>pattern identification for later reference</p>
1969 <p>x ordinate of top left corner</p>
1972 <p>y ordinate of top left corner</p>
1975 <p>width of pattern space</p>
1978 <p>height of pattern space</p>
1981 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawRectangle">DrawRectangle</a></h2>
1982 <div class="doc-section">
1984 <p>DrawRectangle() draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.</p>
1986 <p>The format of the DrawRectangle method is:</p>
1989 void DrawRectangle(DrawingWand *wand,const double x1,
1990 const double y1,const double x2,const double y2)
1993 <p>A description of each parameter follows:</p>
1996 <p>x ordinate of first coordinate</p>
1999 <p>y ordinate of first coordinate</p>
2002 <p>x ordinate of second coordinate</p>
2005 <p>y ordinate of second coordinate</p>
2008 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawResetVectorGraphics">DrawResetVectorGraphics</a></h2>
2009 <div class="doc-section">
2011 <p>DrawResetVectorGraphics() resets the vector graphics associated with the specified wand.</p>
2013 <p>The format of the DrawResetVectorGraphics method is:</p>
2016 void DrawResetVectorGraphics(DrawingWand *wand)
2019 <p>A description of each parameter follows:</p>
2022 <p>the drawing wand.</p>
2025 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawRotate">DrawRotate</a></h2>
2026 <div class="doc-section">
2028 <p>DrawRotate() applies the specified rotation to the current coordinate space.</p>
2030 <p>The format of the DrawRotate method is:</p>
2033 void DrawRotate(DrawingWand *wand,const double degrees)
2036 <p>A description of each parameter follows:</p>
2039 <p>the drawing wand.</p>
2042 <p>degrees of rotation</p>
2045 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawRoundRectangle">DrawRoundRectangle</a></h2>
2046 <div class="doc-section">
2048 <p>DrawRoundRectangle() draws a rounted rectangle given two coordinates, x & y corner radiuses and using the current stroke, stroke width, and fill settings.</p>
2050 <p>The format of the DrawRoundRectangle method is:</p>
2053 void DrawRoundRectangle(DrawingWand *wand,double x1,double y1,
2054 double x2,double y2,double rx,double ry)
2057 <p>A description of each parameter follows:</p>
2060 <p>the drawing wand.</p>
2063 <p>x ordinate of first coordinate</p>
2066 <p>y ordinate of first coordinate</p>
2069 <p>x ordinate of second coordinate</p>
2072 <p>y ordinate of second coordinate</p>
2075 <p>radius of corner in horizontal direction</p>
2078 <p>radius of corner in vertical direction</p>
2081 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawScale">DrawScale</a></h2>
2082 <div class="doc-section">
2084 <p>DrawScale() adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space.</p>
2086 <p>The format of the DrawScale method is:</p>
2089 void DrawScale(DrawingWand *wand,const double x,const double y)
2092 <p>A description of each parameter follows:</p>
2095 <p>the drawing wand.</p>
2098 <p>horizontal scale factor</p>
2101 <p>vertical scale factor</p>
2104 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetBorderColor">DrawSetBorderColor</a></h2>
2105 <div class="doc-section">
2107 <p>DrawSetBorderColor() sets the border color to be used for drawing bordered objects.</p>
2109 <p>The format of the DrawSetBorderColor method is:</p>
2112 void DrawSetBorderColor(DrawingWand *wand,const PixelWand *border_wand)
2115 <p>A description of each parameter follows:</p>
2118 <p>the drawing wand.</p>
2120 <h5>border_wand</h5>
2124 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetClipPath">DrawSetClipPath</a></h2>
2125 <div class="doc-section">
2127 <p>DrawSetClipPath() associates a named clipping path with the image. Only the areas drawn on by the clipping path will be modified as ssize_t as it remains in effect.</p>
2129 <p>The format of the DrawSetClipPath method is:</p>
2132 MagickBooleanType DrawSetClipPath(DrawingWand *wand,
2133 const char *clip_mask)
2136 <p>A description of each parameter follows:</p>
2139 <p>the drawing wand.</p>
2142 <p>name of clipping path to associate with image</p>
2145 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetClipRule">DrawSetClipRule</a></h2>
2146 <div class="doc-section">
2148 <p>DrawSetClipRule() set the polygon fill rule to be used by the clipping path.</p>
2150 <p>The format of the DrawSetClipRule method is:</p>
2153 void DrawSetClipRule(DrawingWand *wand,const FillRule fill_rule)
2156 <p>A description of each parameter follows:</p>
2159 <p>the drawing wand.</p>
2162 <p>fill rule (EvenOddRule or NonZeroRule)</p>
2165 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetClipUnits">DrawSetClipUnits</a></h2>
2166 <div class="doc-section">
2168 <p>DrawSetClipUnits() sets the interpretation of clip path units.</p>
2170 <p>The format of the DrawSetClipUnits method is:</p>
2173 void DrawSetClipUnits(DrawingWand *wand,
2174 const ClipPathUnits clip_units)
2177 <p>A description of each parameter follows:</p>
2180 <p>the drawing wand.</p>
2183 <p>units to use (UserSpace, UserSpaceOnUse, or ObjectBoundingBox)</p>
2186 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillColor">DrawSetFillColor</a></h2>
2187 <div class="doc-section">
2189 <p>DrawSetFillColor() sets the fill color to be used for drawing filled objects.</p>
2191 <p>The format of the DrawSetFillColor method is:</p>
2194 void DrawSetFillColor(DrawingWand *wand,const PixelWand *fill_wand)
2197 <p>A description of each parameter follows:</p>
2200 <p>the drawing wand.</p>
2206 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillOpacity">DrawSetFillOpacity</a></h2>
2207 <div class="doc-section">
2209 <p>DrawSetFillOpacity() sets the opacity to use when drawing using the fill color or fill texture. Fully opaque is 1.0.</p>
2211 <p>The format of the DrawSetFillOpacity method is:</p>
2214 void DrawSetFillOpacity(DrawingWand *wand,const double fill_opacity)
2217 <p>A description of each parameter follows:</p>
2220 <p>the drawing wand.</p>
2222 <h5>fill_opacity</h5>
2226 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontResolution">DrawSetFontResolution</a></h2>
2227 <div class="doc-section">
2229 <p>DrawSetFontResolution() sets the image resolution.</p>
2231 <p>The format of the DrawSetFontResolution method is:</p>
2234 DrawBooleanType DrawSetFontResolution(DrawingWand *wand,
2235 const double x_resolution,const doubtl y_resolution)
2238 <p>A description of each parameter follows:</p>
2241 <p>the magick wand.</p>
2243 <h5>x_resolution</h5>
2244 <p>the image x resolution.</p>
2246 <h5>y_resolution</h5>
2247 <p>the image y resolution.</p>
2250 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetOpacity">DrawSetOpacity</a></h2>
2251 <div class="doc-section">
2253 <p>DrawSetOpacity() sets the opacity to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0.</p>
2255 <p>The format of the DrawSetOpacity method is:</p>
2258 void DrawSetOpacity(DrawingWand *wand,const double opacity)
2261 <p>A description of each parameter follows:</p>
2264 <p>the drawing wand.</p>
2270 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillPatternURL">DrawSetFillPatternURL</a></h2>
2271 <div class="doc-section">
2273 <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>
2275 <p>The format of the DrawSetFillPatternURL method is:</p>
2278 MagickBooleanType DrawSetFillPatternURL(DrawingWand *wand,
2279 const char *fill_url)
2282 <p>A description of each parameter follows:</p>
2285 <p>the drawing wand.</p>
2288 <p>URL to use to obtain fill pattern.</p>
2291 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillRule">DrawSetFillRule</a></h2>
2292 <div class="doc-section">
2294 <p>DrawSetFillRule() sets the fill rule to use while drawing polygons.</p>
2296 <p>The format of the DrawSetFillRule method is:</p>
2299 void DrawSetFillRule(DrawingWand *wand,const FillRule fill_rule)
2302 <p>A description of each parameter follows:</p>
2305 <p>the drawing wand.</p>
2308 <p>fill rule (EvenOddRule or NonZeroRule)</p>
2311 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFont">DrawSetFont</a></h2>
2312 <div class="doc-section">
2314 <p>DrawSetFont() sets the fully-sepecified font to use when annotating with text.</p>
2316 <p>The format of the DrawSetFont method is:</p>
2319 MagickBooleanType DrawSetFont(DrawingWand *wand,const char *font_name)
2322 <p>A description of each parameter follows:</p>
2325 <p>the drawing wand.</p>
2331 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontFamily">DrawSetFontFamily</a></h2>
2332 <div class="doc-section">
2334 <p>DrawSetFontFamily() sets the font family to use when annotating with text.</p>
2336 <p>The format of the DrawSetFontFamily method is:</p>
2339 MagickBooleanType DrawSetFontFamily(DrawingWand *wand,
2340 const char *font_family)
2343 <p>A description of each parameter follows:</p>
2346 <p>the drawing wand.</p>
2348 <h5>font_family</h5>
2352 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontSize">DrawSetFontSize</a></h2>
2353 <div class="doc-section">
2355 <p>DrawSetFontSize() sets the font pointsize to use when annotating with text.</p>
2357 <p>The format of the DrawSetFontSize method is:</p>
2360 void DrawSetFontSize(DrawingWand *wand,const double pointsize)
2363 <p>A description of each parameter follows:</p>
2366 <p>the drawing wand.</p>
2369 <p>text pointsize</p>
2372 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontStretch">DrawSetFontStretch</a></h2>
2373 <div class="doc-section">
2375 <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>
2377 <p>The format of the DrawSetFontStretch method is:</p>
2380 void DrawSetFontStretch(DrawingWand *wand,
2381 const StretchType font_stretch)
2384 <p>A description of each parameter follows:</p>
2387 <p>the drawing wand.</p>
2389 <h5>font_stretch</h5>
2390 <p>font stretch (NormalStretch, UltraCondensedStretch, CondensedStretch, SemiCondensedStretch, SemiExpandedStretch, ExpandedStretch, ExtraExpandedStretch, UltraExpandedStretch, AnyStretch)</p>
2393 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontStyle">DrawSetFontStyle</a></h2>
2394 <div class="doc-section">
2396 <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>
2398 <p>The format of the DrawSetFontStyle method is:</p>
2401 void DrawSetFontStyle(DrawingWand *wand,const StyleType style)
2404 <p>A description of each parameter follows:</p>
2407 <p>the drawing wand.</p>
2410 <p>font style (NormalStyle, ItalicStyle, ObliqueStyle, AnyStyle)</p>
2413 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontWeight">DrawSetFontWeight</a></h2>
2414 <div class="doc-section">
2416 <p>DrawSetFontWeight() sets the font weight to use when annotating with text.</p>
2418 <p>The format of the DrawSetFontWeight method is:</p>
2421 void DrawSetFontWeight(DrawingWand *wand,
2422 const size_t font_weight)
2425 <p>A description of each parameter follows:</p>
2428 <p>the drawing wand.</p>
2430 <h5>font_weight</h5>
2431 <p>font weight (valid range 100-900)</p>
2434 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetGravity">DrawSetGravity</a></h2>
2435 <div class="doc-section">
2437 <p>DrawSetGravity() sets the text placement gravity to use when annotating with text.</p>
2439 <p>The format of the DrawSetGravity method is:</p>
2442 void DrawSetGravity(DrawingWand *wand,const GravityType gravity)
2445 <p>A description of each parameter follows:</p>
2448 <p>the drawing wand.</p>
2451 <p>positioning gravity (NorthWestGravity, NorthGravity, NorthEastGravity, WestGravity, CenterGravity, EastGravity, SouthWestGravity, SouthGravity, SouthEastGravity)</p>
2454 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeColor">DrawSetStrokeColor</a></h2>
2455 <div class="doc-section">
2457 <p>DrawSetStrokeColor() sets the color used for stroking object outlines.</p>
2459 <p>The format of the DrawSetStrokeColor method is:</p>
2462 void DrawSetStrokeColor(DrawingWand *wand,
2463 const PixelWand *stroke_wand)
2466 <p>A description of each parameter follows:</p>
2469 <p>the drawing wand.</p>
2471 <h5>stroke_wand</h5>
2475 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokePatternURL">DrawSetStrokePatternURL</a></h2>
2476 <div class="doc-section">
2478 <p>DrawSetStrokePatternURL() sets the pattern used for stroking object outlines.</p>
2480 <p>The format of the DrawSetStrokePatternURL method is:</p>
2483 MagickBooleanType DrawSetStrokePatternURL(DrawingWand *wand,
2484 const char *stroke_url)
2487 <p>A description of each parameter follows:</p>
2490 <p>the drawing wand.</p>
2493 <p>URL specifying pattern ID (e.g. "#pattern_id")</p>
2496 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeAntialias">DrawSetStrokeAntialias</a></h2>
2497 <div class="doc-section">
2499 <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>
2501 <p>The format of the DrawSetStrokeAntialias method is:</p>
2504 void DrawSetStrokeAntialias(DrawingWand *wand,
2505 const MagickBooleanType stroke_antialias)
2508 <p>A description of each parameter follows:</p>
2511 <p>the drawing wand.</p>
2513 <h5>stroke_antialias</h5>
2514 <p>set to false (zero) to disable antialiasing</p>
2517 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeDashArray">DrawSetStrokeDashArray</a></h2>
2518 <div class="doc-section">
2520 <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>
2522 <p>The format of the DrawSetStrokeDashArray method is:</p>
2525 MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand,
2526 const size_t number_elements,const double *dash_array)
2529 <p>A description of each parameter follows:</p>
2532 <p>the drawing wand.</p>
2534 <h5>number_elements</h5>
2535 <p>number of elements in dash array</p>
2538 <p>dash array values</p>
2541 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a></h2>
2542 <div class="doc-section">
2544 <p>DrawSetStrokeDashOffset() specifies the offset into the dash pattern to start the dash.</p>
2546 <p>The format of the DrawSetStrokeDashOffset method is:</p>
2549 void DrawSetStrokeDashOffset(DrawingWand *wand,
2550 const double dash_offset)
2553 <p>A description of each parameter follows:</p>
2556 <p>the drawing wand.</p>
2558 <h5>dash_offset</h5>
2562 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeLineCap">DrawSetStrokeLineCap</a></h2>
2563 <div class="doc-section">
2565 <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>
2567 <p>The format of the DrawSetStrokeLineCap method is:</p>
2570 void DrawSetStrokeLineCap(DrawingWand *wand,
2571 const LineCap linecap)
2574 <p>A description of each parameter follows:</p>
2577 <p>the drawing wand.</p>
2580 <p>linecap style</p>
2583 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a></h2>
2584 <div class="doc-section">
2586 <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>
2588 <p>The format of the DrawSetStrokeLineJoin method is:</p>
2591 void DrawSetStrokeLineJoin(DrawingWand *wand,
2592 const LineJoin linejoin)
2595 <p>A description of each parameter follows:</p>
2598 <p>the drawing wand.</p>
2601 <p>line join style</p>
2604 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a></h2>
2605 <div class="doc-section">
2607 <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>
2609 <p>The format of the DrawSetStrokeMiterLimit method is:</p>
2612 void DrawSetStrokeMiterLimit(DrawingWand *wand,
2613 const size_t miterlimit)
2616 <p>A description of each parameter follows:</p>
2619 <p>the drawing wand.</p>
2625 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeOpacity">DrawSetStrokeOpacity</a></h2>
2626 <div class="doc-section">
2628 <p>DrawSetStrokeOpacity() specifies the opacity of stroked object outlines.</p>
2630 <p>The format of the DrawSetStrokeOpacity method is:</p>
2633 void DrawSetStrokeOpacity(DrawingWand *wand,
2634 const double stroke_opacity)
2637 <p>A description of each parameter follows:</p>
2640 <p>the drawing wand.</p>
2642 <h5>stroke_opacity</h5>
2643 <p>stroke opacity. The value 1.0 is opaque.</p>
2646 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeWidth">DrawSetStrokeWidth</a></h2>
2647 <div class="doc-section">
2649 <p>DrawSetStrokeWidth() sets the width of the stroke used to draw object outlines.</p>
2651 <p>The format of the DrawSetStrokeWidth method is:</p>
2654 void DrawSetStrokeWidth(DrawingWand *wand,
2655 const double stroke_width)
2658 <p>A description of each parameter follows:</p>
2661 <p>the drawing wand.</p>
2663 <h5>stroke_width</h5>
2667 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextAlignment">DrawSetTextAlignment</a></h2>
2668 <div class="doc-section">
2670 <p>DrawSetTextAlignment() specifies a text alignment to be applied when annotating with text.</p>
2672 <p>The format of the DrawSetTextAlignment method is:</p>
2675 void DrawSetTextAlignment(DrawingWand *wand,const AlignType alignment)
2678 <p>A description of each parameter follows:</p>
2681 <p>the drawing wand.</p>
2684 <p>text alignment. One of UndefinedAlign, LeftAlign, CenterAlign, or RightAlign.</p>
2687 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextAntialias">DrawSetTextAntialias</a></h2>
2688 <div class="doc-section">
2690 <p>DrawSetTextAntialias() controls whether text is antialiased. Text is antialiased by default.</p>
2692 <p>The format of the DrawSetTextAntialias method is:</p>
2695 void DrawSetTextAntialias(DrawingWand *wand,
2696 const MagickBooleanType text_antialias)
2699 <p>A description of each parameter follows:</p>
2702 <p>the drawing wand.</p>
2704 <h5>text_antialias</h5>
2705 <p>antialias boolean. Set to false (0) to disable antialiasing.</p>
2708 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextDecoration">DrawSetTextDecoration</a></h2>
2709 <div class="doc-section">
2711 <p>DrawSetTextDecoration() specifies a decoration to be applied when annotating with text.</p>
2713 <p>The format of the DrawSetTextDecoration method is:</p>
2716 void DrawSetTextDecoration(DrawingWand *wand,
2717 const DecorationType decoration)
2720 <p>A description of each parameter follows:</p>
2723 <p>the drawing wand.</p>
2726 <p>text decoration. One of NoDecoration, UnderlineDecoration, OverlineDecoration, or LineThroughDecoration</p>
2729 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextEncoding">DrawSetTextEncoding</a></h2>
2730 <div class="doc-section">
2732 <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>
2734 <p>The format of the DrawSetTextEncoding method is:</p>
2737 void DrawSetTextEncoding(DrawingWand *wand,const char *encoding)
2740 <p>A description of each parameter follows:</p>
2743 <p>the drawing wand.</p>
2746 <p>character string specifying text encoding</p>
2749 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextKerning">DrawSetTextKerning</a></h2>
2750 <div class="doc-section">
2752 <p>DrawSetTextKerning() sets the spacing between characters in text.</p>
2754 <p>The format of the DrawSetTextKerning method is:</p>
2757 void DrawSetTextKerning(DrawingWand *wand,const double kerning)
2760 <p>A description of each parameter follows:</p>
2763 <p>the drawing wand.</p>
2769 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
2770 <div class="doc-section">
2772 <p>DrawSetTextInterwordSpacing() sets the spacing between line in text.</p>
2774 <p>The format of the DrawSetInterwordSpacing method is:</p>
2777 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2778 const double interline_spacing)
2781 <p>A description of each parameter follows:</p>
2784 <p>the drawing wand.</p>
2786 <h5>interline_spacing</h5>
2787 <p>text line spacing</p>
2790 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
2791 <div class="doc-section">
2793 <p>DrawSetTextInterwordSpacing() sets the spacing between words in text.</p>
2795 <p>The format of the DrawSetInterwordSpacing method is:</p>
2798 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2799 const double interword_spacing)
2802 <p>A description of each parameter follows:</p>
2805 <p>the drawing wand.</p>
2807 <h5>interword_spacing</h5>
2808 <p>text word spacing</p>
2811 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextUnderColor">DrawSetTextUnderColor</a></h2>
2812 <div class="doc-section">
2814 <p>DrawSetTextUnderColor() specifies the color of a background rectangle to place under text annotations.</p>
2816 <p>The format of the DrawSetTextUnderColor method is:</p>
2819 void DrawSetTextUnderColor(DrawingWand *wand,
2820 const PixelWand *under_wand)
2823 <p>A description of each parameter follows:</p>
2826 <p>the drawing wand.</p>
2829 <p>text under wand.</p>
2832 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetVectorGraphics">DrawSetVectorGraphics</a></h2>
2833 <div class="doc-section">
2835 <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>
2837 <p>The format of the DrawSetVectorGraphics method is:</p>
2840 MagickBooleanType DrawSetVectorGraphics(DrawingWand *wand,
2844 <p>A description of each parameter follows:</p>
2847 <p>the drawing wand.</p>
2850 <p>the drawing wand XML.</p>
2853 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSkewX">DrawSkewX</a></h2>
2854 <div class="doc-section">
2856 <p>DrawSkewX() skews the current coordinate system in the horizontal direction.</p>
2858 <p>The format of the DrawSkewX method is:</p>
2861 void DrawSkewX(DrawingWand *wand,const double degrees)
2864 <p>A description of each parameter follows:</p>
2867 <p>the drawing wand.</p>
2870 <p>number of degrees to skew the coordinates</p>
2873 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSkewY">DrawSkewY</a></h2>
2874 <div class="doc-section">
2876 <p>DrawSkewY() skews the current coordinate system in the vertical direction.</p>
2878 <p>The format of the DrawSkewY method is:</p>
2881 void DrawSkewY(DrawingWand *wand,const double degrees)
2884 <p>A description of each parameter follows:</p>
2887 <p>the drawing wand.</p>
2890 <p>number of degrees to skew the coordinates</p>
2893 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawTranslate">DrawTranslate</a></h2>
2894 <div class="doc-section">
2896 <p>DrawTranslate() applies a translation to the current coordinate system which moves the coordinate system origin to the specified coordinate.</p>
2898 <p>The format of the DrawTranslate method is:</p>
2901 void DrawTranslate(DrawingWand *wand,const double x,
2905 <p>A description of each parameter follows:</p>
2908 <p>the drawing wand.</p>
2911 <p>new x ordinate for coordinate system origin</p>
2914 <p>new y ordinate for coordinate system origin</p>
2917 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetViewbox">DrawSetViewbox</a></h2>
2918 <div class="doc-section">
2920 <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>
2922 <p>The format of the DrawSetViewbox method is:</p>
2925 void DrawSetViewbox(DrawingWand *wand,size_t x1,
2926 size_t y1,size_t x2,size_t y2)
2929 <p>A description of each parameter follows:</p>
2932 <p>the drawing wand.</p>
2935 <p>left x ordinate</p>
2938 <p>top y ordinate</p>
2941 <p>right x ordinate</p>
2944 <p>bottom y ordinate</p>
2947 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="IsDrawingWand">IsDrawingWand</a></h2>
2948 <div class="doc-section">
2950 <p>IsDrawingWand() returns MagickTrue if the wand is verified as a drawing wand.</p>
2952 <p>The format of the IsDrawingWand method is:</p>
2955 MagickBooleanType IsDrawingWand(const DrawingWand *wand)
2958 <p>A description of each parameter follows:</p>
2961 <p>the drawing wand.</p>
2964 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="NewDrawingWand">NewDrawingWand</a></h2>
2965 <div class="doc-section">
2967 <p>NewDrawingWand() returns a drawing wand required for all other methods in the API.</p>
2969 <p>The format of the NewDrawingWand method is:</p>
2972 DrawingWand NewDrawingWand(void)
2976 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="PeekDrawingWand">PeekDrawingWand</a></h2>
2977 <div class="doc-section">
2979 <p>PeekDrawingWand() returns the current drawing wand.</p>
2981 <p>The format of the PeekDrawingWand method is:</p>
2984 DrawInfo *PeekDrawingWand(const DrawingWand *wand)
2987 <p>A description of each parameter follows:</p>
2990 <p>the drawing wand.</p>
2993 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="PopDrawingWand">PopDrawingWand</a></h2>
2994 <div class="doc-section">
2996 <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>
2998 <p>The format of the PopDrawingWand method is:</p>
3001 MagickBooleanType PopDrawingWand(DrawingWand *wand)
3004 <p>A description of each parameter follows:</p>
3007 <p>the drawing wand.</p>
3010 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="PushDrawingWand">PushDrawingWand</a></h2>
3011 <div class="doc-section">
3013 <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>
3015 <p>The format of the PushDrawingWand method is:</p>
3018 MagickBooleanType PushDrawingWand(DrawingWand *wand)
3021 <p>A description of each parameter follows:</p>
3024 <p>the drawing wand.</p>
3030 <div id="linkbar">
\r
3031 <span id="linkbar-west"> </span>
\r
3032 <span id="linkbar-center">
\r
3033 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
3034 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
3036 <span id="linkbar-east"> </span>
\r
3038 <div class="footer">
\r
3039 <span id="footer-west">© 1999-2011 ImageMagick Studio LLC</span>
\r
3040 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
3042 <div style="clear: both; margin: 0; width: 100%; "></div>
\r
3043 <script type="text/javascript">
\r
3044 var _gaq = _gaq || [];
\r
3045 _gaq.push(['_setAccount', 'UA-17690367-1']);
\r
3046 _gaq.push(['_trackPageview']);
\r
3049 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
\r
3050 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
\r
3051 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
\r