1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
\r
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
\r
5 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />
\r
6 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />
\r
7 <style type="text/css" media="screen,projection"><!--
\r
8 @import url("../../www/magick.css");
\r
10 <link rel="shortcut icon" href="../../images/wand.ico" type="images/vnd.microsoft.icon"/>
11 <title>ImageMagick: MagickWand, C API for ImageMagick: Drawing Wand Methods</title>
12 <meta http-equiv="Content-Language" content="en-US"/>
13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
14 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
15 <meta name="Generator" content="PHP"/>
16 <meta name="Keywords" content="magickwc, api, for, imagemagick:, drawing, wmethods, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing"/>
17 <meta name="Description" content="ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically."/>
18 <meta name="Rating" content="GENERAL"/>
19 <meta name="Robots" content="INDEX, FOLLOW"/>
20 <meta name="Generator" content="ImageMagick Studio LLC"/>
21 <meta name="Author" content="ImageMagick Studio LLC"/>
22 <meta name="Revisit-after" content="2 DAYS"/>
23 <meta name="Resource-type" content="document"/>
24 <meta name="Copyright" content="Copyright (c) 1999-2009 ImageMagick Studio LLC"/>
25 <meta name="Distribution" content="Global"/>
28 <body id="www-imagemagick-org">
\r
29 <div class="titlebar">
\r
30 <a href="../../index.html">
\r
31 <img src="../../images/script.png" alt="[ImageMagick]"
\r
32 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
33 <a href="http://www.networkredux.com">
\r
34 <img src="../../images/networkredux.png" alt="[sponsor]"
\r
35 style="margin: 45px auto; border: 0px; float: left;" /></a>
\r
36 <a href="http://www.imagemagick.org/discourse-server/">
\r
37 <img src="../../images/logo.jpg" alt=""
\r
38 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
39 <a href="../../index.html">
\r
40 <img src="../../images/sprite.jpg" alt=""
\r
41 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
44 <div class="eastbar">
\r
47 <a href="../../index.html">About ImageMagick</a>
49 <div class="sep"></div>
\r
51 <a href="../../www/command-line-tools.html">Command-line Tools</a>
54 <a href="../../www/command-line-processing.html">Processing</a>
57 <a href="../../www/command-line-options.html">Options</a>
60 <a href="http://www.imagemagick.org/Usage/">Usage</a>
63 <a href="../../www/api.html">Program Interfaces</a>
66 <a href="../../www/magick-wand.html">MagickWand</a>
69 <a href="../../www/magick-core.html">MagickCore</a>
72 <a href="../../www/perl-magick.html">PerlMagick</a>
75 <a href="../../Magick++/">Magick++</a>
78 <a href="../../www/architecture.html">Architecture</a>
80 <div class="sep"></div>
\r
82 <a href="../../www/install-source.html">Install from Source</a>
85 <a href="../../www/install-source.html#unix">Unix</a>
88 <a href="../../www/install-source.html#windows">Windows</a>
91 <a href="../../www/binary-releases.html">Binary Releases</a>
94 <a href="../../www/binary-releases.html#unix">Unix</a>
97 <a href="../../www/binary-releases.html#macosx">Mac OS X</a>
100 <a href="../../www/binary-releases.html#windows">Windows</a>
103 <a href="../../www/resources.html">Resources</a>
105 <div class="sep"></div>
\r
107 <a href="../../www/download.html">Download</a>
109 <div class="sep"></div>
\r
111 <a href="../http://www.imagemagick.org/script/search.php">Search</a>
113 <div class="sep"></div>
\r
115 <a href="../../www/sitemap.html">Site Map</a>
118 <a href="../../www/links.html">Links</a>
120 <div class="sep"></div>
\r
122 <a href="../../www/sponsors.html">Sponsors:</a>
124 <div class="sponsbox">
125 <div class="sponsor">
126 <a href="http://www.goyax.de">Börse</a><!-- 201001000240 Gewiese digital-finance.de -->
128 <div class="sponsor">
129 <a href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012001200 allesdruck.de-->
131 <div class="sponsor">
132 <a href="http://www.blumenversender.com">Blumenversand</a><!-- 200911010120 -->
134 <div class="sponsor">
135 <a href="http://www.print24.de/">Druckerei</a><!-- 200911010480 -->
137 <div class="sponsor">
138 <a href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 201002010000 -->
140 <div class="sponsor">
141 <a href="http://www.online-kredit-index.de">Kredit</a><!-- 201002010120 Buchhorn -->
151 <p class="navigation-index">[<a href="#ClearDrawingWand">ClearDrawingWand</a> • <a href="#CloneDrawingWand">CloneDrawingWand</a> • <a href="#DestroyDrawingWand">DestroyDrawingWand</a> • <a href="#DrawAffine">DrawAffine</a> • <a href="#DrawAnnotation">DrawAnnotation</a> • <a href="#DrawArc">DrawArc</a> • <a href="#DrawBezier">DrawBezier</a> • <a href="#DrawCircle">DrawCircle</a> • <a href="#DrawClearException">DrawClearException</a> • <a href="#DrawComposite">DrawComposite</a> • <a href="#DrawColor">DrawColor</a> • <a href="#DrawComment">DrawComment</a> • <a href="#DrawEllipse">DrawEllipse</a> • <a href="#DrawGetBorderColor">DrawGetBorderColor</a> • <a href="#DrawGetClipPath">DrawGetClipPath</a> • <a href="#DrawGetClipRule">DrawGetClipRule</a> • <a href="#DrawGetClipUnits">DrawGetClipUnits</a> • <a href="#DrawGetException">DrawGetException</a> • <a href="#DrawGetExceptionType">DrawGetExceptionType</a> • <a href="#DrawGetFillColor">DrawGetFillColor</a> • <a href="#DrawGetFillOpacity">DrawGetFillOpacity</a> • <a href="#DrawGetFillRule">DrawGetFillRule</a> • <a href="#DrawGetFont">DrawGetFont</a> • <a href="#DrawGetFontFamily">DrawGetFontFamily</a> • <a href="#DrawGetFontSize">DrawGetFontSize</a> • <a href="#DrawGetFontStretch">DrawGetFontStretch</a> • <a href="#DrawGetFontStyle">DrawGetFontStyle</a> • <a href="#DrawGetFontWeight">DrawGetFontWeight</a> • <a href="#DrawGetGravity">DrawGetGravity</a> • <a href="#DrawGetOpacity">DrawGetOpacity</a> • <a href="#DrawGetStrokeAntialias">DrawGetStrokeAntialias</a> • <a href="#DrawGetStrokeColor">DrawGetStrokeColor</a> • <a href="#DrawGetStrokeDashArray">DrawGetStrokeDashArray</a> • <a href="#DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a> • <a href="#DrawGetStrokeLineCap">DrawGetStrokeLineCap</a> • <a href="#DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a> • <a href="#DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a> • <a href="#DrawGetStrokeOpacity">DrawGetStrokeOpacity</a> • <a href="#DrawGetStrokeWidth">DrawGetStrokeWidth</a> • <a href="#DrawGetTextAlignment">DrawGetTextAlignment</a> • <a href="#DrawGetTextAntialias">DrawGetTextAntialias</a> • <a href="#DrawGetTextDecoration">DrawGetTextDecoration</a> • <a href="#DrawGetTextEncoding">DrawGetTextEncoding</a> • <a href="#DrawGetTextKerning">DrawGetTextKerning</a> • <a href="#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> • <a href="#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> • <a href="#DrawGetVectorGraphics">DrawGetVectorGraphics</a> • <a href="#DrawGetTextUnderColor">DrawGetTextUnderColor</a> • <a href="#DrawLine">DrawLine</a> • <a href="#DrawMatte">DrawMatte</a> • <a href="#DrawPathClose">DrawPathClose</a> • <a href="#DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a> • <a href="#DrawPathCurveToRelative">DrawPathCurveToRelative</a> • <a href="#DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a> • <a href="#DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a> • <a href="#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> • <a href="#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> • <a href="#DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a> • <a href="#DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a> • <a href="#DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a> • <a href="#DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a> • <a href="#DrawPathFinish">DrawPathFinish</a> • <a href="#DrawPathLineToAbsolute">DrawPathLineToAbsolute</a> • <a href="#DrawPathLineToRelative">DrawPathLineToRelative</a> • <a href="#DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a> • <a href="#DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a> • <a href="#DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a> • <a href="#DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a> • <a href="#DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a> • <a href="#DrawPathMoveToRelative">DrawPathMoveToRelative</a> • <a href="#DrawPathStart">DrawPathStart</a> • <a href="#DrawPoint">DrawPoint</a> • <a href="#DrawPolygon">DrawPolygon</a> • <a href="#DrawPolyline">DrawPolyline</a> • <a href="#DrawPopClipPath">DrawPopClipPath</a> • <a href="#DrawPopDefs">DrawPopDefs</a> • <a href="#DrawPopPattern">DrawPopPattern</a> • <a href="#DrawPushClipPath">DrawPushClipPath</a> • <a href="#DrawPushDefs">DrawPushDefs</a> • <a href="#DrawPushPattern">DrawPushPattern</a> • <a href="#DrawRectangle">DrawRectangle</a> • <a href="#DrawResetVectorGraphics">DrawResetVectorGraphics</a> • <a href="#DrawRotate">DrawRotate</a> • <a href="#DrawRoundRectangle">DrawRoundRectangle</a> • <a href="#DrawScale">DrawScale</a> • <a href="#DrawSetBorderColor">DrawSetBorderColor</a> • <a href="#DrawSetClipPath">DrawSetClipPath</a> • <a href="#DrawSetClipRule">DrawSetClipRule</a> • <a href="#DrawSetClipUnits">DrawSetClipUnits</a> • <a href="#DrawSetFillColor">DrawSetFillColor</a> • <a href="#DrawSetFillOpacity">DrawSetFillOpacity</a> • <a href="#DrawSetOpacity">DrawSetOpacity</a> • <a href="#DrawSetFillPatternURL">DrawSetFillPatternURL</a> • <a href="#DrawSetFillRule">DrawSetFillRule</a> • <a href="#DrawSetFont">DrawSetFont</a> • <a href="#DrawSetFontFamily">DrawSetFontFamily</a> • <a href="#DrawSetFontSize">DrawSetFontSize</a> • <a href="#DrawSetFontStretch">DrawSetFontStretch</a> • <a href="#DrawSetFontStyle">DrawSetFontStyle</a> • <a href="#DrawSetFontWeight">DrawSetFontWeight</a> • <a href="#DrawSetGravity">DrawSetGravity</a> • <a href="#DrawSetStrokeColor">DrawSetStrokeColor</a> • <a href="#DrawSetStrokePatternURL">DrawSetStrokePatternURL</a> • <a href="#DrawSetStrokeAntialias">DrawSetStrokeAntialias</a> • <a href="#DrawSetStrokeDashArray">DrawSetStrokeDashArray</a> • <a href="#DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a> • <a href="#DrawSetStrokeLineCap">DrawSetStrokeLineCap</a> • <a href="#DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a> • <a href="#DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a> • <a href="#DrawSetStrokeOpacity">DrawSetStrokeOpacity</a> • <a href="#DrawSetStrokeWidth">DrawSetStrokeWidth</a> • <a href="#DrawSetTextAlignment">DrawSetTextAlignment</a> • <a href="#DrawSetTextAntialias">DrawSetTextAntialias</a> • <a href="#DrawSetTextDecoration">DrawSetTextDecoration</a> • <a href="#DrawSetTextEncoding">DrawSetTextEncoding</a> • <a href="#DrawSetTextKerning">DrawSetTextKerning</a> • <a href="#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> • <a href="#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> • <a href="#DrawSetTextUnderColor">DrawSetTextUnderColor</a> • <a href="#DrawSetVectorGraphics">DrawSetVectorGraphics</a> • <a href="#DrawSkewX">DrawSkewX</a> • <a href="#DrawSkewY">DrawSkewY</a> • <a href="#DrawTranslate">DrawTranslate</a> • <a href="#DrawSetViewbox">DrawSetViewbox</a> • <a href="#IsDrawingWand">IsDrawingWand</a> • <a href="#NewDrawingWand">NewDrawingWand</a> • <a href="#PeekDrawingWand">PeekDrawingWand</a> • <a href="#PopDrawingWand">PopDrawingWand</a> • <a href="#PushDrawingWand">PushDrawingWand</a>]</p>
153 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
154 _8c.html" target="source" name="ClearDrawingWand">ClearDrawingWand</a></h2>
155 <div class="doc-section">
157 <p>ClearDrawingWand() clear resources associated with the drawing wand.</p></ol>
159 <p>The format of the ClearDrawingWand method is:</p>
162 DrawingWand *ClearDrawingWand(DrawingWand *wand)
165 <p>A description of each parameter follows:</p></ol>
168 <ol><p>the drawing wand. to destroy</p></ol>
171 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
172 _8c.html" target="source" name="CloneDrawingWand">CloneDrawingWand</a></h2>
173 <div class="doc-section">
175 <p>CloneDrawingWand() makes an exact copy of the specified wand.</p></ol>
177 <p>The format of the CloneDrawingWand method is:</p>
180 DrawingWand *CloneDrawingWand(const DrawingWand *wand)
183 <p>A description of each parameter follows:</p></ol>
186 <ol><p>the magick wand.</p></ol>
189 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
190 _8c.html" target="source" name="DestroyDrawingWand">DestroyDrawingWand</a></h2>
191 <div class="doc-section">
193 <p>DestroyDrawingWand() frees all resources associated with the drawing wand. Once the drawing wand has been freed, it should not be used and further unless it re-allocated.</p></ol>
195 <p>The format of the DestroyDrawingWand method is:</p>
198 DrawingWand *DestroyDrawingWand(DrawingWand *wand)
201 <p>A description of each parameter follows:</p></ol>
204 <ol><p>the drawing wand. to destroy</p></ol>
207 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
208 _8c.html" target="source" name="DrawAffine">DrawAffine</a></h2>
209 <div class="doc-section">
211 <p>DrawAffine() adjusts the current affine transformation matrix with the specified affine transformation matrix. Note that the current affine transform is adjusted rather than replaced.</p></ol>
213 <p>The format of the DrawAffine method is:</p>
216 void DrawAffine(DrawingWand *wand,const AffineMatrix *affine)
219 <p>A description of each parameter follows:</p></ol>
222 <ol><p>Drawing wand</p></ol>
225 <ol><p>Affine matrix parameters</p></ol>
228 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
229 _8c.html" target="source" name="DrawAnnotation">DrawAnnotation</a></h2>
230 <div class="doc-section">
232 <p>DrawAnnotation() draws text on the image.</p></ol>
234 <p>The format of the DrawAnnotation method is:</p>
237 void DrawAnnotation(DrawingWand *wand,const double x,
238 const double y,const unsigned char *text)
241 <p>A description of each parameter follows:</p></ol>
244 <ol><p>the drawing wand.</p></ol>
247 <ol><p>x ordinate to left of text</p></ol>
250 <ol><p>y ordinate to text baseline</p></ol>
253 <ol><p>text to draw</p></ol>
256 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
257 _8c.html" target="source" name="DrawArc">DrawArc</a></h2>
258 <div class="doc-section">
260 <p>DrawArc() draws an arc falling within a specified bounding rectangle on the image.</p></ol>
262 <p>The format of the DrawArc method is:</p>
265 void DrawArc(DrawingWand *wand,const double sx,const double sy,
266 const double ex,const double ey,const double sd,const double ed)
269 <p>A description of each parameter follows:</p></ol>
272 <ol><p>the drawing wand.</p></ol>
275 <ol><p>starting x ordinate of bounding rectangle</p></ol>
278 <ol><p>starting y ordinate of bounding rectangle</p></ol>
281 <ol><p>ending x ordinate of bounding rectangle</p></ol>
284 <ol><p>ending y ordinate of bounding rectangle</p></ol>
287 <ol><p>starting degrees of rotation</p></ol>
290 <ol><p>ending degrees of rotation</p></ol>
293 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
294 _8c.html" target="source" name="DrawBezier">DrawBezier</a></h2>
295 <div class="doc-section">
297 <p>DrawBezier() draws a bezier curve through a set of points on the image.</p></ol>
299 <p>The format of the DrawBezier method is:</p>
302 void DrawBezier(DrawingWand *wand,
303 const unsigned long number_coordinates,const PointInfo *coordinates)
306 <p>A description of each parameter follows:</p></ol>
309 <ol><p>the drawing wand.</p></ol>
311 <h5>number_coordinates</h5>
312 <ol><p>number of coordinates</p></ol>
315 <ol><p>coordinates</p></ol>
318 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
319 _8c.html" target="source" name="DrawCircle">DrawCircle</a></h2>
320 <div class="doc-section">
322 <p>DrawCircle() draws a circle on the image.</p></ol>
324 <p>The format of the DrawCircle method is:</p>
327 void DrawCircle(DrawingWand *wand,const double ox,
328 const double oy,const double px, const double py)
331 <p>A description of each parameter follows:</p></ol>
334 <ol><p>the drawing wand.</p></ol>
337 <ol><p>origin x ordinate</p></ol>
340 <ol><p>origin y ordinate</p></ol>
343 <ol><p>perimeter x ordinate</p></ol>
346 <ol><p>perimeter y ordinate</p></ol>
349 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
350 _8c.html" target="source" name="DrawClearException">DrawClearException</a></h2>
351 <div class="doc-section">
353 <p>DrawClearException() clear any exceptions associated with the wand.</p></ol>
355 <p>The format of the DrawClearException method is:</p>
358 MagickBooleanType DrawClearException(DrawWand *wand)
361 <p>A description of each parameter follows:</p></ol>
364 <ol><p>the drawing wand.</p></ol>
367 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
368 _8c.html" target="source" name="DrawComposite">DrawComposite</a></h2>
369 <div class="doc-section">
371 <p>DrawComposite() composites an image onto the current image, using the specified composition operator, specified position, and at the specified size.</p></ol>
373 <p>The format of the DrawComposite method is:</p>
376 MagickBooleanType DrawComposite(DrawingWand *wand,
377 const CompositeOperator compose,const double x,
378 const double y,const double width,const double height,
379 MagickWand *magick_wand)
382 <p>A description of each parameter follows:</p></ol>
385 <ol><p>the drawing wand.</p></ol>
388 <ol><p>composition operator</p></ol>
391 <ol><p>x ordinate of top left corner</p></ol>
394 <ol><p>y ordinate of top left corner</p></ol>
397 <ol><p>Width to resize image to prior to compositing. Specify zero to use existing width.</p></ol>
400 <ol><p>Height to resize image to prior to compositing. Specify zero to use existing height.</p></ol>
403 <ol><p>Image to composite is obtained from this wand.</p></ol>
406 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
407 _8c.html" target="source" name="DrawColor">DrawColor</a></h2>
408 <div class="doc-section">
410 <p>DrawColor() draws color on image using the current fill color, starting at specified position, and using specified paint method. The available paint methods are:</p>
413 PointMethod: Recolors the target pixel
414 ReplaceMethod: Recolor any pixel that matches the target pixel.
415 FloodfillMethod: Recolors target pixels and matching neighbors.
416 ResetMethod: Recolor all pixels.
419 <p>The format of the DrawColor method is:</p>
422 void DrawColor(DrawingWand *wand,const double x,const double y,
423 const PaintMethod paint_method)
426 <p>A description of each parameter follows:</p></ol>
429 <ol><p>the drawing wand.</p></ol>
432 <ol><p>x ordinate.</p></ol>
435 <ol><p>y ordinate.</p></ol>
437 <h5>paint_method</h5>
438 <ol><p>paint method.</p></ol>
441 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
442 _8c.html" target="source" name="DrawComment">DrawComment</a></h2>
443 <div class="doc-section">
445 <p>DrawComment() adds a comment to a vector output stream.</p></ol>
447 <p>The format of the DrawComment method is:</p>
450 void DrawComment(DrawingWand *wand,const char *comment)
453 <p>A description of each parameter follows:</p></ol>
456 <ol><p>the drawing wand.</p></ol>
459 <ol><p>comment text</p></ol>
462 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
463 _8c.html" target="source" name="DrawEllipse">DrawEllipse</a></h2>
464 <div class="doc-section">
466 <p>DrawEllipse() draws an ellipse on the image.</p></ol>
468 <p>The format of the DrawEllipse method is:</p>
471 void DrawEllipse(DrawingWand *wand,const double ox,const double oy,
472 const double rx,const double ry,const double start,const double end)
475 <p>A description of each parameter follows:</p></ol>
478 <ol><p>the drawing wand.</p></ol>
481 <ol><p>origin x ordinate</p></ol>
484 <ol><p>origin y ordinate</p></ol>
487 <ol><p>radius in x</p></ol>
490 <ol><p>radius in y</p></ol>
493 <ol><p>starting rotation in degrees</p></ol>
496 <ol><p>ending rotation in degrees</p></ol>
499 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
500 _8c.html" target="source" name="DrawGetBorderColor">DrawGetBorderColor</a></h2>
501 <div class="doc-section">
503 <p>DrawGetBorderColor() returns the border color used for drawing bordered objects.</p></ol>
505 <p>The format of the DrawGetBorderColor method is:</p>
508 void DrawGetBorderColor(const DrawingWand *wand,
509 PixelWand *border_color)
512 <p>A description of each parameter follows:</p></ol>
515 <ol><p>the drawing wand.</p></ol>
517 <h5>border_color</h5>
518 <ol><p>Return the border color.</p></ol>
521 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
522 _8c.html" target="source" name="DrawGetClipPath">DrawGetClipPath</a></h2>
523 <div class="doc-section">
525 <p>DrawGetClipPath() obtains the current clipping path ID. The value returned must be deallocated by the user when it is no longer needed.</p></ol>
527 <p>The format of the DrawGetClipPath method is:</p>
530 char *DrawGetClipPath(const DrawingWand *wand)
533 <p>A description of each parameter follows:</p></ol>
536 <ol><p>the drawing wand.</p></ol>
539 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
540 _8c.html" target="source" name="DrawGetClipRule">DrawGetClipRule</a></h2>
541 <div class="doc-section">
543 <p>DrawGetClipRule() returns the current polygon fill rule to be used by the clipping path.</p></ol>
545 <p>The format of the DrawGetClipRule method is:</p>
548 FillRule DrawGetClipRule(const DrawingWand *wand)
551 <p>A description of each parameter follows:</p></ol>
554 <ol><p>the drawing wand.</p></ol>
557 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
558 _8c.html" target="source" name="DrawGetClipUnits">DrawGetClipUnits</a></h2>
559 <div class="doc-section">
561 <p>DrawGetClipUnits() returns the interpretation of clip path units.</p></ol>
563 <p>The format of the DrawGetClipUnits method is:</p>
566 ClipPathUnits DrawGetClipUnits(const DrawingWand *wand)
569 <p>A description of each parameter follows:</p></ol>
572 <ol><p>the drawing wand.</p></ol>
575 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
576 _8c.html" target="source" name="DrawGetException">DrawGetException</a></h2>
577 <div class="doc-section">
579 <p>DrawGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p></ol>
581 <p>The format of the DrawGetException method is:</p>
584 char *DrawGetException(const DrawWand *wand,
585 ExceptionType *severity)
588 <p>A description of each parameter follows:</p></ol>
591 <ol><p>the drawing wand.</p></ol>
594 <ol><p>the severity of the error is returned here.</p></ol>
597 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
598 _8c.html" target="source" name="DrawGetExceptionType">DrawGetExceptionType</a></h2>
599 <div class="doc-section">
601 <p>DrawGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p></ol>
603 <p>The format of the DrawGetExceptionType method is:</p>
606 ExceptionType DrawGetExceptionType(const DrawWand *wand)
609 <p>A description of each parameter follows:</p></ol>
612 <ol><p>the magick wand.</p></ol>
615 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
616 _8c.html" target="source" name="DrawGetFillColor">DrawGetFillColor</a></h2>
617 <div class="doc-section">
619 <p>DrawGetFillColor() returns the fill color used for drawing filled objects.</p></ol>
621 <p>The format of the DrawGetFillColor method is:</p>
624 void DrawGetFillColor(const DrawingWand *wand,
625 PixelWand *fill_color)
628 <p>A description of each parameter follows:</p></ol>
631 <ol><p>the drawing wand.</p></ol>
634 <ol><p>Return the fill color.</p></ol>
637 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
638 _8c.html" target="source" name="DrawGetFillOpacity">DrawGetFillOpacity</a></h2>
639 <div class="doc-section">
641 <p>DrawGetFillOpacity() returns the opacity used when drawing using the fill color or fill texture. Fully opaque is 1.0.</p></ol>
643 <p>The format of the DrawGetFillOpacity method is:</p>
646 double DrawGetFillOpacity(const DrawingWand *wand)
649 <p>A description of each parameter follows:</p></ol>
652 <ol><p>the drawing wand.</p></ol>
655 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
656 _8c.html" target="source" name="DrawGetFillRule">DrawGetFillRule</a></h2>
657 <div class="doc-section">
659 <p>DrawGetFillRule() returns the fill rule used while drawing polygons.</p></ol>
661 <p>The format of the DrawGetFillRule method is:</p>
664 FillRule DrawGetFillRule(const DrawingWand *wand)
667 <p>A description of each parameter follows:</p></ol>
670 <ol><p>the drawing wand.</p></ol>
673 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
674 _8c.html" target="source" name="DrawGetFont">DrawGetFont</a></h2>
675 <div class="doc-section">
677 <p>DrawGetFont() returns a null-terminaged string specifying the font used when annotating with text. The value returned must be freed by the user when no longer needed.</p></ol>
679 <p>The format of the DrawGetFont method is:</p>
682 char *DrawGetFont(const DrawingWand *wand)
685 <p>A description of each parameter follows:</p></ol>
688 <ol><p>the drawing wand.</p></ol>
691 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
692 _8c.html" target="source" name="DrawGetFontFamily">DrawGetFontFamily</a></h2>
693 <div class="doc-section">
695 <p>DrawGetFontFamily() returns the font family to use when annotating with text. The value returned must be freed by the user when it is no longer needed.</p></ol>
697 <p>The format of the DrawGetFontFamily method is:</p>
700 char *DrawGetFontFamily(const DrawingWand *wand)
703 <p>A description of each parameter follows:</p></ol>
706 <ol><p>the drawing wand.</p></ol>
709 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
710 _8c.html" target="source" name="DrawGetFontSize">DrawGetFontSize</a></h2>
711 <div class="doc-section">
713 <p>DrawGetFontSize() returns the font pointsize used when annotating with text.</p></ol>
715 <p>The format of the DrawGetFontSize method is:</p>
718 double DrawGetFontSize(const DrawingWand *wand)
721 <p>A description of each parameter follows:</p></ol>
724 <ol><p>the drawing wand.</p></ol>
727 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
728 _8c.html" target="source" name="DrawGetFontStretch">DrawGetFontStretch</a></h2>
729 <div class="doc-section">
731 <p>DrawGetFontStretch() returns the font stretch used when annotating with text.</p></ol>
733 <p>The format of the DrawGetFontStretch method is:</p>
736 StretchType DrawGetFontStretch(const DrawingWand *wand)
739 <p>A description of each parameter follows:</p></ol>
742 <ol><p>the drawing wand.</p></ol>
745 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
746 _8c.html" target="source" name="DrawGetFontStyle">DrawGetFontStyle</a></h2>
747 <div class="doc-section">
749 <p>DrawGetFontStyle() returns the font style used when annotating with text.</p></ol>
751 <p>The format of the DrawGetFontStyle method is:</p>
754 StyleType DrawGetFontStyle(const DrawingWand *wand)
757 <p>A description of each parameter follows:</p></ol>
760 <ol><p>the drawing wand.</p></ol>
763 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
764 _8c.html" target="source" name="DrawGetFontWeight">DrawGetFontWeight</a></h2>
765 <div class="doc-section">
767 <p>DrawGetFontWeight() returns the font weight used when annotating with text.</p></ol>
769 <p>The format of the DrawGetFontWeight method is:</p>
772 unsigned long DrawGetFontWeight(const DrawingWand *wand)
775 <p>A description of each parameter follows:</p></ol>
778 <ol><p>the drawing wand.</p></ol>
781 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
782 _8c.html" target="source" name="DrawGetGravity">DrawGetGravity</a></h2>
783 <div class="doc-section">
785 <p>DrawGetGravity() returns the text placement gravity used when annotating with text.</p></ol>
787 <p>The format of the DrawGetGravity method is:</p>
790 GravityType DrawGetGravity(const DrawingWand *wand)
793 <p>A description of each parameter follows:</p></ol>
796 <ol><p>the drawing wand.</p></ol>
799 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
800 _8c.html" target="source" name="DrawGetOpacity">DrawGetOpacity</a></h2>
801 <div class="doc-section">
803 <p>DrawGetOpacity() returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.</p></ol>
805 <p>The format of the DrawGetOpacity method is:</p>
808 double DrawGetOpacity(const DrawingWand *wand)
811 <p>A description of each parameter follows:</p></ol>
814 <ol><p>the drawing wand.</p></ol>
817 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
818 _8c.html" target="source" name="DrawGetStrokeAntialias">DrawGetStrokeAntialias</a></h2>
819 <div class="doc-section">
821 <p>DrawGetStrokeAntialias() returns the current stroke antialias setting. Stroked outlines are antialiased by default. When antialiasing is disabled stroked pixels are thresholded to determine if the stroke color or underlying canvas color should be used.</p></ol>
823 <p>The format of the DrawGetStrokeAntialias method is:</p>
826 MagickBooleanType DrawGetStrokeAntialias(const DrawingWand *wand)
829 <p>A description of each parameter follows:</p></ol>
832 <ol><p>the drawing wand.</p></ol>
835 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
836 _8c.html" target="source" name="DrawGetStrokeColor">DrawGetStrokeColor</a></h2>
837 <div class="doc-section">
839 <p>DrawGetStrokeColor() returns the color used for stroking object outlines.</p></ol>
841 <p>The format of the DrawGetStrokeColor method is:</p>
844 void DrawGetStrokeColor(const DrawingWand *wand,
845 $ PixelWand *stroke_color)
848 <p>A description of each parameter follows:</p></ol>
851 <ol><p>the drawing wand.</p></ol>
853 <h5>stroke_color</h5>
854 <ol><p>Return the stroke color.</p></ol>
857 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
858 _8c.html" target="source" name="DrawGetStrokeDashArray">DrawGetStrokeDashArray</a></h2>
859 <div class="doc-section">
861 <p>DrawGetStrokeDashArray() returns an array representing the pattern of dashes and gaps used to stroke paths (see DrawSetStrokeDashArray). The array must be freed once it is no longer required by the user.</p></ol>
863 <p>The format of the DrawGetStrokeDashArray method is:</p>
866 double *DrawGetStrokeDashArray(const DrawingWand *wand,
867 unsigned long *number_elements)
870 <p>A description of each parameter follows:</p></ol>
873 <ol><p>the drawing wand.</p></ol>
875 <h5>number_elements</h5>
876 <ol><p>address to place number of elements in dash array</p></ol>
879 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
880 _8c.html" target="source" name="DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a></h2>
881 <div class="doc-section">
883 <p>DrawGetStrokeDashOffset() returns the offset into the dash pattern to start the dash.</p></ol>
885 <p>The format of the DrawGetStrokeDashOffset method is:</p>
888 double DrawGetStrokeDashOffset(const DrawingWand *wand)
891 <p>A description of each parameter follows:</p></ol>
894 <ol><p>the drawing wand.</p></ol>
897 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
898 _8c.html" target="source" name="DrawGetStrokeLineCap">DrawGetStrokeLineCap</a></h2>
899 <div class="doc-section">
901 <p>DrawGetStrokeLineCap() returns the shape to be used at the end of open subpaths when they are stroked. Values of LineCap are UndefinedCap, ButtCap, RoundCap, and SquareCap.</p></ol>
903 <p>The format of the DrawGetStrokeLineCap method is:</p>
906 LineCap DrawGetStrokeLineCap(const DrawingWand *wand)
909 <p>A description of each parameter follows:</p></ol>
912 <ol><p>the drawing wand.</p></ol>
915 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
916 _8c.html" target="source" name="DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a></h2>
917 <div class="doc-section">
919 <p>DrawGetStrokeLineJoin() returns the shape to be used at the corners of paths (or other vector shapes) when they are stroked. Values of LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.</p></ol>
921 <p>The format of the DrawGetStrokeLineJoin method is:</p>
924 LineJoin DrawGetStrokeLineJoin(const DrawingWand *wand)
927 <p>A description of each parameter follows:</p></ol>
930 <ol><p>the drawing wand.</p></ol>
933 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
934 _8c.html" target="source" name="DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a></h2>
935 <div class="doc-section">
937 <p>DrawGetStrokeMiterLimit() returns the miter limit. When two line segments meet at a sharp angle and miter joins have been specified for 'lineJoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The miterLimit' imposes a limit on the ratio of the miter length to the 'lineWidth'.</p></ol>
939 <p>The format of the DrawGetStrokeMiterLimit method is:</p>
942 unsigned long DrawGetStrokeMiterLimit(const DrawingWand *wand)
945 <p>A description of each parameter follows:</p></ol>
948 <ol><p>the drawing wand.</p></ol>
951 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
952 _8c.html" target="source" name="DrawGetStrokeOpacity">DrawGetStrokeOpacity</a></h2>
953 <div class="doc-section">
955 <p>DrawGetStrokeOpacity() returns the opacity of stroked object outlines.</p></ol>
957 <p>The format of the DrawGetStrokeOpacity method is:</p>
960 double DrawGetStrokeOpacity(const DrawingWand *wand)
963 <p>A description of each parameter follows:</p></ol>
966 <ol><p>the drawing wand.</p></ol>
969 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
970 _8c.html" target="source" name="DrawGetStrokeWidth">DrawGetStrokeWidth</a></h2>
971 <div class="doc-section">
973 <p>DrawGetStrokeWidth() returns the width of the stroke used to draw object outlines.</p></ol>
975 <p>The format of the DrawGetStrokeWidth method is:</p>
978 double DrawGetStrokeWidth(const DrawingWand *wand)
981 <p>A description of each parameter follows:</p></ol>
984 <ol><p>the drawing wand.</p></ol>
987 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
988 _8c.html" target="source" name="DrawGetTextAlignment">DrawGetTextAlignment</a></h2>
989 <div class="doc-section">
991 <p>DrawGetTextAlignment() returns the alignment applied when annotating with text.</p></ol>
993 <p>The format of the DrawGetTextAlignment method is:</p>
996 AlignType DrawGetTextAlignment(DrawingWand *wand)
999 <p>A description of each parameter follows:</p></ol>
1002 <ol><p>the drawing wand.</p></ol>
1005 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1006 _8c.html" target="source" name="DrawGetTextAntialias">DrawGetTextAntialias</a></h2>
1007 <div class="doc-section">
1009 <p>DrawGetTextAntialias() returns the current text antialias setting, which determines whether text is antialiased. Text is antialiased by default.</p></ol>
1011 <p>The format of the DrawGetTextAntialias method is:</p>
1014 MagickBooleanType DrawGetTextAntialias(const DrawingWand *wand)
1017 <p>A description of each parameter follows:</p></ol>
1020 <ol><p>the drawing wand.</p></ol>
1023 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1024 _8c.html" target="source" name="DrawGetTextDecoration">DrawGetTextDecoration</a></h2>
1025 <div class="doc-section">
1027 <p>DrawGetTextDecoration() returns the decoration applied when annotating with text.</p></ol>
1029 <p>The format of the DrawGetTextDecoration method is:</p>
1032 DecorationType DrawGetTextDecoration(DrawingWand *wand)
1035 <p>A description of each parameter follows:</p></ol>
1038 <ol><p>the drawing wand.</p></ol>
1041 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1042 _8c.html" target="source" name="DrawGetTextEncoding">DrawGetTextEncoding</a></h2>
1043 <div class="doc-section">
1045 <p>DrawGetTextEncoding() returns a null-terminated string which specifies the code set used for text annotations. The string must be freed by the user once it is no longer required.</p></ol>
1047 <p>The format of the DrawGetTextEncoding method is:</p>
1050 char *DrawGetTextEncoding(const DrawingWand *wand)
1053 <p>A description of each parameter follows:</p></ol>
1056 <ol><p>the drawing wand.</p></ol>
1059 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1060 _8c.html" target="source" name="DrawGetTextKerning">DrawGetTextKerning</a></h2>
1061 <div class="doc-section">
1063 <p>DrawGetTextKerning() gets the spacing between characters in text.</p></ol>
1065 <p>The format of the DrawSetFontKerning method is:</p>
1068 double DrawGetTextKerning(DrawingWand *wand)
1071 <p>A description of each parameter follows:</p></ol>
1074 <ol><p>the drawing wand.</p></ol>
1077 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1078 _8c.html" target="source" name="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
1079 <div class="doc-section">
1081 <p>DrawGetTextInterwordSpacing() gets the spacing between lines in text.</p></ol>
1083 <p>The format of the DrawSetFontKerning method is:</p>
1086 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1089 <p>A description of each parameter follows:</p></ol>
1092 <ol><p>the drawing wand.</p></ol>
1095 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1096 _8c.html" target="source" name="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
1097 <div class="doc-section">
1099 <p>DrawGetTextInterwordSpacing() gets the spacing between words in text.</p></ol>
1101 <p>The format of the DrawSetFontKerning method is:</p>
1104 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1107 <p>A description of each parameter follows:</p></ol>
1110 <ol><p>the drawing wand.</p></ol>
1113 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1114 _8c.html" target="source" name="DrawGetVectorGraphics">DrawGetVectorGraphics</a></h2>
1115 <div class="doc-section">
1117 <p>DrawGetVectorGraphics() returns a null-terminated string which specifies the vector graphics generated by any graphics calls made since the wand was instantiated. The string must be freed by the user once it is no longer required.</p></ol>
1119 <p>The format of the DrawGetVectorGraphics method is:</p>
1122 char *DrawGetVectorGraphics(const DrawingWand *wand)
1125 <p>A description of each parameter follows:</p></ol>
1128 <ol><p>the drawing wand.</p></ol>
1131 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1132 _8c.html" target="source" name="DrawGetTextUnderColor">DrawGetTextUnderColor</a></h2>
1133 <div class="doc-section">
1135 <p>DrawGetTextUnderColor() returns the color of a background rectangle to place under text annotations.</p></ol>
1137 <p>The format of the DrawGetTextUnderColor method is:</p>
1140 void DrawGetTextUnderColor(const DrawingWand *wand,
1141 PixelWand *under_color)
1144 <p>A description of each parameter follows:</p></ol>
1147 <ol><p>the drawing wand.</p></ol>
1149 <h5>under_color</h5>
1150 <ol><p>Return the under color.</p></ol>
1153 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1154 _8c.html" target="source" name="DrawLine">DrawLine</a></h2>
1155 <div class="doc-section">
1157 <p>DrawLine() draws a line on the image using the current stroke color, stroke opacity, and stroke width.</p></ol>
1159 <p>The format of the DrawLine method is:</p>
1162 void DrawLine(DrawingWand *wand,const double sx,const double sy,
1163 const double ex,const double ey)
1166 <p>A description of each parameter follows:</p></ol>
1169 <ol><p>the drawing wand.</p></ol>
1172 <ol><p>starting x ordinate</p></ol>
1175 <ol><p>starting y ordinate</p></ol>
1178 <ol><p>ending x ordinate</p></ol>
1181 <ol><p>ending y ordinate</p></ol>
1184 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1185 _8c.html" target="source" name="DrawMatte">DrawMatte</a></h2>
1186 <div class="doc-section">
1188 <p>DrawMatte() paints on the image's opacity channel in order to set effected pixels to transparent. to influence the opacity of pixels. The available paint methods are:</p>
1191 PointMethod: Select the target pixel
1192 ReplaceMethod: Select any pixel that matches the target pixel.
1193 FloodfillMethod: Select the target pixel and matching neighbors.
1194 FillToBorderMethod: Select the target pixel and neighbors not matching
1196 ResetMethod: Select all pixels.
1199 <p>The format of the DrawMatte method is:</p>
1202 void DrawMatte(DrawingWand *wand,const double x,const double y,
1203 const PaintMethod paint_method)
1206 <p>A description of each parameter follows:</p></ol>
1209 <ol><p>the drawing wand.</p></ol>
1212 <ol><p>x ordinate</p></ol>
1215 <ol><p>y ordinate</p></ol>
1217 <h5>paint_method</h5>
1218 <ol><p>paint method.</p></ol>
1221 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1222 _8c.html" target="source" name="DrawPathClose">DrawPathClose</a></h2>
1223 <div class="doc-section">
1225 <p>DrawPathClose() adds a path element to the current path which closes the current subpath by drawing a straight line from the current point to the current subpath's most recent starting point (usually, the most recent moveto point).</p></ol>
1227 <p>The format of the DrawPathClose method is:</p>
1230 void DrawPathClose(DrawingWand *wand)
1233 <p>A description of each parameter follows:</p></ol>
1236 <ol><p>the drawing wand.</p></ol>
1239 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1240 _8c.html" target="source" name="DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a></h2>
1241 <div class="doc-section">
1243 <p>DrawPathCurveToAbsolute() draws a cubic Bezier curve from the current point to (x,y) using (x1,y1) as the control point at the beginning of the curve and (x2,y2) as the control point at the end of the curve using absolute coordinates. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1245 <p>The format of the DrawPathCurveToAbsolute method is:</p>
1248 void DrawPathCurveToAbsolute(DrawingWand *wand,const double x1,
1249 const double y1,const double x2,const double y2,const double x,
1253 <p>A description of each parameter follows:</p></ol>
1256 <ol><p>the drawing wand.</p></ol>
1259 <ol><p>x ordinate of control point for curve beginning</p></ol>
1262 <ol><p>y ordinate of control point for curve beginning</p></ol>
1265 <ol><p>x ordinate of control point for curve ending</p></ol>
1268 <ol><p>y ordinate of control point for curve ending</p></ol>
1271 <ol><p>x ordinate of the end of the curve</p></ol>
1274 <ol><p>y ordinate of the end of the curve</p></ol>
1277 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1278 _8c.html" target="source" name="DrawPathCurveToRelative">DrawPathCurveToRelative</a></h2>
1279 <div class="doc-section">
1281 <p>DrawPathCurveToRelative() draws a cubic Bezier curve from the current point to (x,y) using (x1,y1) as the control point at the beginning of the curve and (x2,y2) as the control point at the end of the curve using relative coordinates. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1283 <p>The format of the DrawPathCurveToRelative method is:</p>
1286 void DrawPathCurveToRelative(DrawingWand *wand,const double x1,
1287 const double y1,const double x2,const double y2,const double x,
1291 <p>A description of each parameter follows:</p></ol>
1294 <ol><p>the drawing wand.</p></ol>
1297 <ol><p>x ordinate of control point for curve beginning</p></ol>
1300 <ol><p>y ordinate of control point for curve beginning</p></ol>
1303 <ol><p>x ordinate of control point for curve ending</p></ol>
1306 <ol><p>y ordinate of control point for curve ending</p></ol>
1309 <ol><p>x ordinate of the end of the curve</p></ol>
1312 <ol><p>y ordinate of the end of the curve</p></ol>
1315 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1316 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a></h2>
1317 <div class="doc-section">
1319 <p>DrawPathCurveToQuadraticBezierAbsolute() draws a quadratic Bezier curve from the current point to (x,y) using (x1,y1) as the control point using absolute coordinates. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1321 <p>The format of the DrawPathCurveToQuadraticBezierAbsolute method is:</p>
1324 void DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *wand,
1325 const double x1,const double y1,onst double x,const double y)
1328 <p>A description of each parameter follows:</p></ol>
1331 <ol><p>the drawing wand.</p></ol>
1334 <ol><p>x ordinate of the control point</p></ol>
1337 <ol><p>y ordinate of the control point</p></ol>
1340 <ol><p>x ordinate of final point</p></ol>
1343 <ol><p>y ordinate of final point</p></ol>
1346 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1347 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a></h2>
1348 <div class="doc-section">
1350 <p>DrawPathCurveToQuadraticBezierRelative() draws a quadratic Bezier curve from the current point to (x,y) using (x1,y1) as the control point using relative coordinates. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1352 <p>The format of the DrawPathCurveToQuadraticBezierRelative method is:</p>
1355 void DrawPathCurveToQuadraticBezierRelative(DrawingWand *wand,
1356 const double x1,const double y1,const double x,const double y)
1359 <p>A description of each parameter follows:</p></ol>
1362 <ol><p>the drawing wand.</p></ol>
1365 <ol><p>x ordinate of the control point</p></ol>
1368 <ol><p>y ordinate of the control point</p></ol>
1371 <ol><p>x ordinate of final point</p></ol>
1374 <ol><p>y ordinate of final point</p></ol>
1377 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1378 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
1379 <div class="doc-section">
1381 <p>DrawPathCurveToQuadraticBezierSmoothAbsolute() draws a quadratic Bezier curve (using absolute coordinates) from the current point to (x,y). The control point is assumed to be the reflection of the control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not a DrawPathCurveToQuadraticBezierAbsolute, DrawPathCurveToQuadraticBezierRelative, DrawPathCurveToQuadraticBezierSmoothAbsolute or DrawPathCurveToQuadraticBezierSmoothRelative, assume the control point is coincident with the current point.). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1383 <p>The format of the DrawPathCurveToQuadraticBezierSmoothAbsolute method is:</p>
1386 void DrawPathCurveToQuadraticBezierSmoothAbsolute(
1387 DrawingWand *wand,const double x,const double y)
1390 <p>A description of each parameter follows:</p></ol>
1393 <ol><p>the drawing wand.</p></ol>
1396 <ol><p>x ordinate of final point</p></ol>
1399 <ol><p>y ordinate of final point</p></ol>
1402 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1403 _8c.html" target="source" name="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
1404 <div class="doc-section">
1406 <p>DrawPathCurveToQuadraticBezierSmoothAbsolute() draws a quadratic Bezier curve (using relative coordinates) from the current point to (x,y). The control point is assumed to be the reflection of the control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not a DrawPathCurveToQuadraticBezierAbsolute, DrawPathCurveToQuadraticBezierRelative, DrawPathCurveToQuadraticBezierSmoothAbsolute or DrawPathCurveToQuadraticBezierSmoothRelative, assume the control point is coincident with the current point.). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1408 <p>The format of the DrawPathCurveToQuadraticBezierSmoothRelative method is:</p>
1411 void DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *wand,
1412 const double x,const double y)
1415 <p>A description of each parameter follows:</p></ol>
1418 <ol><p>the drawing wand.</p></ol>
1421 <ol><p>x ordinate of final point</p></ol>
1424 <ol><p>y ordinate of final point</p></ol>
1427 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1428 _8c.html" target="source" name="DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a></h2>
1429 <div class="doc-section">
1431 <p>DrawPathCurveToSmoothAbsolute() draws a cubic Bezier curve from the current point to (x,y) using absolute coordinates. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an DrawPathCurveToAbsolute, DrawPathCurveToRelative, DrawPathCurveToSmoothAbsolute or DrawPathCurveToSmoothRelative, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1433 <p>The format of the DrawPathCurveToSmoothAbsolute method is:</p>
1436 void DrawPathCurveToSmoothAbsolute(DrawingWand *wand,
1437 const double x2const double y2,const double x,const double y)
1440 <p>A description of each parameter follows:</p></ol>
1443 <ol><p>the drawing wand.</p></ol>
1446 <ol><p>x ordinate of second control point</p></ol>
1449 <ol><p>y ordinate of second control point</p></ol>
1452 <ol><p>x ordinate of termination point</p></ol>
1455 <ol><p>y ordinate of termination point</p></ol>
1458 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1459 _8c.html" target="source" name="DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a></h2>
1460 <div class="doc-section">
1462 <p>DrawPathCurveToSmoothRelative() draws a cubic Bezier curve from the current point to (x,y) using relative coordinates. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an DrawPathCurveToAbsolute, DrawPathCurveToRelative, DrawPathCurveToSmoothAbsolute or DrawPathCurveToSmoothRelative, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p></ol>
1464 <p>The format of the DrawPathCurveToSmoothRelative method is:</p>
1467 void DrawPathCurveToSmoothRelative(DrawingWand *wand,
1468 const double x2,const double y2,const double x,const double y)
1471 <p>A description of each parameter follows:</p></ol>
1474 <ol><p>the drawing wand.</p></ol>
1477 <ol><p>x ordinate of second control point</p></ol>
1480 <ol><p>y ordinate of second control point</p></ol>
1483 <ol><p>x ordinate of termination point</p></ol>
1486 <ol><p>y ordinate of termination point</p></ol>
1489 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1490 _8c.html" target="source" name="DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a></h2>
1491 <div class="doc-section">
1493 <p>DrawPathEllipticArcAbsolute() draws an elliptical arc from the current point to (x, y) using absolute coordinates. The size and orientation of the ellipse are defined by two radii (rx, ry) and an xAxisRotation, which indicates how the ellipse as a whole is rotated relative to the current coordinate system. The center (cx, cy) of the ellipse is calculated automagically to satisfy the constraints imposed by the other parameters. largeArcFlag and sweepFlag contribute to the automatic calculations and help determine how the arc is drawn. If largeArcFlag is true then draw the larger of the available arcs. If sweepFlag is true, then draw the arc matching a clock-wise rotation.</p></ol>
1495 <p>The format of the DrawPathEllipticArcAbsolute method is:</p>
1498 void DrawPathEllipticArcAbsolute(DrawingWand *wand,
1499 const double rx,const double ry,const double x_axis_rotation,
1500 const MagickBooleanType large_arc_flag,
1501 const MagickBooleanType sweep_flag,const double x,const double y)
1504 <p>A description of each parameter follows:</p></ol>
1507 <ol><p>the drawing wand.</p></ol>
1510 <ol><p>x radius</p></ol>
1513 <ol><p>y radius</p></ol>
1515 <h5>x_axis_rotation</h5>
1516 <ol><p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p></ol>
1518 <h5>large_arc_flag</h5>
1519 <ol><p>If non-zero (true) then draw the larger of the available arcs</p></ol>
1522 <ol><p>If non-zero (true) then draw the arc matching a clock-wise rotation</p></ol>
1526 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1527 _8c.html" target="source" name="DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a></h2>
1528 <div class="doc-section">
1530 <p>DrawPathEllipticArcRelative() draws an elliptical arc from the current point to (x, y) using relative coordinates. The size and orientation of the ellipse are defined by two radii (rx, ry) and an xAxisRotation, which indicates how the ellipse as a whole is rotated relative to the current coordinate system. The center (cx, cy) of the ellipse is calculated automagically to satisfy the constraints imposed by the other parameters. largeArcFlag and sweepFlag contribute to the automatic calculations and help determine how the arc is drawn. If largeArcFlag is true then draw the larger of the available arcs. If sweepFlag is true, then draw the arc matching a clock-wise rotation.</p></ol>
1532 <p>The format of the DrawPathEllipticArcRelative method is:</p>
1535 void DrawPathEllipticArcRelative(DrawingWand *wand,
1536 const double rx,const double ry,const double x_axis_rotation,
1537 const MagickBooleanType large_arc_flag,
1538 const MagickBooleanType sweep_flag,const double x,const double y)
1541 <p>A description of each parameter follows:</p></ol>
1544 <ol><p>the drawing wand.</p></ol>
1547 <ol><p>x radius</p></ol>
1550 <ol><p>y radius</p></ol>
1552 <h5>x_axis_rotation</h5>
1553 <ol><p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p></ol>
1555 <h5>large_arc_flag</h5>
1556 <ol><p>If non-zero (true) then draw the larger of the available arcs</p></ol>
1559 <ol><p>If non-zero (true) then draw the arc matching a clock-wise rotation</p></ol>
1562 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1563 _8c.html" target="source" name="DrawPathFinish">DrawPathFinish</a></h2>
1564 <div class="doc-section">
1566 <p>DrawPathFinish() terminates the current path.</p></ol>
1568 <p>The format of the DrawPathFinish method is:</p>
1571 void DrawPathFinish(DrawingWand *wand)
1574 <p>A description of each parameter follows:</p></ol>
1577 <ol><p>the drawing wand.</p></ol>
1580 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1581 _8c.html" target="source" name="DrawPathLineToAbsolute">DrawPathLineToAbsolute</a></h2>
1582 <div class="doc-section">
1584 <p>DrawPathLineToAbsolute() draws a line path from the current point to the given coordinate using absolute coordinates. The coordinate then becomes the new current point.</p></ol>
1586 <p>The format of the DrawPathLineToAbsolute method is:</p>
1589 void DrawPathLineToAbsolute(DrawingWand *wand,const double x,
1593 <p>A description of each parameter follows:</p></ol>
1596 <ol><p>the drawing wand.</p></ol>
1599 <ol><p>target x ordinate</p></ol>
1602 <ol><p>target y ordinate</p></ol>
1605 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1606 _8c.html" target="source" name="DrawPathLineToRelative">DrawPathLineToRelative</a></h2>
1607 <div class="doc-section">
1609 <p>DrawPathLineToRelative() draws a line path from the current point to the given coordinate using relative coordinates. The coordinate then becomes the new current point.</p></ol>
1611 <p>The format of the DrawPathLineToRelative method is:</p>
1614 void DrawPathLineToRelative(DrawingWand *wand,const double x,
1618 <p>A description of each parameter follows:</p></ol>
1621 <ol><p>the drawing wand.</p></ol>
1624 <ol><p>target x ordinate</p></ol>
1627 <ol><p>target y ordinate</p></ol>
1630 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1631 _8c.html" target="source" name="DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a></h2>
1632 <div class="doc-section">
1634 <p>DrawPathLineToHorizontalAbsolute() draws a horizontal line path from the current point to the target point using absolute coordinates. The target point then becomes the new current point.</p></ol>
1636 <p>The format of the DrawPathLineToHorizontalAbsolute method is:</p>
1639 void DrawPathLineToHorizontalAbsolute(DrawingWand *wand,
1640 const PathMode mode,const double x)
1643 <p>A description of each parameter follows:</p></ol>
1646 <ol><p>the drawing wand.</p></ol>
1649 <ol><p>target x ordinate</p></ol>
1652 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1653 _8c.html" target="source" name="DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a></h2>
1654 <div class="doc-section">
1656 <p>DrawPathLineToHorizontalRelative() draws a horizontal line path from the current point to the target point using relative coordinates. The target point then becomes the new current point.</p></ol>
1658 <p>The format of the DrawPathLineToHorizontalRelative method is:</p>
1661 void DrawPathLineToHorizontalRelative(DrawingWand *wand,
1665 <p>A description of each parameter follows:</p></ol>
1668 <ol><p>the drawing wand.</p></ol>
1671 <ol><p>target x ordinate</p></ol>
1674 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1675 _8c.html" target="source" name="DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a></h2>
1676 <div class="doc-section">
1678 <p>DrawPathLineToVerticalAbsolute() draws a vertical line path from the current point to the target point using absolute coordinates. The target point then becomes the new current point.</p></ol>
1680 <p>The format of the DrawPathLineToVerticalAbsolute method is:</p>
1683 void DrawPathLineToVerticalAbsolute(DrawingWand *wand,
1687 <p>A description of each parameter follows:</p></ol>
1690 <ol><p>the drawing wand.</p></ol>
1693 <ol><p>target y ordinate</p></ol>
1696 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1697 _8c.html" target="source" name="DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a></h2>
1698 <div class="doc-section">
1700 <p>DrawPathLineToVerticalRelative() draws a vertical line path from the current point to the target point using relative coordinates. The target point then becomes the new current point.</p></ol>
1702 <p>The format of the DrawPathLineToVerticalRelative method is:</p>
1705 void DrawPathLineToVerticalRelative(DrawingWand *wand,
1709 <p>A description of each parameter follows:</p></ol>
1712 <ol><p>the drawing wand.</p></ol>
1715 <ol><p>target y ordinate</p></ol>
1718 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1719 _8c.html" target="source" name="DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a></h2>
1720 <div class="doc-section">
1722 <p>DrawPathMoveToAbsolute() starts a new sub-path at the given coordinate using absolute coordinates. The current point then becomes the specified coordinate.</p></ol>
1724 <p>The format of the DrawPathMoveToAbsolute method is:</p>
1727 void DrawPathMoveToAbsolute(DrawingWand *wand,const double x,
1731 <p>A description of each parameter follows:</p></ol>
1734 <ol><p>the drawing wand.</p></ol>
1737 <ol><p>target x ordinate</p></ol>
1740 <ol><p>target y ordinate</p></ol>
1743 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1744 _8c.html" target="source" name="DrawPathMoveToRelative">DrawPathMoveToRelative</a></h2>
1745 <div class="doc-section">
1747 <p>DrawPathMoveToRelative() starts a new sub-path at the given coordinate using relative coordinates. The current point then becomes the specified coordinate.</p></ol>
1749 <p>The format of the DrawPathMoveToRelative method is:</p>
1752 void DrawPathMoveToRelative(DrawingWand *wand,const double x,
1756 <p>A description of each parameter follows:</p></ol>
1759 <ol><p>the drawing wand.</p></ol>
1762 <ol><p>target x ordinate</p></ol>
1765 <ol><p>target y ordinate</p></ol>
1768 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1769 _8c.html" target="source" name="DrawPathStart">DrawPathStart</a></h2>
1770 <div class="doc-section">
1772 <p>DrawPathStart() declares the start of a path drawing list which is terminated by a matching DrawPathFinish() command. All other DrawPath commands must be enclosed between a DrawPathStart() and a DrawPathFinish() command. This is because path drawing commands are subordinate commands and they do not function by themselves.</p></ol>
1774 <p>The format of the DrawPathStart method is:</p>
1777 void DrawPathStart(DrawingWand *wand)
1780 <p>A description of each parameter follows:</p></ol>
1783 <ol><p>the drawing wand.</p></ol>
1786 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1787 _8c.html" target="source" name="DrawPoint">DrawPoint</a></h2>
1788 <div class="doc-section">
1790 <p>DrawPoint() draws a point using the current fill color.</p></ol>
1792 <p>The format of the DrawPoint method is:</p>
1795 void DrawPoint(DrawingWand *wand,const double x,const double y)
1798 <p>A description of each parameter follows:</p></ol>
1801 <ol><p>the drawing wand.</p></ol>
1804 <ol><p>target x coordinate</p></ol>
1807 <ol><p>target y coordinate</p></ol>
1810 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1811 _8c.html" target="source" name="DrawPolygon">DrawPolygon</a></h2>
1812 <div class="doc-section">
1814 <p>DrawPolygon() draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p></ol>
1816 <p>The format of the DrawPolygon method is:</p>
1819 void DrawPolygon(DrawingWand *wand,
1820 const unsigned long number_coordinates,const PointInfo *coordinates)
1823 <p>A description of each parameter follows:</p></ol>
1826 <ol><p>the drawing wand.</p></ol>
1828 <h5>number_coordinates</h5>
1829 <ol><p>number of coordinates</p></ol>
1831 <h5>coordinates</h5>
1832 <ol><p>coordinate array</p></ol>
1835 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1836 _8c.html" target="source" name="DrawPolyline">DrawPolyline</a></h2>
1837 <div class="doc-section">
1839 <p>DrawPolyline() draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p></ol>
1841 <p>The format of the DrawPolyline method is:</p>
1844 void DrawPolyline(DrawingWand *wand,
1845 const unsigned long number_coordinates,const PointInfo *coordinates)
1848 <p>A description of each parameter follows:</p></ol>
1851 <ol><p>the drawing wand.</p></ol>
1853 <h5>number_coordinates</h5>
1854 <ol><p>number of coordinates</p></ol>
1856 <h5>coordinates</h5>
1857 <ol><p>coordinate array</p></ol>
1860 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1861 _8c.html" target="source" name="DrawPopClipPath">DrawPopClipPath</a></h2>
1862 <div class="doc-section">
1864 <p>DrawPopClipPath() terminates a clip path definition.</p></ol>
1866 <p>The format of the DrawPopClipPath method is:</p>
1869 void DrawPopClipPath(DrawingWand *wand)
1872 <p>A description of each parameter follows:</p></ol>
1875 <ol><p>the drawing wand.</p></ol>
1878 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1879 _8c.html" target="source" name="DrawPopDefs">DrawPopDefs</a></h2>
1880 <div class="doc-section">
1882 <p>DrawPopDefs() terminates a definition list.</p></ol>
1884 <p>The format of the DrawPopDefs method is:</p>
1887 void DrawPopDefs(DrawingWand *wand)
1890 <p>A description of each parameter follows:</p></ol>
1893 <ol><p>the drawing wand.</p></ol>
1896 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1897 _8c.html" target="source" name="DrawPopPattern">DrawPopPattern</a></h2>
1898 <div class="doc-section">
1900 <p>DrawPopPattern() terminates a pattern definition.</p></ol>
1902 <p>The format of the DrawPopPattern method is:</p>
1905 MagickBooleanType DrawPopPattern(DrawingWand *wand)
1908 <p>A description of each parameter follows:</p></ol>
1911 <ol><p>the drawing wand.</p></ol>
1914 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1915 _8c.html" target="source" name="DrawPushClipPath">DrawPushClipPath</a></h2>
1916 <div class="doc-section">
1918 <p>DrawPushClipPath() starts a clip path definition which is comprized of any number of drawing commands and terminated by a DrawPopClipPath() command.</p></ol>
1920 <p>The format of the DrawPushClipPath method is:</p>
1923 void DrawPushClipPath(DrawingWand *wand,const char *clip_mask_id)
1926 <p>A description of each parameter follows:</p></ol>
1929 <ol><p>the drawing wand.</p></ol>
1931 <h5>clip_mask_id</h5>
1932 <ol><p>string identifier to associate with the clip path for later use.</p></ol>
1935 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1936 _8c.html" target="source" name="DrawPushDefs">DrawPushDefs</a></h2>
1937 <div class="doc-section">
1939 <p>DrawPushDefs() indicates that commands up to a terminating DrawPopDefs() command create named elements (e.g. clip-paths, textures, etc.) which may safely be processed earlier for the sake of efficiency.</p></ol>
1941 <p>The format of the DrawPushDefs method is:</p>
1944 void DrawPushDefs(DrawingWand *wand)
1947 <p>A description of each parameter follows:</p></ol>
1950 <ol><p>the drawing wand.</p></ol>
1953 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1954 _8c.html" target="source" name="DrawPushPattern">DrawPushPattern</a></h2>
1955 <div class="doc-section">
1957 <p>DrawPushPattern() indicates that subsequent commands up to a DrawPopPattern() command comprise the definition of a named pattern. The pattern space is assigned top left corner coordinates, a width and height, and becomes its own drawing space. Anything which can be drawn may be used in a pattern definition. Named patterns may be used as stroke or brush definitions.</p></ol>
1959 <p>The format of the DrawPushPattern method is:</p>
1962 MagickBooleanType DrawPushPattern(DrawingWand *wand,
1963 const char *pattern_id,const double x,const double y,
1964 const double width,const double height)
1967 <p>A description of each parameter follows:</p></ol>
1970 <ol><p>the drawing wand.</p></ol>
1973 <ol><p>pattern identification for later reference</p></ol>
1976 <ol><p>x ordinate of top left corner</p></ol>
1979 <ol><p>y ordinate of top left corner</p></ol>
1982 <ol><p>width of pattern space</p></ol>
1985 <ol><p>height of pattern space</p></ol>
1988 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
1989 _8c.html" target="source" name="DrawRectangle">DrawRectangle</a></h2>
1990 <div class="doc-section">
1992 <p>DrawRectangle() draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.</p></ol>
1994 <p>The format of the DrawRectangle method is:</p>
1997 void DrawRectangle(DrawingWand *wand,const double x1,
1998 const double y1,const double x2,const double y2)
2001 <p>A description of each parameter follows:</p></ol>
2004 <ol><p>x ordinate of first coordinate</p></ol>
2007 <ol><p>y ordinate of first coordinate</p></ol>
2010 <ol><p>x ordinate of second coordinate</p></ol>
2013 <ol><p>y ordinate of second coordinate</p></ol>
2016 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2017 _8c.html" target="source" name="DrawResetVectorGraphics">DrawResetVectorGraphics</a></h2>
2018 <div class="doc-section">
2020 <p>DrawResetVectorGraphics() resets the vector graphics associated with the specified wand.</p></ol>
2022 <p>The format of the DrawResetVectorGraphics method is:</p>
2025 void DrawResetVectorGraphics(DrawingWand *wand)
2028 <p>A description of each parameter follows:</p></ol>
2031 <ol><p>the drawing wand.</p></ol>
2034 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2035 _8c.html" target="source" name="DrawRotate">DrawRotate</a></h2>
2036 <div class="doc-section">
2038 <p>DrawRotate() applies the specified rotation to the current coordinate space.</p></ol>
2040 <p>The format of the DrawRotate method is:</p>
2043 void DrawRotate(DrawingWand *wand,const double degrees)
2046 <p>A description of each parameter follows:</p></ol>
2049 <ol><p>the drawing wand.</p></ol>
2052 <ol><p>degrees of rotation</p></ol>
2055 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2056 _8c.html" target="source" name="DrawRoundRectangle">DrawRoundRectangle</a></h2>
2057 <div class="doc-section">
2059 <p>DrawRoundRectangle() draws a rounted rectangle given two coordinates, x & y corner radiuses and using the current stroke, stroke width, and fill settings.</p></ol>
2061 <p>The format of the DrawRoundRectangle method is:</p>
2064 void DrawRoundRectangle(DrawingWand *wand,double x1,double y1,
2065 double x2,double y2,double rx,double ry)
2068 <p>A description of each parameter follows:</p></ol>
2071 <ol><p>the drawing wand.</p></ol>
2074 <ol><p>x ordinate of first coordinate</p></ol>
2077 <ol><p>y ordinate of first coordinate</p></ol>
2080 <ol><p>x ordinate of second coordinate</p></ol>
2083 <ol><p>y ordinate of second coordinate</p></ol>
2086 <ol><p>radius of corner in horizontal direction</p></ol>
2089 <ol><p>radius of corner in vertical direction</p></ol>
2092 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2093 _8c.html" target="source" name="DrawScale">DrawScale</a></h2>
2094 <div class="doc-section">
2096 <p>DrawScale() adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space.</p></ol>
2098 <p>The format of the DrawScale method is:</p>
2101 void DrawScale(DrawingWand *wand,const double x,const double y)
2104 <p>A description of each parameter follows:</p></ol>
2107 <ol><p>the drawing wand.</p></ol>
2110 <ol><p>horizontal scale factor</p></ol>
2113 <ol><p>vertical scale factor</p></ol>
2116 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2117 _8c.html" target="source" name="DrawSetBorderColor">DrawSetBorderColor</a></h2>
2118 <div class="doc-section">
2120 <p>DrawSetBorderColor() sets the border color to be used for drawing bordered objects.</p></ol>
2122 <p>The format of the DrawSetBorderColor method is:</p>
2125 void DrawSetBorderColor(DrawingWand *wand,const PixelWand *border_wand)
2128 <p>A description of each parameter follows:</p></ol>
2131 <ol><p>the drawing wand.</p></ol>
2133 <h5>border_wand</h5>
2134 <ol><p>border wand.</p></ol>
2137 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2138 _8c.html" target="source" name="DrawSetClipPath">DrawSetClipPath</a></h2>
2139 <div class="doc-section">
2141 <p>DrawSetClipPath() associates a named clipping path with the image. Only the areas drawn on by the clipping path will be modified as long as it remains in effect.</p></ol>
2143 <p>The format of the DrawSetClipPath method is:</p>
2146 MagickBooleanType DrawSetClipPath(DrawingWand *wand,
2147 const char *clip_mask)
2150 <p>A description of each parameter follows:</p></ol>
2153 <ol><p>the drawing wand.</p></ol>
2156 <ol><p>name of clipping path to associate with image</p></ol>
2159 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2160 _8c.html" target="source" name="DrawSetClipRule">DrawSetClipRule</a></h2>
2161 <div class="doc-section">
2163 <p>DrawSetClipRule() set the polygon fill rule to be used by the clipping path.</p></ol>
2165 <p>The format of the DrawSetClipRule method is:</p>
2168 void DrawSetClipRule(DrawingWand *wand,const FillRule fill_rule)
2171 <p>A description of each parameter follows:</p></ol>
2174 <ol><p>the drawing wand.</p></ol>
2177 <ol><p>fill rule (EvenOddRule or NonZeroRule)</p></ol>
2180 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2181 _8c.html" target="source" name="DrawSetClipUnits">DrawSetClipUnits</a></h2>
2182 <div class="doc-section">
2184 <p>DrawSetClipUnits() sets the interpretation of clip path units.</p></ol>
2186 <p>The format of the DrawSetClipUnits method is:</p>
2189 void DrawSetClipUnits(DrawingWand *wand,
2190 const ClipPathUnits clip_units)
2193 <p>A description of each parameter follows:</p></ol>
2196 <ol><p>the drawing wand.</p></ol>
2199 <ol><p>units to use (UserSpace, UserSpaceOnUse, or ObjectBoundingBox)</p></ol>
2202 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2203 _8c.html" target="source" name="DrawSetFillColor">DrawSetFillColor</a></h2>
2204 <div class="doc-section">
2206 <p>DrawSetFillColor() sets the fill color to be used for drawing filled objects.</p></ol>
2208 <p>The format of the DrawSetFillColor method is:</p>
2211 void DrawSetFillColor(DrawingWand *wand,const PixelWand *fill_wand)
2214 <p>A description of each parameter follows:</p></ol>
2217 <ol><p>the drawing wand.</p></ol>
2220 <ol><p>fill wand.</p></ol>
2223 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2224 _8c.html" target="source" name="DrawSetFillOpacity">DrawSetFillOpacity</a></h2>
2225 <div class="doc-section">
2227 <p>DrawSetFillOpacity() sets the opacity to use when drawing using the fill color or fill texture. Fully opaque is 1.0.</p></ol>
2229 <p>The format of the DrawSetFillOpacity method is:</p>
2232 void DrawSetFillOpacity(DrawingWand *wand,const double fill_opacity)
2235 <p>A description of each parameter follows:</p></ol>
2238 <ol><p>the drawing wand.</p></ol>
2240 <h5>fill_opacity</h5>
2241 <ol><p>fill opacity</p></ol>
2244 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2245 _8c.html" target="source" name="DrawSetOpacity">DrawSetOpacity</a></h2>
2246 <div class="doc-section">
2248 <p>DrawSetOpacity() sets the opacity to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0.</p></ol>
2250 <p>The format of the DrawSetOpacity method is:</p>
2253 void DrawSetOpacity(DrawingWand *wand,const double opacity)
2256 <p>A description of each parameter follows:</p></ol>
2259 <ol><p>the drawing wand.</p></ol>
2262 <ol><p>fill opacity</p></ol>
2265 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2266 _8c.html" target="source" name="DrawSetFillPatternURL">DrawSetFillPatternURL</a></h2>
2267 <div class="doc-section">
2269 <p>DrawSetFillPatternURL() sets the URL to use as a fill pattern for filling objects. Only local URLs ("#identifier") are supported at this time. These local URLs are normally created by defining a named fill pattern with DrawPushPattern/DrawPopPattern.</p></ol>
2271 <p>The format of the DrawSetFillPatternURL method is:</p>
2274 MagickBooleanType DrawSetFillPatternURL(DrawingWand *wand,
2275 const char *fill_url)
2278 <p>A description of each parameter follows:</p></ol>
2281 <ol><p>the drawing wand.</p></ol>
2284 <ol><p>URL to use to obtain fill pattern.</p></ol>
2287 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2288 _8c.html" target="source" name="DrawSetFillRule">DrawSetFillRule</a></h2>
2289 <div class="doc-section">
2291 <p>DrawSetFillRule() sets the fill rule to use while drawing polygons.</p></ol>
2293 <p>The format of the DrawSetFillRule method is:</p>
2296 void DrawSetFillRule(DrawingWand *wand,const FillRule fill_rule)
2299 <p>A description of each parameter follows:</p></ol>
2302 <ol><p>the drawing wand.</p></ol>
2305 <ol><p>fill rule (EvenOddRule or NonZeroRule)</p></ol>
2308 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2309 _8c.html" target="source" name="DrawSetFont">DrawSetFont</a></h2>
2310 <div class="doc-section">
2312 <p>DrawSetFont() sets the fully-sepecified font to use when annotating with text.</p></ol>
2314 <p>The format of the DrawSetFont method is:</p>
2317 MagickBooleanType DrawSetFont(DrawingWand *wand,const char *font_name)
2320 <p>A description of each parameter follows:</p></ol>
2323 <ol><p>the drawing wand.</p></ol>
2326 <ol><p>font name</p></ol>
2329 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2330 _8c.html" target="source" name="DrawSetFontFamily">DrawSetFontFamily</a></h2>
2331 <div class="doc-section">
2333 <p>DrawSetFontFamily() sets the font family to use when annotating with text.</p></ol>
2335 <p>The format of the DrawSetFontFamily method is:</p>
2338 MagickBooleanType DrawSetFontFamily(DrawingWand *wand,
2339 const char *font_family)
2342 <p>A description of each parameter follows:</p></ol>
2345 <ol><p>the drawing wand.</p></ol>
2347 <h5>font_family</h5>
2348 <ol><p>font family</p></ol>
2351 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2352 _8c.html" target="source" name="DrawSetFontSize">DrawSetFontSize</a></h2>
2353 <div class="doc-section">
2355 <p>DrawSetFontSize() sets the font pointsize to use when annotating with text.</p></ol>
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></ol>
2366 <ol><p>the drawing wand.</p></ol>
2369 <ol><p>text pointsize</p></ol>
2372 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2373 _8c.html" target="source" name="DrawSetFontStretch">DrawSetFontStretch</a></h2>
2374 <div class="doc-section">
2376 <p>DrawSetFontStretch() sets the font stretch to use when annotating with text. The AnyStretch enumeration acts as a wild-card "don't care" option.</p></ol>
2378 <p>The format of the DrawSetFontStretch method is:</p>
2381 void DrawSetFontStretch(DrawingWand *wand,
2382 const StretchType font_stretch)
2385 <p>A description of each parameter follows:</p></ol>
2388 <ol><p>the drawing wand.</p></ol>
2390 <h5>font_stretch</h5>
2391 <ol><p>font stretch (NormalStretch, UltraCondensedStretch, CondensedStretch, SemiCondensedStretch, SemiExpandedStretch, ExpandedStretch, ExtraExpandedStretch, UltraExpandedStretch, AnyStretch)</p></ol>
2394 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2395 _8c.html" target="source" name="DrawSetFontStyle">DrawSetFontStyle</a></h2>
2396 <div class="doc-section">
2398 <p>DrawSetFontStyle() sets the font style to use when annotating with text. The AnyStyle enumeration acts as a wild-card "don't care" option.</p></ol>
2400 <p>The format of the DrawSetFontStyle method is:</p>
2403 void DrawSetFontStyle(DrawingWand *wand,const StyleType style)
2406 <p>A description of each parameter follows:</p></ol>
2409 <ol><p>the drawing wand.</p></ol>
2412 <ol><p>font style (NormalStyle, ItalicStyle, ObliqueStyle, AnyStyle)</p></ol>
2415 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2416 _8c.html" target="source" name="DrawSetFontWeight">DrawSetFontWeight</a></h2>
2417 <div class="doc-section">
2419 <p>DrawSetFontWeight() sets the font weight to use when annotating with text.</p></ol>
2421 <p>The format of the DrawSetFontWeight method is:</p>
2424 void DrawSetFontWeight(DrawingWand *wand,
2425 const unsigned long font_weight)
2428 <p>A description of each parameter follows:</p></ol>
2431 <ol><p>the drawing wand.</p></ol>
2433 <h5>font_weight</h5>
2434 <ol><p>font weight (valid range 100-900)</p></ol>
2437 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2438 _8c.html" target="source" name="DrawSetGravity">DrawSetGravity</a></h2>
2439 <div class="doc-section">
2441 <p>DrawSetGravity() sets the text placement gravity to use when annotating with text.</p></ol>
2443 <p>The format of the DrawSetGravity method is:</p>
2446 void DrawSetGravity(DrawingWand *wand,const GravityType gravity)
2449 <p>A description of each parameter follows:</p></ol>
2452 <ol><p>the drawing wand.</p></ol>
2455 <ol><p>positioning gravity (NorthWestGravity, NorthGravity, NorthEastGravity, WestGravity, CenterGravity, EastGravity, SouthWestGravity, SouthGravity, SouthEastGravity)</p></ol>
2458 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2459 _8c.html" target="source" name="DrawSetStrokeColor">DrawSetStrokeColor</a></h2>
2460 <div class="doc-section">
2462 <p>DrawSetStrokeColor() sets the color used for stroking object outlines.</p></ol>
2464 <p>The format of the DrawSetStrokeColor method is:</p>
2467 void DrawSetStrokeColor(DrawingWand *wand,
2468 const PixelWand *stroke_wand)
2471 <p>A description of each parameter follows:</p></ol>
2474 <ol><p>the drawing wand.</p></ol>
2476 <h5>stroke_wand</h5>
2477 <ol><p>stroke wand.</p></ol>
2480 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2481 _8c.html" target="source" name="DrawSetStrokePatternURL">DrawSetStrokePatternURL</a></h2>
2482 <div class="doc-section">
2484 <p>DrawSetStrokePatternURL() sets the pattern used for stroking object outlines.</p></ol>
2486 <p>The format of the DrawSetStrokePatternURL method is:</p>
2489 MagickBooleanType DrawSetStrokePatternURL(DrawingWand *wand,
2490 const char *stroke_url)
2493 <p>A description of each parameter follows:</p></ol>
2496 <ol><p>the drawing wand.</p></ol>
2499 <ol><p>URL specifying pattern ID (e.g. "#pattern_id")</p></ol>
2502 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2503 _8c.html" target="source" name="DrawSetStrokeAntialias">DrawSetStrokeAntialias</a></h2>
2504 <div class="doc-section">
2506 <p>DrawSetStrokeAntialias() controls whether stroked outlines are antialiased. Stroked outlines are antialiased by default. When antialiasing is disabled stroked pixels are thresholded to determine if the stroke color or underlying canvas color should be used.</p></ol>
2508 <p>The format of the DrawSetStrokeAntialias method is:</p>
2511 void DrawSetStrokeAntialias(DrawingWand *wand,
2512 const MagickBooleanType stroke_antialias)
2515 <p>A description of each parameter follows:</p></ol>
2518 <ol><p>the drawing wand.</p></ol>
2520 <h5>stroke_antialias</h5>
2521 <ol><p>set to false (zero) to disable antialiasing</p></ol>
2524 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2525 _8c.html" target="source" name="DrawSetStrokeDashArray">DrawSetStrokeDashArray</a></h2>
2526 <div class="doc-section">
2528 <p>DrawSetStrokeDashArray() specifies the pattern of dashes and gaps used to stroke paths. The stroke dash array represents an array of numbers that specify the lengths of alternating dashes and gaps in pixels. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. To remove an existing dash array, pass a zero number_elements argument and null dash_array. A typical stroke dash array might contain the members 5 3 2.</p></ol>
2530 <p>The format of the DrawSetStrokeDashArray method is:</p>
2533 MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand,
2534 const unsigned long number_elements,const double *dash_array)
2537 <p>A description of each parameter follows:</p></ol>
2540 <ol><p>the drawing wand.</p></ol>
2542 <h5>number_elements</h5>
2543 <ol><p>number of elements in dash array</p></ol>
2546 <ol><p>dash array values</p></ol>
2549 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2550 _8c.html" target="source" name="DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a></h2>
2551 <div class="doc-section">
2553 <p>DrawSetStrokeDashOffset() specifies the offset into the dash pattern to start the dash.</p></ol>
2555 <p>The format of the DrawSetStrokeDashOffset method is:</p>
2558 void DrawSetStrokeDashOffset(DrawingWand *wand,
2559 const double dash_offset)
2562 <p>A description of each parameter follows:</p></ol>
2565 <ol><p>the drawing wand.</p></ol>
2567 <h5>dash_offset</h5>
2568 <ol><p>dash offset</p></ol>
2571 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2572 _8c.html" target="source" name="DrawSetStrokeLineCap">DrawSetStrokeLineCap</a></h2>
2573 <div class="doc-section">
2575 <p>DrawSetStrokeLineCap() specifies the shape to be used at the end of open subpaths when they are stroked. Values of LineCap are UndefinedCap, ButtCap, RoundCap, and SquareCap.</p></ol>
2577 <p>The format of the DrawSetStrokeLineCap method is:</p>
2580 void DrawSetStrokeLineCap(DrawingWand *wand,
2581 const LineCap linecap)
2584 <p>A description of each parameter follows:</p></ol>
2587 <ol><p>the drawing wand.</p></ol>
2590 <ol><p>linecap style</p></ol>
2593 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2594 _8c.html" target="source" name="DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a></h2>
2595 <div class="doc-section">
2597 <p>DrawSetStrokeLineJoin() specifies the shape to be used at the corners of paths (or other vector shapes) when they are stroked. Values of LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.</p></ol>
2599 <p>The format of the DrawSetStrokeLineJoin method is:</p>
2602 void DrawSetStrokeLineJoin(DrawingWand *wand,
2603 const LineJoin linejoin)
2606 <p>A description of each parameter follows:</p></ol>
2609 <ol><p>the drawing wand.</p></ol>
2612 <ol><p>line join style</p></ol>
2615 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2616 _8c.html" target="source" name="DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a></h2>
2617 <div class="doc-section">
2619 <p>DrawSetStrokeMiterLimit() specifies the miter limit. When two line segments meet at a sharp angle and miter joins have been specified for 'lineJoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The miterLimit' imposes a limit on the ratio of the miter length to the 'lineWidth'.</p></ol>
2621 <p>The format of the DrawSetStrokeMiterLimit method is:</p>
2624 void DrawSetStrokeMiterLimit(DrawingWand *wand,
2625 const unsigned long miterlimit)
2628 <p>A description of each parameter follows:</p></ol>
2631 <ol><p>the drawing wand.</p></ol>
2634 <ol><p>miter limit</p></ol>
2637 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2638 _8c.html" target="source" name="DrawSetStrokeOpacity">DrawSetStrokeOpacity</a></h2>
2639 <div class="doc-section">
2641 <p>DrawSetStrokeOpacity() specifies the opacity of stroked object outlines.</p></ol>
2643 <p>The format of the DrawSetStrokeOpacity method is:</p>
2646 void DrawSetStrokeOpacity(DrawingWand *wand,
2647 const double stroke_opacity)
2650 <p>A description of each parameter follows:</p></ol>
2653 <ol><p>the drawing wand.</p></ol>
2655 <h5>stroke_opacity</h5>
2656 <ol><p>stroke opacity. The value 1.0 is opaque.</p></ol>
2659 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2660 _8c.html" target="source" name="DrawSetStrokeWidth">DrawSetStrokeWidth</a></h2>
2661 <div class="doc-section">
2663 <p>DrawSetStrokeWidth() sets the width of the stroke used to draw object outlines.</p></ol>
2665 <p>The format of the DrawSetStrokeWidth method is:</p>
2668 void DrawSetStrokeWidth(DrawingWand *wand,
2669 const double stroke_width)
2672 <p>A description of each parameter follows:</p></ol>
2675 <ol><p>the drawing wand.</p></ol>
2677 <h5>stroke_width</h5>
2678 <ol><p>stroke width</p></ol>
2681 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2682 _8c.html" target="source" name="DrawSetTextAlignment">DrawSetTextAlignment</a></h2>
2683 <div class="doc-section">
2685 <p>DrawSetTextAlignment() specifies a text alignment to be applied when annotating with text.</p></ol>
2687 <p>The format of the DrawSetTextAlignment method is:</p>
2690 void DrawSetTextAlignment(DrawingWand *wand,const AlignType alignment)
2693 <p>A description of each parameter follows:</p></ol>
2696 <ol><p>the drawing wand.</p></ol>
2699 <ol><p>text alignment. One of UndefinedAlign, LeftAlign, CenterAlign, or RightAlign.</p></ol>
2702 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2703 _8c.html" target="source" name="DrawSetTextAntialias">DrawSetTextAntialias</a></h2>
2704 <div class="doc-section">
2706 <p>DrawSetTextAntialias() controls whether text is antialiased. Text is antialiased by default.</p></ol>
2708 <p>The format of the DrawSetTextAntialias method is:</p>
2711 void DrawSetTextAntialias(DrawingWand *wand,
2712 const MagickBooleanType text_antialias)
2715 <p>A description of each parameter follows:</p></ol>
2718 <ol><p>the drawing wand.</p></ol>
2720 <h5>text_antialias</h5>
2721 <ol><p>antialias boolean. Set to false (0) to disable antialiasing.</p></ol>
2724 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2725 _8c.html" target="source" name="DrawSetTextDecoration">DrawSetTextDecoration</a></h2>
2726 <div class="doc-section">
2728 <p>DrawSetTextDecoration() specifies a decoration to be applied when annotating with text.</p></ol>
2730 <p>The format of the DrawSetTextDecoration method is:</p>
2733 void DrawSetTextDecoration(DrawingWand *wand,
2734 const DecorationType decoration)
2737 <p>A description of each parameter follows:</p></ol>
2740 <ol><p>the drawing wand.</p></ol>
2743 <ol><p>text decoration. One of NoDecoration, UnderlineDecoration, OverlineDecoration, or LineThroughDecoration</p></ol>
2746 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2747 _8c.html" target="source" name="DrawSetTextEncoding">DrawSetTextEncoding</a></h2>
2748 <div class="doc-section">
2750 <p>DrawSetTextEncoding() specifies the code set to use for text annotations. The only character encoding which may be specified at this time is "UTF-8" for representing Unicode as a sequence of bytes. Specify an empty string to set text encoding to the system's default. Successful text annotation using Unicode may require fonts designed to support Unicode.</p></ol>
2752 <p>The format of the DrawSetTextEncoding method is:</p>
2755 void DrawSetTextEncoding(DrawingWand *wand,const char *encoding)
2758 <p>A description of each parameter follows:</p></ol>
2761 <ol><p>the drawing wand.</p></ol>
2764 <ol><p>character string specifying text encoding</p></ol>
2767 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2768 _8c.html" target="source" name="DrawSetTextKerning">DrawSetTextKerning</a></h2>
2769 <div class="doc-section">
2771 <p>DrawSetTextKerning() sets the spacing between characters in text.</p></ol>
2773 <p>The format of the DrawSetTextKerning method is:</p>
2776 void DrawSetTextKerning(DrawingWand *wand,const double kerning)
2779 <p>A description of each parameter follows:</p></ol>
2782 <ol><p>the drawing wand.</p></ol>
2785 <ol><p>text kerning</p></ol>
2788 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2789 _8c.html" target="source" name="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
2790 <div class="doc-section">
2792 <p>DrawSetTextInterwordSpacing() sets the spacing between line in text.</p></ol>
2794 <p>The format of the DrawSetInterwordSpacing method is:</p>
2797 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2798 const double interline_spacing)
2801 <p>A description of each parameter follows:</p></ol>
2804 <ol><p>the drawing wand.</p></ol>
2806 <h5>interline_spacing</h5>
2807 <ol><p>text line spacing</p></ol>
2810 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2811 _8c.html" target="source" name="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
2812 <div class="doc-section">
2814 <p>DrawSetTextInterwordSpacing() sets the spacing between words in text.</p></ol>
2816 <p>The format of the DrawSetInterwordSpacing method is:</p>
2819 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2820 const double interword_spacing)
2823 <p>A description of each parameter follows:</p></ol>
2826 <ol><p>the drawing wand.</p></ol>
2828 <h5>interword_spacing</h5>
2829 <ol><p>text word spacing</p></ol>
2832 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2833 _8c.html" target="source" name="DrawSetTextUnderColor">DrawSetTextUnderColor</a></h2>
2834 <div class="doc-section">
2836 <p>DrawSetTextUnderColor() specifies the color of a background rectangle to place under text annotations.</p></ol>
2838 <p>The format of the DrawSetTextUnderColor method is:</p>
2841 void DrawSetTextUnderColor(DrawingWand *wand,
2842 const PixelWand *under_wand)
2845 <p>A description of each parameter follows:</p></ol>
2848 <ol><p>the drawing wand.</p></ol>
2851 <ol><p>text under wand.</p></ol>
2854 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2855 _8c.html" target="source" name="DrawSetVectorGraphics">DrawSetVectorGraphics</a></h2>
2856 <div class="doc-section">
2858 <p>DrawSetVectorGraphics() sets the vector graphics associated with the specified wand. Use this method with DrawGetVectorGraphics() as a method to persist the vector graphics state.</p></ol>
2860 <p>The format of the DrawSetVectorGraphics method is:</p>
2863 MagickBooleanType DrawSetVectorGraphics(DrawingWand *wand,
2867 <p>A description of each parameter follows:</p></ol>
2870 <ol><p>the drawing wand.</p></ol>
2873 <ol><p>the drawing wand XML.</p></ol>
2876 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2877 _8c.html" target="source" name="DrawSkewX">DrawSkewX</a></h2>
2878 <div class="doc-section">
2880 <p>DrawSkewX() skews the current coordinate system in the horizontal direction.</p></ol>
2882 <p>The format of the DrawSkewX method is:</p>
2885 void DrawSkewX(DrawingWand *wand,const double degrees)
2888 <p>A description of each parameter follows:</p></ol>
2891 <ol><p>the drawing wand.</p></ol>
2894 <ol><p>number of degrees to skew the coordinates</p></ol>
2897 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2898 _8c.html" target="source" name="DrawSkewY">DrawSkewY</a></h2>
2899 <div class="doc-section">
2901 <p>DrawSkewY() skews the current coordinate system in the vertical direction.</p></ol>
2903 <p>The format of the DrawSkewY method is:</p>
2906 void DrawSkewY(DrawingWand *wand,const double degrees)
2909 <p>A description of each parameter follows:</p></ol>
2912 <ol><p>the drawing wand.</p></ol>
2915 <ol><p>number of degrees to skew the coordinates</p></ol>
2918 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2919 _8c.html" target="source" name="DrawTranslate">DrawTranslate</a></h2>
2920 <div class="doc-section">
2922 <p>DrawTranslate() applies a translation to the current coordinate system which moves the coordinate system origin to the specified coordinate.</p></ol>
2924 <p>The format of the DrawTranslate method is:</p>
2927 void DrawTranslate(DrawingWand *wand,const double x,
2931 <p>A description of each parameter follows:</p></ol>
2934 <ol><p>the drawing wand.</p></ol>
2937 <ol><p>new x ordinate for coordinate system origin</p></ol>
2940 <ol><p>new y ordinate for coordinate system origin</p></ol>
2943 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2944 _8c.html" target="source" name="DrawSetViewbox">DrawSetViewbox</a></h2>
2945 <div class="doc-section">
2947 <p>DrawSetViewbox() sets the overall canvas size to be recorded with the drawing vector data. Usually this will be specified using the same size as the canvas image. When the vector data is saved to SVG or MVG formats, the viewbox is use to specify the size of the canvas image that a viewer will render the vector data on.</p></ol>
2949 <p>The format of the DrawSetViewbox method is:</p>
2952 void DrawSetViewbox(DrawingWand *wand,unsigned long x1,
2953 unsigned long y1,unsigned long x2,unsigned long y2)
2956 <p>A description of each parameter follows:</p></ol>
2959 <ol><p>the drawing wand.</p></ol>
2962 <ol><p>left x ordinate</p></ol>
2965 <ol><p>top y ordinate</p></ol>
2968 <ol><p>right x ordinate</p></ol>
2971 <ol><p>bottom y ordinate</p></ol>
2974 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2975 _8c.html" target="source" name="IsDrawingWand">IsDrawingWand</a></h2>
2976 <div class="doc-section">
2978 <p>IsDrawingWand() returns MagickTrue if the wand is verified as a drawing wand.</p></ol>
2980 <p>The format of the IsDrawingWand method is:</p>
2983 MagickBooleanType IsDrawingWand(const DrawingWand *wand)
2986 <p>A description of each parameter follows:</p></ol>
2989 <ol><p>the drawing wand.</p></ol>
2992 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
2993 _8c.html" target="source" name="NewDrawingWand">NewDrawingWand</a></h2>
2994 <div class="doc-section">
2996 <p>NewDrawingWand() returns a drawing wand required for all other methods in the API.</p></ol>
2998 <p>The format of the NewDrawingWand method is:</p>
3001 DrawingWand NewDrawingWand(void)
3005 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3006 _8c.html" target="source" name="PeekDrawingWand">PeekDrawingWand</a></h2>
3007 <div class="doc-section">
3009 <p>PeekDrawingWand() returns the current drawing wand.</p></ol>
3011 <p>The format of the PeekDrawingWand method is:</p>
3014 DrawInfo *PeekDrawingWand(const DrawingWand *wand)
3017 <p>A description of each parameter follows:</p></ol>
3020 <ol><p>the drawing wand.</p></ol>
3023 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3024 _8c.html" target="source" name="PopDrawingWand">PopDrawingWand</a></h2>
3025 <div class="doc-section">
3027 <p>PopDrawingWand() destroys the current drawing wand and returns to the previously pushed drawing wand. Multiple drawing wands may exist. It is an error to attempt to pop more drawing wands than have been pushed, and it is proper form to pop all drawing wands which have been pushed.</p></ol>
3029 <p>The format of the PopDrawingWand method is:</p>
3032 MagickBooleanType PopDrawingWand(DrawingWand *wand)
3035 <p>A description of each parameter follows:</p></ol>
3038 <ol><p>the drawing wand.</p></ol>
3041 <h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand
3042 _8c.html" target="source" name="PushDrawingWand">PushDrawingWand</a></h2>
3043 <div class="doc-section">
3045 <p>PushDrawingWand() clones the current drawing wand to create a new drawing wand. The original drawing wand(s) may be returned to by invoking PopDrawingWand(). The drawing wands are stored on a drawing wand stack. For every Pop there must have already been an equivalent Push.</p></ol>
3047 <p>The format of the PushDrawingWand method is:</p>
3050 MagickBooleanType PushDrawingWand(DrawingWand *wand)
3053 <p>A description of each parameter follows:</p></ol>
3056 <ol><p>the drawing wand.</p></ol>
3062 <div id="linkbar">
\r
3063 <!-- <span id="linkbar-west"> </span> -->
\r
3064 <span id="linkbar-center">
\r
3065 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
3066 <a href="../../www/mailing-list.html">Mailing Lists</a> •
\r
3067 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
3069 <span id="linkbar-east"> </span>
\r
3071 <div class="footer">
\r
3072 <span id="footer-west">© 1999-2009 ImageMagick Studio LLC</span>
\r
3073 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
3075 <div style="clear: both; margin: 0; width: 100%; "></div>
\r