1 2 3 4 5<!DOCTYPE html> 6<html lang="en"> 7<head> 8 <meta charset="utf-8" /> 9 <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" /> 10 <title>MagickWand, C API: Drawing Wand Methods @ ImageMagick</title> 11 <meta name="application-name" content="ImageMagick" /> 12 <meta name="description" content="Use ImageMagick® to create, edit, compose, or convert bitmap images. You can resize your image, crop it, change its shades and colors, add captions, among other operations." /> 13 <meta name="application-url" content="https://imagemagick.org" /> 14 <meta name="generator" content="PHP" /> 15 <meta name="keywords" content="magickwc, api:, drawing, wmethods, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert" /> 16 <meta name="rating" content="GENERAL" /> 17 <meta name="robots" content="INDEX, FOLLOW" /> 18 <meta name="generator" content="ImageMagick Studio LLC" /> 19 <meta name="author" content="ImageMagick Studio LLC" /> 20 <meta name="revisit-after" content="2 DAYS" /> 21 <meta name="resource-type" content="document" /> 22 <meta name="copyright" content="Copyright (c) 1999-2017 ImageMagick Studio LLC" /> 23 <meta name="distribution" content="Global" /> 24 <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" /> 25 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" /> 26 <link href="drawing-wand.html" rel="canonical" /> 27 <link href="../../images/wand.png" rel="icon" /> 28 <link href="../../images/wand.ico" rel="shortcut icon" /> 29 <link href="../assets/magick.css" rel="stylesheet" /> 30</head> 31<body> 32 <header> 33 <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark"> 34 <a class="navbar-brand" href="../../"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../../images/wand.ico"/></a> 35 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsMagick" aria-controls="navbarsMagick" aria-expanded="false" aria-label="Toggle navigation"> 36 <span class="navbar-toggler-icon"></span> 37 </button> 38 39 <div class="navbar-collapse collapse" id="navbarsMagick" style=""> 40 <ul class="navbar-nav mr-auto"> 41 <li class="nav-item "> 42 <a class="nav-link" href="quantize.html">Home <span class="sr-only">(current)</span></a> 43 </li> 44 <li class="nav-item "> 45 <a class="nav-link" href="../../www/download.html">Download</a> 46 </li> 47 <li class="nav-item "> 48 <a class="nav-link" href="../../www/command-line-tools.html">Tools</a> 49 </li> 50 <li class="nav-item "> 51 <a class="nav-link" href="../../www/command-line-processing.html">Command-line</a> 52 </li> 53 <li class="nav-item "> 54 <a class="nav-link" href="../../www/resources.html">Resources</a> 55 </li> 56 <li class="nav-item "> 57 <a class="nav-link" href="../../www/develop.html">Develop</a> 58 </li> 59 <li class="nav-item"> 60 <a class="nav-link" target="_blank" href="https://imagemagick.org/discourse-server/">Community</a> 61 </li> 62 </ul> 63 <form class="form-inline my-2 my-lg-0" action="https://imagemagick.org/script/search.php"> 64 <input class="form-control mr-sm-2" type="text" name="q" placeholder="Search" aria-label="Search"> 65 <button class="btn btn-outline-success my-2 my-sm-0" type="submit" name="sa">Search</button> 66 </form> 67 </div> 68 </nav> 69 <div class="container"> 70 <script async="async" src="https://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" 71 style="display:block" 72 data-ad-client="ca-pub-3129977114552745" 73 data-ad-slot="6345125851" 74 data-ad-format="auto"></ins> 75 <script> 76 (adsbygoogle = window.adsbygoogle || []).push({}); 77 </script> 78 79 </div> 80 </header> 81 <main class="container"> 82 <div class="magick-template"> 83<div class="magick-header"> 84<p class="text-center"><a href="drawing-wand.html#ClearDrawingWand">ClearDrawingWand</a> • <a href="drawing-wand.html#CloneDrawingWand">CloneDrawingWand</a> • <a href="drawing-wand.html#DestroyDrawingWand">DestroyDrawingWand</a> • <a href="drawing-wand.html#DrawAffine">DrawAffine</a> • <a href="drawing-wand.html#DrawAlpha">DrawAlpha</a> • <a href="drawing-wand.html#DrawAnnotation">DrawAnnotation</a> • <a href="drawing-wand.html#DrawArc">DrawArc</a> • <a href="drawing-wand.html#DrawBezier">DrawBezier</a> • <a href="drawing-wand.html#DrawCircle">DrawCircle</a> • <a href="drawing-wand.html#DrawClearException">DrawClearException</a> • <a href="drawing-wand.html#DrawCloneExceptionInfo">DrawCloneExceptionInfo</a> • <a href="drawing-wand.html#DrawColor">DrawColor</a> • <a href="drawing-wand.html#DrawComposite">DrawComposite</a> • <a href="drawing-wand.html#DrawComment">DrawComment</a> • <a href="drawing-wand.html#DrawEllipse">DrawEllipse</a> • <a href="drawing-wand.html#DrawGetBorderColor">DrawGetBorderColor</a> • <a href="drawing-wand.html#DrawGetClipPath">DrawGetClipPath</a> • <a href="drawing-wand.html#DrawGetClipRule">DrawGetClipRule</a> • <a href="drawing-wand.html#DrawGetClipUnits">DrawGetClipUnits</a> • <a href="drawing-wand.html#DrawGetDensity">DrawGetDensity</a> • <a href="drawing-wand.html#DrawGetException">DrawGetException</a> • <a href="drawing-wand.html#DrawGetExceptionType">DrawGetExceptionType</a> • <a href="drawing-wand.html#DrawGetFillColor">DrawGetFillColor</a> • <a href="drawing-wand.html#DrawGetFillOpacity">DrawGetFillOpacity</a> • <a href="drawing-wand.html#DrawGetFillRule">DrawGetFillRule</a> • <a href="drawing-wand.html#DrawGetFont">DrawGetFont</a> • <a href="drawing-wand.html#DrawGetFontFamily">DrawGetFontFamily</a> • <a href="drawing-wand.html#DrawGetFontResolution">DrawGetFontResolution</a> • <a href="drawing-wand.html#DrawGetFontSize">DrawGetFontSize</a> • <a href="drawing-wand.html#DrawGetFontStretch">DrawGetFontStretch</a> • <a href="drawing-wand.html#DrawGetFontStyle">DrawGetFontStyle</a> • <a href="drawing-wand.html#DrawGetFontWeight">DrawGetFontWeight</a> • <a href="drawing-wand.html#DrawGetGravity">DrawGetGravity</a> • <a href="drawing-wand.html#DrawGetOpacity">DrawGetOpacity</a> • <a href="drawing-wand.html#DrawGetStrokeAntialias">DrawGetStrokeAntialias</a> • <a href="drawing-wand.html#DrawGetStrokeColor">DrawGetStrokeColor</a> • <a href="drawing-wand.html#DrawGetStrokeDashArray">DrawGetStrokeDashArray</a> • <a href="drawing-wand.html#DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a> • <a href="drawing-wand.html#DrawGetStrokeLineCap">DrawGetStrokeLineCap</a> • <a href="drawing-wand.html#DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a> • <a href="drawing-wand.html#DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a> • <a href="drawing-wand.html#DrawGetStrokeOpacity">DrawGetStrokeOpacity</a> • <a href="drawing-wand.html#DrawGetStrokeWidth">DrawGetStrokeWidth</a> • <a href="drawing-wand.html#DrawGetTextAlignment">DrawGetTextAlignment</a> • <a href="drawing-wand.html#DrawGetTextAntialias">DrawGetTextAntialias</a> • <a href="drawing-wand.html#DrawGetTextDecoration">DrawGetTextDecoration</a> • <a href="drawing-wand.html#DrawGetTextDirection">DrawGetTextDirection</a> • <a href="drawing-wand.html#DrawGetTextEncoding">DrawGetTextEncoding</a> • <a href="drawing-wand.html#DrawGetTextKerning">DrawGetTextKerning</a> • <a href="drawing-wand.html#DrawGetTextInterlineSpacing">DrawGetTextInterlineSpacing</a> • <a href="drawing-wand.html#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> • <a href="drawing-wand.html#DrawGetTypeMetrics">DrawGetTypeMetrics</a> • <a href="drawing-wand.html#DrawGetVectorGraphics">DrawGetVectorGraphics</a> • <a href="drawing-wand.html#DrawGetTextUnderColor">DrawGetTextUnderColor</a> • <a href="drawing-wand.html#DrawLine">DrawLine</a> • <a href="drawing-wand.html#DrawPathClose">DrawPathClose</a> • <a href="drawing-wand.html#DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a> • <a href="drawing-wand.html#DrawPathCurveToRelative">DrawPathCurveToRelative</a> • <a href="drawing-wand.html#DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a> • <a href="drawing-wand.html#DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a> • <a href="drawing-wand.html#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> • <a href="drawing-wand.html#DrawPathCurveToQuadraticBezierSmoothRelative">DrawPathCurveToQuadraticBezierSmoothRelative</a> • <a href="drawing-wand.html#DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a> • <a href="drawing-wand.html#DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a> • <a href="drawing-wand.html#DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a> • <a href="drawing-wand.html#DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a> • <a href="drawing-wand.html#DrawPathFinish">DrawPathFinish</a> • <a href="drawing-wand.html#DrawPathLineToAbsolute">DrawPathLineToAbsolute</a> • <a href="drawing-wand.html#DrawPathLineToRelative">DrawPathLineToRelative</a> • <a href="drawing-wand.html#DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a> • <a href="drawing-wand.html#DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a> • <a href="drawing-wand.html#DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a> • <a href="drawing-wand.html#DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a> • <a href="drawing-wand.html#DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a> • <a href="drawing-wand.html#DrawPathMoveToRelative">DrawPathMoveToRelative</a> • <a href="drawing-wand.html#DrawPathStart">DrawPathStart</a> • <a href="drawing-wand.html#DrawPoint">DrawPoint</a> • <a href="drawing-wand.html#DrawPolygon">DrawPolygon</a> • <a href="drawing-wand.html#DrawPolyline">DrawPolyline</a> • <a href="drawing-wand.html#DrawPopClipPath">DrawPopClipPath</a> • <a href="drawing-wand.html#DrawPopDefs">DrawPopDefs</a> • <a href="drawing-wand.html#DrawPopPattern">DrawPopPattern</a> • <a href="drawing-wand.html#DrawPushClipPath">DrawPushClipPath</a> • <a href="drawing-wand.html#DrawPushDefs">DrawPushDefs</a> • <a href="drawing-wand.html#DrawPushPattern">DrawPushPattern</a> • <a href="drawing-wand.html#DrawRectangle">DrawRectangle</a> • <a href="drawing-wand.html#DrawResetVectorGraphics">DrawResetVectorGraphics</a> • <a href="drawing-wand.html#DrawRotate">DrawRotate</a> • <a href="drawing-wand.html#DrawRoundRectangle">DrawRoundRectangle</a> • <a href="drawing-wand.html#DrawScale">DrawScale</a> • <a href="drawing-wand.html#DrawSetBorderColor">DrawSetBorderColor</a> • <a href="drawing-wand.html#DrawSetClipPath">DrawSetClipPath</a> • <a href="drawing-wand.html#DrawSetClipRule">DrawSetClipRule</a> • <a href="drawing-wand.html#DrawSetClipUnits">DrawSetClipUnits</a> • <a href="drawing-wand.html#DrawSetDensity">DrawSetDensity</a> • <a href="drawing-wand.html#DrawSetFillColor">DrawSetFillColor</a> • <a href="drawing-wand.html#DrawSetFillOpacity">DrawSetFillOpacity</a> • <a href="drawing-wand.html#DrawSetFontResolution">DrawSetFontResolution</a> • <a href="drawing-wand.html#DrawSetOpacity">DrawSetOpacity</a> • <a href="drawing-wand.html#DrawSetFillPatternURL">DrawSetFillPatternURL</a> • <a href="drawing-wand.html#DrawSetFillRule">DrawSetFillRule</a> • <a href="drawing-wand.html#DrawSetFont">DrawSetFont</a> • <a href="drawing-wand.html#DrawSetFontFamily">DrawSetFontFamily</a> • <a href="drawing-wand.html#DrawSetFontSize">DrawSetFontSize</a> • <a href="drawing-wand.html#DrawSetFontStretch">DrawSetFontStretch</a> • <a href="drawing-wand.html#DrawSetFontStyle">DrawSetFontStyle</a> • <a href="drawing-wand.html#DrawSetFontWeight">DrawSetFontWeight</a> • <a href="drawing-wand.html#DrawSetGravity">DrawSetGravity</a> • <a href="drawing-wand.html#DrawSetStrokeColor">DrawSetStrokeColor</a> • <a href="drawing-wand.html#DrawSetStrokePatternURL">DrawSetStrokePatternURL</a> • <a href="drawing-wand.html#DrawSetStrokeAntialias">DrawSetStrokeAntialias</a> • <a href="drawing-wand.html#DrawSetStrokeDashArray">DrawSetStrokeDashArray</a> • <a href="drawing-wand.html#DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a> • <a href="drawing-wand.html#DrawSetStrokeLineCap">DrawSetStrokeLineCap</a> • <a href="drawing-wand.html#DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a> • <a href="drawing-wand.html#DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a> • <a href="drawing-wand.html#DrawSetStrokeOpacity">DrawSetStrokeOpacity</a> • <a href="drawing-wand.html#DrawSetStrokeWidth">DrawSetStrokeWidth</a> • <a href="drawing-wand.html#DrawSetTextAlignment">DrawSetTextAlignment</a> • <a href="drawing-wand.html#DrawSetTextAntialias">DrawSetTextAntialias</a> • <a href="drawing-wand.html#DrawSetTextDecoration">DrawSetTextDecoration</a> • <a href="drawing-wand.html#DrawSetTextDirection">DrawSetTextDirection</a> • <a href="drawing-wand.html#DrawSetTextEncoding">DrawSetTextEncoding</a> • <a href="drawing-wand.html#DrawSetTextKerning">DrawSetTextKerning</a> • <a href="drawing-wand.html#DrawSetTextInterlineSpacing">DrawSetTextInterlineSpacing</a> • <a href="drawing-wand.html#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> • <a href="drawing-wand.html#DrawSetTextUnderColor">DrawSetTextUnderColor</a> • <a href="drawing-wand.html#DrawSetVectorGraphics">DrawSetVectorGraphics</a> • <a href="drawing-wand.html#DrawSkewX">DrawSkewX</a> • <a href="drawing-wand.html#DrawSkewY">DrawSkewY</a> • <a href="drawing-wand.html#DrawTranslate">DrawTranslate</a> • <a href="drawing-wand.html#DrawSetViewbox">DrawSetViewbox</a> • <a href="drawing-wand.html#IsDrawingWand">IsDrawingWand</a> • <a href="drawing-wand.html#NewDrawingWand">NewDrawingWand</a> • <a href="drawing-wand.html#PeekDrawingWand">PeekDrawingWand</a> • <a href="drawing-wand.html#PopDrawingWand">PopDrawingWand</a> • <a href="drawing-wand.html#PushDrawingWand">PushDrawingWand</a></p> 85 86<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="ClearDrawingWand">ClearDrawingWand</a></h2> 87 88<p>ClearDrawingWand() clears resources associated with the drawing wand.</p> 89 90<p>The format of the ClearDrawingWand method is:</p> 91 92<pre class="text"> 93void ClearDrawingWand(DrawingWand *wand) 94</pre> 95 96<p>A description of each parameter follows:</p> 97 98<dd> 99</dd> 100 101<dd> </dd> 102<dl class="dl-horizontal"> 103<dt>wand</dt> 104<dd>the drawing wand to clear. </dd> 105 106<dd> </dd> 107</dl> 108<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="CloneDrawingWand">CloneDrawingWand</a></h2> 109 110<p>CloneDrawingWand() makes an exact copy of the specified wand.</p> 111 112<p>The format of the CloneDrawingWand method is:</p> 113 114<pre class="text"> 115DrawingWand *CloneDrawingWand(const DrawingWand *wand) 116</pre> 117 118<p>A description of each parameter follows:</p> 119 120<dd> 121</dd> 122 123<dd> </dd> 124<dl class="dl-horizontal"> 125<dt>wand</dt> 126<dd>the magick wand. </dd> 127 128<dd> </dd> 129</dl> 130<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DestroyDrawingWand">DestroyDrawingWand</a></h2> 131 132<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> 133 134<p>The format of the DestroyDrawingWand method is:</p> 135 136<pre class="text"> 137DrawingWand *DestroyDrawingWand(DrawingWand *wand) 138</pre> 139 140<p>A description of each parameter follows:</p> 141 142<dd> 143</dd> 144 145<dd> </dd> 146<dl class="dl-horizontal"> 147<dt>wand</dt> 148<dd>the drawing wand to destroy. </dd> 149 150<dd> </dd> 151</dl> 152<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawAffine">DrawAffine</a></h2> 153 154<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> 155 156<p>The format of the DrawAffine method is:</p> 157 158<pre class="text"> 159void DrawAffine(DrawingWand *wand,const AffineMatrix *affine) 160</pre> 161 162<p>A description of each parameter follows:</p> 163 164<dd> 165</dd> 166 167<dd> </dd> 168<dl class="dl-horizontal"> 169<dt>wand</dt> 170<dd>Drawing wand </dd> 171 172<dd> </dd> 173<dt>affine</dt> 174<dd>Affine matrix parameters </dd> 175 176<dd> </dd> 177</dl> 178<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawAlpha">DrawAlpha</a></h2> 179 180<p>DrawAlpha() paints on the image's alpha channel in order to set effected pixels to transparent. The available paint methods are:</p> 181 182<pre class="text"> 183 PointMethod: Select the target pixel 184 ReplaceMethod: Select any pixel that matches the target pixel. 185 FloodfillMethod: Select the target pixel and matching neighbors. 186 FillToBorderMethod: Select the target pixel and neighbors not matching 187border color. 188 ResetMethod: Select all pixels. 189</pre> 190 191<p>The format of the DrawAlpha method is:</p> 192 193<pre class="text"> 194void DrawAlpha(DrawingWand *wand,const double x,const double y, 195 const PaintMethod paint_method) 196</pre> 197 198<p>A description of each parameter follows:</p> 199 200<dd> 201</dd> 202 203<dd> </dd> 204<dl class="dl-horizontal"> 205<dt>wand</dt> 206<dd>the drawing wand. </dd> 207 208<dd> </dd> 209<dt>x</dt> 210<dd>x ordinate </dd> 211 212<dd> </dd> 213<dt>y</dt> 214<dd>y ordinate </dd> 215 216<dd> </dd> 217<dt>paint_method</dt> 218<dd>paint method. </dd> 219 220<dd> </dd> 221</dl> 222<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawAnnotation">DrawAnnotation</a></h2> 223 224<p>DrawAnnotation() draws text on the image.</p> 225 226<p>The format of the DrawAnnotation method is:</p> 227 228<pre class="text"> 229void DrawAnnotation(DrawingWand *wand,const double x, 230 const double y,const unsigned char *text) 231</pre> 232 233<p>A description of each parameter follows:</p> 234 235<dd> 236</dd> 237 238<dd> </dd> 239<dl class="dl-horizontal"> 240<dt>wand</dt> 241<dd>the drawing wand. </dd> 242 243<dd> </dd> 244<dt>x</dt> 245<dd>x ordinate to left of text </dd> 246 247<dd> </dd> 248<dt>y</dt> 249<dd>y ordinate to text baseline </dd> 250 251<dd> </dd> 252<dt>text</dt> 253<dd>text to draw </dd> 254 255<dd> </dd> 256</dl> 257<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawArc">DrawArc</a></h2> 258 259<p>DrawArc() draws an arc falling within a specified bounding rectangle on the image.</p> 260 261<p>The format of the DrawArc method is:</p> 262 263<pre class="text"> 264void DrawArc(DrawingWand *wand,const double sx,const double sy, 265 const double ex,const double ey,const double sd,const double ed) 266</pre> 267 268<p>A description of each parameter follows:</p> 269 270<dd> 271</dd> 272 273<dd> </dd> 274<dl class="dl-horizontal"> 275<dt>wand</dt> 276<dd>the drawing wand. </dd> 277 278<dd> </dd> 279<dt>sx</dt> 280<dd>starting x ordinate of bounding rectangle </dd> 281 282<dd> </dd> 283<dt>sy</dt> 284<dd>starting y ordinate of bounding rectangle </dd> 285 286<dd> </dd> 287<dt>ex</dt> 288<dd>ending x ordinate of bounding rectangle </dd> 289 290<dd> </dd> 291<dt>ey</dt> 292<dd>ending y ordinate of bounding rectangle </dd> 293 294<dd> </dd> 295<dt>sd</dt> 296<dd>starting degrees of rotation </dd> 297 298<dd> </dd> 299<dt>ed</dt> 300<dd>ending degrees of rotation </dd> 301 302<dd> </dd> 303</dl> 304<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawBezier">DrawBezier</a></h2> 305 306<p>DrawBezier() draws a bezier curve through a set of points on the image.</p> 307 308<p>The format of the DrawBezier method is:</p> 309 310<pre class="text"> 311void DrawBezier(DrawingWand *wand, 312 const size_t number_coordinates,const PointInfo *coordinates) 313</pre> 314 315<p>A description of each parameter follows:</p> 316 317<dd> 318</dd> 319 320<dd> </dd> 321<dl class="dl-horizontal"> 322<dt>wand</dt> 323<dd>the drawing wand. </dd> 324 325<dd> </dd> 326<dt>number_coordinates</dt> 327<dd>number of coordinates </dd> 328 329<dd> </dd> 330<dt>coordinates</dt> 331<dd>coordinates </dd> 332 333<dd> </dd> 334</dl> 335<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawCircle">DrawCircle</a></h2> 336 337<p>DrawCircle() draws a circle on the image.</p> 338 339<p>The format of the DrawCircle method is:</p> 340 341<pre class="text"> 342void DrawCircle(DrawingWand *wand,const double ox, 343 const double oy,const double px, const double py) 344</pre> 345 346<p>A description of each parameter follows:</p> 347 348<dd> 349</dd> 350 351<dd> </dd> 352<dl class="dl-horizontal"> 353<dt>wand</dt> 354<dd>the drawing wand. </dd> 355 356<dd> </dd> 357<dt>ox</dt> 358<dd>origin x ordinate </dd> 359 360<dd> </dd> 361<dt>oy</dt> 362<dd>origin y ordinate </dd> 363 364<dd> </dd> 365<dt>px</dt> 366<dd>perimeter x ordinate </dd> 367 368<dd> </dd> 369<dt>py</dt> 370<dd>perimeter y ordinate </dd> 371 372<dd> </dd> 373</dl> 374<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawClearException">DrawClearException</a></h2> 375 376<p>DrawClearException() clear any exceptions associated with the wand.</p> 377 378<p>The format of the DrawClearException method is:</p> 379 380<pre class="text"> 381MagickBooleanType DrawClearException(DrawWand *wand) 382</pre> 383 384<p>A description of each parameter follows:</p> 385 386<dd> 387</dd> 388 389<dd> </dd> 390<dl class="dl-horizontal"> 391<dt>wand</dt> 392<dd>the drawing wand. </dd> 393 394<dd> </dd> 395</dl> 396<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawCloneExceptionInfo">DrawCloneExceptionInfo</a></h2> 397 398<p>DrawCloneExceptionInfo() clones the ExceptionInfo structure within the wand.</p> 399 400<p>The format of the DrawCloneExceptionInfo method is:</p> 401 402<pre class="text"> 403ExceptionInfo *DrawCloneExceptionInfo(DrawWand *wand) 404</pre> 405 406<p>A description of each parameter follows:</p> 407 408<dd> 409</dd> 410 411<dd> </dd> 412<dl class="dl-horizontal"> 413<dt>wand</dt> 414<dd>the drawing wand. </dd> 415 416<dd> </dd> 417</dl> 418<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawColor">DrawColor</a></h2> 419 420<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> 421 422<pre class="text"> 423 PointMethod: Recolors the target pixel 424 ReplaceMethod: Recolor any pixel that matches the target pixel. 425 FloodfillMethod: Recolors target pixels and matching neighbors. 426 ResetMethod: Recolor all pixels. 427</pre> 428 429<p>The format of the DrawColor method is:</p> 430 431<pre class="text"> 432void DrawColor(DrawingWand *wand,const double x,const double y, 433 const PaintMethod paint_method) 434</pre> 435 436<p>A description of each parameter follows:</p> 437 438<dd> 439</dd> 440 441<dd> </dd> 442<dl class="dl-horizontal"> 443<dt>wand</dt> 444<dd>the drawing wand. </dd> 445 446<dd> </dd> 447<dt>x</dt> 448<dd>x ordinate. </dd> 449 450<dd> </dd> 451<dt>y</dt> 452<dd>y ordinate. </dd> 453 454<dd> </dd> 455<dt>paint_method</dt> 456<dd>paint method. </dd> 457 458<dd> </dd> 459</dl> 460<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawComposite">DrawComposite</a></h2> 461 462<p>DrawComposite() composites an image onto the current image, using the specified composition operator, specified position, and at the specified size.</p> 463 464<p>The format of the DrawComposite method is:</p> 465 466<pre class="text"> 467MagickBooleanType DrawComposite(DrawingWand *wand, 468 const CompositeOperator compose,const double x, 469 const double y,const double width,const double height, 470 MagickWand *magick_wand) 471</pre> 472 473<p>A description of each parameter follows:</p> 474 475<dd> 476</dd> 477 478<dd> </dd> 479<dl class="dl-horizontal"> 480<dt>wand</dt> 481<dd>the drawing wand. </dd> 482 483<dd> </dd> 484<dt>compose</dt> 485<dd>composition operator </dd> 486 487<dd> </dd> 488<dt>x</dt> 489<dd>x ordinate of top left corner </dd> 490 491<dd> </dd> 492<dt>y</dt> 493<dd>y ordinate of top left corner </dd> 494 495<dd> </dd> 496<dt>width</dt> 497<dd>Width to resize image to prior to compositing. Specify zero to use existing width. </dd> 498 499<dd> </dd> 500<dt>height</dt> 501<dd>Height to resize image to prior to compositing. Specify zero to use existing height. </dd> 502 503<dd> </dd> 504<dt>magick_wand</dt> 505<dd>Image to composite is obtained from this wand. </dd> 506 507<dd> </dd> 508</dl> 509<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawComment">DrawComment</a></h2> 510 511<p>DrawComment() adds a comment to a vector output stream.</p> 512 513<p>The format of the DrawComment method is:</p> 514 515<pre class="text"> 516void DrawComment(DrawingWand *wand,const char *comment) 517</pre> 518 519<p>A description of each parameter follows:</p> 520 521<dd> 522</dd> 523 524<dd> </dd> 525<dl class="dl-horizontal"> 526<dt>wand</dt> 527<dd>the drawing wand. </dd> 528 529<dd> </dd> 530<dt>comment</dt> 531<dd>comment text </dd> 532 533<dd> </dd> 534</dl> 535<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawEllipse">DrawEllipse</a></h2> 536 537<p>DrawEllipse() draws an ellipse on the image.</p> 538 539<p>The format of the DrawEllipse method is:</p> 540 541<pre class="text"> 542 void DrawEllipse(DrawingWand *wand,const double ox,const double oy, 543 const double rx,const double ry,const double start,const double end) 544</pre> 545 546<p>A description of each parameter follows:</p> 547 548<dd> 549</dd> 550 551<dd> </dd> 552<dl class="dl-horizontal"> 553<dt>wand</dt> 554<dd>the drawing wand. </dd> 555 556<dd> </dd> 557<dt>ox</dt> 558<dd>origin x ordinate </dd> 559 560<dd> </dd> 561<dt>oy</dt> 562<dd>origin y ordinate </dd> 563 564<dd> </dd> 565<dt>rx</dt> 566<dd>radius in x </dd> 567 568<dd> </dd> 569<dt>ry</dt> 570<dd>radius in y </dd> 571 572<dd> </dd> 573<dt>start</dt> 574<dd>starting rotation in degrees </dd> 575 576<dd> </dd> 577<dt>end</dt> 578<dd>ending rotation in degrees </dd> 579 580<dd> </dd> 581</dl> 582<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetBorderColor">DrawGetBorderColor</a></h2> 583 584<p>DrawGetBorderColor() returns the border color used for drawing bordered objects.</p> 585 586<p>The format of the DrawGetBorderColor method is:</p> 587 588<pre class="text"> 589void DrawGetBorderColor(const DrawingWand *wand, 590 PixelWand *border_color) 591</pre> 592 593<p>A description of each parameter follows:</p> 594 595<dd> 596</dd> 597 598<dd> </dd> 599<dl class="dl-horizontal"> 600<dt>wand</dt> 601<dd>the drawing wand. </dd> 602 603<dd> </dd> 604<dt>border_color</dt> 605<dd>Return the border color. </dd> 606 607<dd> </dd> 608</dl> 609<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetClipPath">DrawGetClipPath</a></h2> 610 611<p>DrawGetClipPath() obtains the current clipping path ID. The value returned must be deallocated by the user when it is no longer needed.</p> 612 613<p>The format of the DrawGetClipPath method is:</p> 614 615<pre class="text"> 616char *DrawGetClipPath(const DrawingWand *wand) 617</pre> 618 619<p>A description of each parameter follows:</p> 620 621<dd> 622</dd> 623 624<dd> </dd> 625<dl class="dl-horizontal"> 626<dt>wand</dt> 627<dd>the drawing wand. </dd> 628 629<dd> </dd> 630</dl> 631<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetClipRule">DrawGetClipRule</a></h2> 632 633<p>DrawGetClipRule() returns the current polygon fill rule to be used by the clipping path.</p> 634 635<p>The format of the DrawGetClipRule method is:</p> 636 637<pre class="text"> 638 FillRule DrawGetClipRule(const DrawingWand *wand) 639</pre> 640 641<p>A description of each parameter follows:</p> 642 643<dd> 644</dd> 645 646<dd> </dd> 647<dl class="dl-horizontal"> 648<dt>wand</dt> 649<dd>the drawing wand. </dd> 650 651<dd> </dd> 652</dl> 653<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetClipUnits">DrawGetClipUnits</a></h2> 654 655<p>DrawGetClipUnits() returns the interpretation of clip path units.</p> 656 657<p>The format of the DrawGetClipUnits method is:</p> 658 659<pre class="text"> 660ClipPathUnits DrawGetClipUnits(const DrawingWand *wand) 661</pre> 662 663<p>A description of each parameter follows:</p> 664 665<dd> 666</dd> 667 668<dd> </dd> 669<dl class="dl-horizontal"> 670<dt>wand</dt> 671<dd>the drawing wand. </dd> 672 673<dd> </dd> 674</dl> 675<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetDensity">DrawGetDensity</a></h2> 676 677<p>DrawGetDensity() obtains the vertical and horizontal resolution. The value returned must be deallocated by the user when it is no longer needed.</p> 678 679<p>The format of the DrawGetDensity method is:</p> 680 681<pre class="text"> 682char *DrawGetDensity(const DrawingWand *wand) 683</pre> 684 685<p>A description of each parameter follows:</p> 686 687<dd> 688</dd> 689 690<dd> </dd> 691<dl class="dl-horizontal"> 692<dt>wand</dt> 693<dd>the drawing wand. </dd> 694 695<dd> </dd> 696</dl> 697<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetException">DrawGetException</a></h2> 698 699<p>DrawGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p> 700 701<p>The format of the DrawGetException method is:</p> 702 703<pre class="text"> 704char *DrawGetException(const DrawWand *wand, 705 ExceptionType *severity) 706</pre> 707 708<p>A description of each parameter follows:</p> 709 710<dd> 711</dd> 712 713<dd> </dd> 714<dl class="dl-horizontal"> 715<dt>wand</dt> 716<dd>the drawing wand. </dd> 717 718<dd> </dd> 719<dt>severity</dt> 720<dd>the severity of the error is returned here. </dd> 721 722<dd> </dd> 723</dl> 724<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetExceptionType">DrawGetExceptionType</a></h2> 725 726<p>DrawGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p> 727 728<p>The format of the DrawGetExceptionType method is:</p> 729 730<pre class="text"> 731ExceptionType DrawGetExceptionType(const DrawWand *wand) 732</pre> 733 734<p>A description of each parameter follows:</p> 735 736<dd> 737</dd> 738 739<dd> </dd> 740<dl class="dl-horizontal"> 741<dt>wand</dt> 742<dd>the magick wand. </dd> 743 744<dd> </dd> 745</dl> 746<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetFillColor">DrawGetFillColor</a></h2> 747 748<p>DrawGetFillColor() returns the fill color used for drawing filled objects.</p> 749 750<p>The format of the DrawGetFillColor method is:</p> 751 752<pre class="text"> 753void DrawGetFillColor(const DrawingWand *wand, 754 PixelWand *fill_color) 755</pre> 756 757<p>A description of each parameter follows:</p> 758 759<dd> 760</dd> 761 762<dd> </dd> 763<dl class="dl-horizontal"> 764<dt>wand</dt> 765<dd>the drawing wand. </dd> 766 767<dd> </dd> 768<dt>fill_color</dt> 769<dd>Return the fill color. </dd> 770 771<dd> </dd> 772</dl> 773<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetFillOpacity">DrawGetFillOpacity</a></h2> 774 775<p>DrawGetFillOpacity() returns the alpha used when drawing using the fill color or fill texture. Fully opaque is 1.0.</p> 776 777<p>The format of the DrawGetFillOpacity method is:</p> 778 779<pre class="text"> 780double DrawGetFillOpacity(const DrawingWand *wand) 781</pre> 782 783<p>A description of each parameter follows:</p> 784 785<dd> 786</dd> 787 788<dd> </dd> 789<dl class="dl-horizontal"> 790<dt>wand</dt> 791<dd>the drawing wand. </dd> 792 793<dd> </dd> 794</dl> 795<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetFillRule">DrawGetFillRule</a></h2> 796 797<p>DrawGetFillRule() returns the fill rule used while drawing polygons.</p> 798 799<p>The format of the DrawGetFillRule method is:</p> 800 801<pre class="text"> 802FillRule DrawGetFillRule(const DrawingWand *wand) 803</pre> 804 805<p>A description of each parameter follows:</p> 806 807<dd> 808</dd> 809 810<dd> </dd> 811<dl class="dl-horizontal"> 812<dt>wand</dt> 813<dd>the drawing wand. </dd> 814 815<dd> </dd> 816</dl> 817<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetFont">DrawGetFont</a></h2> 818 819<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> 820 821<p>The format of the DrawGetFont method is:</p> 822 823<pre class="text"> 824char *DrawGetFont(const DrawingWand *wand) 825</pre> 826 827<p>A description of each parameter follows:</p> 828 829<dd> 830</dd> 831 832<dd> </dd> 833<dl class="dl-horizontal"> 834<dt>wand</dt> 835<dd>the drawing wand. </dd> 836 837<dd> </dd> 838</dl> 839<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetFontFamily">DrawGetFontFamily</a></h2> 840 841<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> 842 843<p>The format of the DrawGetFontFamily method is:</p> 844 845<pre class="text"> 846char *DrawGetFontFamily(const DrawingWand *wand) 847</pre> 848 849<p>A description of each parameter follows:</p> 850 851<dd> 852</dd> 853 854<dd> </dd> 855<dl class="dl-horizontal"> 856<dt>wand</dt> 857<dd>the drawing wand. </dd> 858 859<dd> </dd> 860</dl> 861<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetFontResolution">DrawGetFontResolution</a></h2> 862 863<p>DrawGetFontResolution() gets the image X and Y resolution.</p> 864 865<p>The format of the DrawGetFontResolution method is:</p> 866 867<pre class="text"> 868MagickBooleanType DrawGetFontResolution(const DrawingWand *wand, 869 double *x,double *y) 870</pre> 871 872<p>A description of each parameter follows:</p> 873 874<dd> 875</dd> 876 877<dd> </dd> 878<dl class="dl-horizontal"> 879<dt>wand</dt> 880<dd>the magick wand. </dd> 881 882<dd> </dd> 883<dt>x</dt> 884<dd>the x-resolution. </dd> 885 886<dd> </dd> 887<dt>y</dt> 888<dd>the y-resolution. </dd> 889 890<dd> </dd> 891</dl> 892<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetFontSize">DrawGetFontSize</a></h2> 893 894<p>DrawGetFontSize() returns the font pointsize used when annotating with text.</p> 895 896<p>The format of the DrawGetFontSize method is:</p> 897 898<pre class="text"> 899double DrawGetFontSize(const DrawingWand *wand) 900</pre> 901 902<p>A description of each parameter follows:</p> 903 904<dd> 905</dd> 906 907<dd> </dd> 908<dl class="dl-horizontal"> 909<dt>wand</dt> 910<dd>the drawing wand. </dd> 911 912<dd> </dd> 913</dl> 914<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetFontStretch">DrawGetFontStretch</a></h2> 915 916<p>DrawGetFontStretch() returns the font stretch used when annotating with text.</p> 917 918<p>The format of the DrawGetFontStretch method is:</p> 919 920<pre class="text"> 921StretchType DrawGetFontStretch(const DrawingWand *wand) 922</pre> 923 924<p>A description of each parameter follows:</p> 925 926<dd> 927</dd> 928 929<dd> </dd> 930<dl class="dl-horizontal"> 931<dt>wand</dt> 932<dd>the drawing wand. </dd> 933 934<dd> </dd> 935</dl> 936<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetFontStyle">DrawGetFontStyle</a></h2> 937 938<p>DrawGetFontStyle() returns the font style used when annotating with text.</p> 939 940<p>The format of the DrawGetFontStyle method is:</p> 941 942<pre class="text"> 943StyleType DrawGetFontStyle(const DrawingWand *wand) 944</pre> 945 946<p>A description of each parameter follows:</p> 947 948<dd> 949</dd> 950 951<dd> </dd> 952<dl class="dl-horizontal"> 953<dt>wand</dt> 954<dd>the drawing wand. </dd> 955 956<dd> </dd> 957</dl> 958<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetFontWeight">DrawGetFontWeight</a></h2> 959 960<p>DrawGetFontWeight() returns the font weight used when annotating with text.</p> 961 962<p>The format of the DrawGetFontWeight method is:</p> 963 964<pre class="text"> 965size_t DrawGetFontWeight(const DrawingWand *wand) 966</pre> 967 968<p>A description of each parameter follows:</p> 969 970<dd> 971</dd> 972 973<dd> </dd> 974<dl class="dl-horizontal"> 975<dt>wand</dt> 976<dd>the drawing wand. </dd> 977 978<dd> </dd> 979</dl> 980<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetGravity">DrawGetGravity</a></h2> 981 982<p>DrawGetGravity() returns the text placement gravity used when annotating with text.</p> 983 984<p>The format of the DrawGetGravity method is:</p> 985 986<pre class="text"> 987GravityType DrawGetGravity(const DrawingWand *wand) 988</pre> 989 990<p>A description of each parameter follows:</p> 991 992<dd> 993</dd> 994 995<dd> </dd> 996<dl class="dl-horizontal"> 997<dt>wand</dt> 998<dd>the drawing wand. </dd> 999 1000<dd> </dd> 1001</dl> 1002<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetOpacity">DrawGetOpacity</a></h2> 1003 1004<p>DrawGetOpacity() returns the alpha used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.</p> 1005 1006<p>The format of the DrawGetOpacity method is:</p> 1007 1008<pre class="text"> 1009double DrawGetOpacity(const DrawingWand *wand) 1010</pre> 1011 1012<p>A description of each parameter follows:</p> 1013 1014<dd> 1015</dd> 1016 1017<dd> </dd> 1018<dl class="dl-horizontal"> 1019<dt>wand</dt> 1020<dd>the drawing wand. </dd> 1021 1022<dd> </dd> 1023</dl> 1024<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeAntialias">DrawGetStrokeAntialias</a></h2> 1025 1026<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> 1027 1028<p>The format of the DrawGetStrokeAntialias method is:</p> 1029 1030<pre class="text"> 1031MagickBooleanType DrawGetStrokeAntialias(const DrawingWand *wand) 1032</pre> 1033 1034<p>A description of each parameter follows:</p> 1035 1036<dd> 1037</dd> 1038 1039<dd> </dd> 1040<dl class="dl-horizontal"> 1041<dt>wand</dt> 1042<dd>the drawing wand. </dd> 1043 1044<dd> </dd> 1045</dl> 1046<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeColor">DrawGetStrokeColor</a></h2> 1047 1048<p>DrawGetStrokeColor() returns the color used for stroking object outlines.</p> 1049 1050<p>The format of the DrawGetStrokeColor method is:</p> 1051 1052<pre class="text"> 1053void DrawGetStrokeColor(const DrawingWand *wand, 1054 PixelWand *stroke_color) 1055</pre> 1056 1057<p>A description of each parameter follows:</p> 1058 1059<dd> 1060</dd> 1061 1062<dd> </dd> 1063<dl class="dl-horizontal"> 1064<dt>wand</dt> 1065<dd>the drawing wand. </dd> 1066 1067<dd> </dd> 1068<dt>stroke_color</dt> 1069<dd>Return the stroke color. </dd> 1070 1071<dd> </dd> 1072</dl> 1073<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeDashArray">DrawGetStrokeDashArray</a></h2> 1074 1075<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> 1076 1077<p>The format of the DrawGetStrokeDashArray method is:</p> 1078 1079<pre class="text"> 1080double *DrawGetStrokeDashArray(const DrawingWand *wand, 1081 size_t *number_elements) 1082</pre> 1083 1084<p>A description of each parameter follows:</p> 1085 1086<dd> 1087</dd> 1088 1089<dd> </dd> 1090<dl class="dl-horizontal"> 1091<dt>wand</dt> 1092<dd>the drawing wand. </dd> 1093 1094<dd> </dd> 1095<dt>number_elements</dt> 1096<dd>address to place number of elements in dash array </dd> 1097 1098<dd> </dd> 1099</dl> 1100<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a></h2> 1101 1102<p>DrawGetStrokeDashOffset() returns the offset into the dash pattern to start the dash.</p> 1103 1104<p>The format of the DrawGetStrokeDashOffset method is:</p> 1105 1106<pre class="text"> 1107double DrawGetStrokeDashOffset(const DrawingWand *wand) 1108</pre> 1109 1110<p>A description of each parameter follows:</p> 1111 1112<dd> 1113</dd> 1114 1115<dd> </dd> 1116<dl class="dl-horizontal"> 1117<dt>wand</dt> 1118<dd>the drawing wand. </dd> 1119 1120<dd> </dd> 1121</dl> 1122<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeLineCap">DrawGetStrokeLineCap</a></h2> 1123 1124<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> 1125 1126<p>The format of the DrawGetStrokeLineCap method is:</p> 1127 1128<pre class="text"> 1129LineCap DrawGetStrokeLineCap(const DrawingWand *wand) 1130</pre> 1131 1132<p>A description of each parameter follows:</p> 1133 1134<dd> 1135</dd> 1136 1137<dd> </dd> 1138<dl class="dl-horizontal"> 1139<dt>wand</dt> 1140<dd>the drawing wand. </dd> 1141 1142<dd> </dd> 1143</dl> 1144<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a></h2> 1145 1146<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> 1147 1148<p>The format of the DrawGetStrokeLineJoin method is:</p> 1149 1150<pre class="text"> 1151LineJoin DrawGetStrokeLineJoin(const DrawingWand *wand) 1152</pre> 1153 1154<p>A description of each parameter follows:</p> 1155 1156<dd> 1157</dd> 1158 1159<dd> </dd> 1160<dl class="dl-horizontal"> 1161<dt>wand</dt> 1162<dd>the drawing wand. </dd> 1163 1164<dd> </dd> 1165</dl> 1166<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a></h2> 1167 1168<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> 1169 1170<p>The format of the DrawGetStrokeMiterLimit method is:</p> 1171 1172<pre class="text"> 1173size_t DrawGetStrokeMiterLimit(const DrawingWand *wand) 1174</pre> 1175 1176<p>A description of each parameter follows:</p> 1177 1178<dd> 1179</dd> 1180 1181<dd> </dd> 1182<dl class="dl-horizontal"> 1183<dt>wand</dt> 1184<dd>the drawing wand. </dd> 1185 1186<dd> </dd> 1187</dl> 1188<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeOpacity">DrawGetStrokeOpacity</a></h2> 1189 1190<p>DrawGetStrokeOpacity() returns the alpha of stroked object outlines.</p> 1191 1192<p>The format of the DrawGetStrokeOpacity method is:</p> 1193 1194<pre class="text"> 1195double DrawGetStrokeOpacity(const DrawingWand *wand) 1196</pre> 1197 1198<p>A description of each parameter follows:</p> 1199 1200<dd> 1201</dd> 1202 1203<dd> </dd> 1204<dl class="dl-horizontal"> 1205<dt>wand</dt> 1206<dd>the drawing wand. </dd> 1207 1208<dd> </dd> 1209</dl> 1210<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeWidth">DrawGetStrokeWidth</a></h2> 1211 1212<p>DrawGetStrokeWidth() returns the width of the stroke used to draw object outlines.</p> 1213 1214<p>The format of the DrawGetStrokeWidth method is:</p> 1215 1216<pre class="text"> 1217double DrawGetStrokeWidth(const DrawingWand *wand) 1218</pre> 1219 1220<p>A description of each parameter follows:</p> 1221 1222<dd> 1223</dd> 1224 1225<dd> </dd> 1226<dl class="dl-horizontal"> 1227<dt>wand</dt> 1228<dd>the drawing wand. </dd> 1229 1230<dd> </dd> 1231</dl> 1232<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetTextAlignment">DrawGetTextAlignment</a></h2> 1233 1234<p>DrawGetTextAlignment() returns the alignment applied when annotating with text.</p> 1235 1236<p>The format of the DrawGetTextAlignment method is:</p> 1237 1238<pre class="text"> 1239AlignType DrawGetTextAlignment(const DrawingWand *wand) 1240</pre> 1241 1242<p>A description of each parameter follows:</p> 1243 1244<dd> 1245</dd> 1246 1247<dd> </dd> 1248<dl class="dl-horizontal"> 1249<dt>wand</dt> 1250<dd>the drawing wand. </dd> 1251 1252<dd> </dd> 1253</dl> 1254<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetTextAntialias">DrawGetTextAntialias</a></h2> 1255 1256<p>DrawGetTextAntialias() returns the current text antialias setting, which determines whether text is antialiased. Text is antialiased by default.</p> 1257 1258<p>The format of the DrawGetTextAntialias method is:</p> 1259 1260<pre class="text"> 1261MagickBooleanType DrawGetTextAntialias(const DrawingWand *wand) 1262</pre> 1263 1264<p>A description of each parameter follows:</p> 1265 1266<dd> 1267</dd> 1268 1269<dd> </dd> 1270<dl class="dl-horizontal"> 1271<dt>wand</dt> 1272<dd>the drawing wand. </dd> 1273 1274<dd> </dd> 1275</dl> 1276<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetTextDecoration">DrawGetTextDecoration</a></h2> 1277 1278<p>DrawGetTextDecoration() returns the decoration applied when annotating with text.</p> 1279 1280<p>The format of the DrawGetTextDecoration method is:</p> 1281 1282<pre class="text"> 1283DecorationType DrawGetTextDecoration(const DrawingWand *wand) 1284</pre> 1285 1286<p>A description of each parameter follows:</p> 1287 1288<dd> 1289</dd> 1290 1291<dd> </dd> 1292<dl class="dl-horizontal"> 1293<dt>wand</dt> 1294<dd>the drawing wand. </dd> 1295 1296<dd> </dd> 1297</dl> 1298<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetTextDirection">DrawGetTextDirection</a></h2> 1299 1300<p>DrawGetTextDirection() returns the direction that will be used when annotating with text.</p> 1301 1302<p>The format of the DrawGetTextDirection method is:</p> 1303 1304<pre class="text"> 1305DirectionType DrawGetTextDirection(const DrawingWand *wand) 1306</pre> 1307 1308<p>A description of each parameter follows:</p> 1309 1310<dd> 1311</dd> 1312 1313<dd> </dd> 1314<dl class="dl-horizontal"> 1315<dt>wand</dt> 1316<dd>the drawing wand. </dd> 1317 1318<dd> </dd> 1319</dl> 1320<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetTextEncoding">DrawGetTextEncoding</a></h2> 1321 1322<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> 1323 1324<p>The format of the DrawGetTextEncoding method is:</p> 1325 1326<pre class="text"> 1327char *DrawGetTextEncoding(const DrawingWand *wand) 1328</pre> 1329 1330<p>A description of each parameter follows:</p> 1331 1332<dd> 1333</dd> 1334 1335<dd> </dd> 1336<dl class="dl-horizontal"> 1337<dt>wand</dt> 1338<dd>the drawing wand. </dd> 1339 1340<dd> </dd> 1341</dl> 1342<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetTextKerning">DrawGetTextKerning</a></h2> 1343 1344<p>DrawGetTextKerning() gets the spacing between characters in text.</p> 1345 1346<p>The format of the DrawSetFontKerning method is:</p> 1347 1348<pre class="text"> 1349double DrawGetTextKerning(DrawingWand *wand) 1350</pre> 1351 1352<p>A description of each parameter follows:</p> 1353 1354<dd> 1355</dd> 1356 1357<dd> </dd> 1358<dl class="dl-horizontal"> 1359<dt>wand</dt> 1360<dd>the drawing wand. </dd> 1361 1362<dd> </dd> 1363</dl> 1364<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetTextInterlineSpacing">DrawGetTextInterlineSpacing</a></h2> 1365 1366<p>DrawGetTextInterlineSpacing() gets the spacing between lines in text.</p> 1367 1368<p>The format of the DrawGetTextInterlineSpacing method is:</p> 1369 1370<pre class="text"> 1371double DrawGetTextInterlineSpacing(DrawingWand *wand) 1372</pre> 1373 1374<p>A description of each parameter follows:</p> 1375 1376<dd> 1377</dd> 1378 1379<dd> </dd> 1380<dl class="dl-horizontal"> 1381<dt>wand</dt> 1382<dd>the drawing wand. </dd> 1383 1384<dd> </dd> 1385</dl> 1386<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2> 1387 1388<p>DrawGetTextInterwordSpacing() gets the spacing between words in text.</p> 1389 1390<p>The format of the DrawSetFontKerning method is:</p> 1391 1392<pre class="text"> 1393double DrawGetTextInterwordSpacing(DrawingWand *wand) 1394</pre> 1395 1396<p>A description of each parameter follows:</p> 1397 1398<dd> 1399</dd> 1400 1401<dd> </dd> 1402<dl class="dl-horizontal"> 1403<dt>wand</dt> 1404<dd>the drawing wand. </dd> 1405 1406<dd> </dd> 1407</dl> 1408<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetTypeMetrics">DrawGetTypeMetrics</a></h2> 1409 1410<p>DrawGetTypeMetrics() returns the following information for the specified font and text:</p> 1411 1412<pre class="text"> 1413 character width 1414 character height 1415 ascender 1416 descender 1417 text width 1418 text height 1419 maximum horizontal advance 1420 bounds: x1 1421 bounds: y1 1422 bounds: x2 1423 bounds: y2 1424 origin: x 1425 origin: y 1426 underline position 1427 underline thickness 1428</pre> 1429 1430<p>The format of the DrawGetTypeMetrics method is:</p> 1431 1432<pre class="text"> 1433MagickBooleanType DrawGetTypeMetrics(const DrawingWand *wand, 1434 const char *text,MagickBooleanType ignore_newlines, 1435$ TypeMetric *metrics) 1436</pre> 1437 1438<p>A description of each parameter follows:</p> 1439 1440<dd> 1441</dd> 1442 1443<dd> </dd> 1444<dl class="dl-horizontal"> 1445<dt>wand</dt> 1446<dd>the drawing wand. </dd> 1447 1448<dd> </dd> 1449<dt>text</dt> 1450<dd>text to draw. </dd> 1451 1452<dd> </dd> 1453<dt>metrics</dt> 1454<dd>Return the font metrics in this structure. </dd> 1455 1456<dd> </dd> 1457<dt>ignore_newlines</dt> 1458<dd>indicates whether newlines should be ignored. </dd> 1459 1460<dd> </dd> 1461<dt>metrics</dt> 1462<dd>Return the font metrics in this structure. </dd> 1463 1464<dd> </dd> 1465</dl> 1466<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetVectorGraphics">DrawGetVectorGraphics</a></h2> 1467 1468<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> 1469 1470<p>The format of the DrawGetVectorGraphics method is:</p> 1471 1472<pre class="text"> 1473char *DrawGetVectorGraphics(DrawingWand *wand) 1474</pre> 1475 1476<p>A description of each parameter follows:</p> 1477 1478<dd> 1479</dd> 1480 1481<dd> </dd> 1482<dl class="dl-horizontal"> 1483<dt>wand</dt> 1484<dd>the drawing wand. </dd> 1485 1486<dd> </dd> 1487</dl> 1488<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawGetTextUnderColor">DrawGetTextUnderColor</a></h2> 1489 1490<p>DrawGetTextUnderColor() returns the color of a background rectangle to place under text annotations.</p> 1491 1492<p>The format of the DrawGetTextUnderColor method is:</p> 1493 1494<pre class="text"> 1495void DrawGetTextUnderColor(const DrawingWand *wand, 1496 PixelWand *under_color) 1497</pre> 1498 1499<p>A description of each parameter follows:</p> 1500 1501<dd> 1502</dd> 1503 1504<dd> </dd> 1505<dl class="dl-horizontal"> 1506<dt>wand</dt> 1507<dd>the drawing wand. </dd> 1508 1509<dd> </dd> 1510<dt>under_color</dt> 1511<dd>Return the under color. </dd> 1512 1513<dd> </dd> 1514</dl> 1515<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawLine">DrawLine</a></h2> 1516 1517<p>DrawLine() draws a line on the image using the current stroke color, stroke alpha, and stroke width.</p> 1518 1519<p>The format of the DrawLine method is:</p> 1520 1521<pre class="text"> 1522void DrawLine(DrawingWand *wand,const double sx,const double sy, 1523 const double ex,const double ey) 1524</pre> 1525 1526<p>A description of each parameter follows:</p> 1527 1528<dd> 1529</dd> 1530 1531<dd> </dd> 1532<dl class="dl-horizontal"> 1533<dt>wand</dt> 1534<dd>the drawing wand. </dd> 1535 1536<dd> </dd> 1537<dt>sx</dt> 1538<dd>starting x ordinate </dd> 1539 1540<dd> </dd> 1541<dt>sy</dt> 1542<dd>starting y ordinate </dd> 1543 1544<dd> </dd> 1545<dt>ex</dt> 1546<dd>ending x ordinate </dd> 1547 1548<dd> </dd> 1549<dt>ey</dt> 1550<dd>ending y ordinate </dd> 1551 1552<dd> </dd> 1553</dl> 1554<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathClose">DrawPathClose</a></h2> 1555 1556<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> 1557 1558<p>The format of the DrawPathClose method is:</p> 1559 1560<pre class="text"> 1561void DrawPathClose(DrawingWand *wand) 1562</pre> 1563 1564<p>A description of each parameter follows:</p> 1565 1566<dd> 1567</dd> 1568 1569<dd> </dd> 1570<dl class="dl-horizontal"> 1571<dt>wand</dt> 1572<dd>the drawing wand. </dd> 1573 1574<dd> </dd> 1575</dl> 1576<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a></h2> 1577 1578<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> 1579 1580<p>The format of the DrawPathCurveToAbsolute method is:</p> 1581 1582<pre class="text"> 1583void DrawPathCurveToAbsolute(DrawingWand *wand,const double x1, 1584 const double y1,const double x2,const double y2,const double x, 1585 const double y) 1586</pre> 1587 1588<p>A description of each parameter follows:</p> 1589 1590<dd> 1591</dd> 1592 1593<dd> </dd> 1594<dl class="dl-horizontal"> 1595<dt>wand</dt> 1596<dd>the drawing wand. </dd> 1597 1598<dd> </dd> 1599<dt>x1</dt> 1600<dd>x ordinate of control point for curve beginning </dd> 1601 1602<dd> </dd> 1603<dt>y1</dt> 1604<dd>y ordinate of control point for curve beginning </dd> 1605 1606<dd> </dd> 1607<dt>x2</dt> 1608<dd>x ordinate of control point for curve ending </dd> 1609 1610<dd> </dd> 1611<dt>y2</dt> 1612<dd>y ordinate of control point for curve ending </dd> 1613 1614<dd> </dd> 1615<dt>x</dt> 1616<dd>x ordinate of the end of the curve </dd> 1617 1618<dd> </dd> 1619<dt>y</dt> 1620<dd>y ordinate of the end of the curve </dd> 1621 1622<dd> </dd> 1623</dl> 1624<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToRelative">DrawPathCurveToRelative</a></h2> 1625 1626<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> 1627 1628<p>The format of the DrawPathCurveToRelative method is:</p> 1629 1630<pre class="text"> 1631void DrawPathCurveToRelative(DrawingWand *wand,const double x1, 1632 const double y1,const double x2,const double y2,const double x, 1633 const double y) 1634</pre> 1635 1636<p>A description of each parameter follows:</p> 1637 1638<dd> 1639</dd> 1640 1641<dd> </dd> 1642<dl class="dl-horizontal"> 1643<dt>wand</dt> 1644<dd>the drawing wand. </dd> 1645 1646<dd> </dd> 1647<dt>x1</dt> 1648<dd>x ordinate of control point for curve beginning </dd> 1649 1650<dd> </dd> 1651<dt>y1</dt> 1652<dd>y ordinate of control point for curve beginning </dd> 1653 1654<dd> </dd> 1655<dt>x2</dt> 1656<dd>x ordinate of control point for curve ending </dd> 1657 1658<dd> </dd> 1659<dt>y2</dt> 1660<dd>y ordinate of control point for curve ending </dd> 1661 1662<dd> </dd> 1663<dt>x</dt> 1664<dd>x ordinate of the end of the curve </dd> 1665 1666<dd> </dd> 1667<dt>y</dt> 1668<dd>y ordinate of the end of the curve </dd> 1669 1670<dd> </dd> 1671</dl> 1672<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a></h2> 1673 1674<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> 1675 1676<p>The format of the DrawPathCurveToQuadraticBezierAbsolute method is:</p> 1677 1678<pre class="text"> 1679void DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *wand, 1680 const double x1,const double y1,onst double x,const double y) 1681</pre> 1682 1683<p>A description of each parameter follows:</p> 1684 1685<dd> 1686</dd> 1687 1688<dd> </dd> 1689<dl class="dl-horizontal"> 1690<dt>wand</dt> 1691<dd>the drawing wand. </dd> 1692 1693<dd> </dd> 1694<dt>x1</dt> 1695<dd>x ordinate of the control point </dd> 1696 1697<dd> </dd> 1698<dt>y1</dt> 1699<dd>y ordinate of the control point </dd> 1700 1701<dd> </dd> 1702<dt>x</dt> 1703<dd>x ordinate of final point </dd> 1704 1705<dd> </dd> 1706<dt>y</dt> 1707<dd>y ordinate of final point </dd> 1708 1709<dd> </dd> 1710</dl> 1711<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a></h2> 1712 1713<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> 1714 1715<p>The format of the DrawPathCurveToQuadraticBezierRelative method is:</p> 1716 1717<pre class="text"> 1718void DrawPathCurveToQuadraticBezierRelative(DrawingWand *wand, 1719 const double x1,const double y1,const double x,const double y) 1720</pre> 1721 1722<p>A description of each parameter follows:</p> 1723 1724<dd> 1725</dd> 1726 1727<dd> </dd> 1728<dl class="dl-horizontal"> 1729<dt>wand</dt> 1730<dd>the drawing wand. </dd> 1731 1732<dd> </dd> 1733<dt>x1</dt> 1734<dd>x ordinate of the control point </dd> 1735 1736<dd> </dd> 1737<dt>y1</dt> 1738<dd>y ordinate of the control point </dd> 1739 1740<dd> </dd> 1741<dt>x</dt> 1742<dd>x ordinate of final point </dd> 1743 1744<dd> </dd> 1745<dt>y</dt> 1746<dd>y ordinate of final point </dd> 1747 1748<dd> </dd> 1749</dl> 1750<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2> 1751 1752<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> 1753 1754<p>The format of the DrawPathCurveToQuadraticBezierSmoothAbsolute method is:</p> 1755 1756<pre class="text"> 1757void DrawPathCurveToQuadraticBezierSmoothAbsolute( 1758 DrawingWand *wand,const double x,const double y) 1759</pre> 1760 1761<p>A description of each parameter follows:</p> 1762 1763<dd> 1764</dd> 1765 1766<dd> </dd> 1767<dl class="dl-horizontal"> 1768<dt>wand</dt> 1769<dd>the drawing wand. </dd> 1770 1771<dd> </dd> 1772<dt>x</dt> 1773<dd>x ordinate of final point </dd> 1774 1775<dd> </dd> 1776<dt>y</dt> 1777<dd>y ordinate of final point </dd> 1778 1779<dd> </dd> 1780</dl> 1781<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierSmoothRelative">DrawPathCurveToQuadraticBezierSmoothRelative</a></h2> 1782 1783<p>DrawPathCurveToQuadraticBezierSmoothRelative() 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> 1784 1785<p>The format of the DrawPathCurveToQuadraticBezierSmoothRelative method is:</p> 1786 1787<pre class="text"> 1788void DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *wand, 1789 const double x,const double y) 1790</pre> 1791 1792<p>A description of each parameter follows:</p> 1793 1794<dd> 1795</dd> 1796 1797<dd> </dd> 1798<dl class="dl-horizontal"> 1799<dt>wand</dt> 1800<dd>the drawing wand. </dd> 1801 1802<dd> </dd> 1803<dt>x</dt> 1804<dd>x ordinate of final point </dd> 1805 1806<dd> </dd> 1807<dt>y</dt> 1808<dd>y ordinate of final point </dd> 1809 1810<dd> </dd> 1811</dl> 1812<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a></h2> 1813 1814<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> 1815 1816<p>The format of the DrawPathCurveToSmoothAbsolute method is:</p> 1817 1818<pre class="text"> 1819void DrawPathCurveToSmoothAbsolute(DrawingWand *wand, 1820 const double x2,const double y2,const double x,const double y) 1821</pre> 1822 1823<p>A description of each parameter follows:</p> 1824 1825<dd> 1826</dd> 1827 1828<dd> </dd> 1829<dl class="dl-horizontal"> 1830<dt>wand</dt> 1831<dd>the drawing wand. </dd> 1832 1833<dd> </dd> 1834<dt>x2</dt> 1835<dd>x ordinate of second control point </dd> 1836 1837<dd> </dd> 1838<dt>y2</dt> 1839<dd>y ordinate of second control point </dd> 1840 1841<dd> </dd> 1842<dt>x</dt> 1843<dd>x ordinate of termination point </dd> 1844 1845<dd> </dd> 1846<dt>y</dt> 1847<dd>y ordinate of termination point </dd> 1848 1849<dd> </dd> 1850</dl> 1851<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a></h2> 1852 1853<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> 1854 1855<p>The format of the DrawPathCurveToSmoothRelative method is:</p> 1856 1857<pre class="text"> 1858void DrawPathCurveToSmoothRelative(DrawingWand *wand, 1859 const double x2,const double y2,const double x,const double y) 1860</pre> 1861 1862<p>A description of each parameter follows:</p> 1863 1864<dd> 1865</dd> 1866 1867<dd> </dd> 1868<dl class="dl-horizontal"> 1869<dt>wand</dt> 1870<dd>the drawing wand. </dd> 1871 1872<dd> </dd> 1873<dt>x2</dt> 1874<dd>x ordinate of second control point </dd> 1875 1876<dd> </dd> 1877<dt>y2</dt> 1878<dd>y ordinate of second control point </dd> 1879 1880<dd> </dd> 1881<dt>x</dt> 1882<dd>x ordinate of termination point </dd> 1883 1884<dd> </dd> 1885<dt>y</dt> 1886<dd>y ordinate of termination point </dd> 1887 1888<dd> </dd> 1889</dl> 1890<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a></h2> 1891 1892<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> 1893 1894<p>The format of the DrawPathEllipticArcAbsolute method is:</p> 1895 1896<pre class="text"> 1897void DrawPathEllipticArcAbsolute(DrawingWand *wand, 1898 const double rx,const double ry,const double x_axis_rotation, 1899 const MagickBooleanType large_arc_flag, 1900 const MagickBooleanType sweep_flag,const double x,const double y) 1901</pre> 1902 1903<p>A description of each parameter follows:</p> 1904 1905<dd> 1906</dd> 1907 1908<dd> </dd> 1909<dl class="dl-horizontal"> 1910<dt>wand</dt> 1911<dd>the drawing wand. </dd> 1912 1913<dd> </dd> 1914<dt>rx</dt> 1915<dd>x radius </dd> 1916 1917<dd> </dd> 1918<dt>ry</dt> 1919<dd>y radius </dd> 1920 1921<dd> </dd> 1922<dt>x_axis_rotation</dt> 1923<dd>indicates how the ellipse as a whole is rotated relative to the current coordinate system </dd> 1924 1925<dd> </dd> 1926<dt>large_arc_flag</dt> 1927<dd>If non-zero (true) then draw the larger of the available arcs </dd> 1928 1929<dd> </dd> 1930<dt>sweep_flag</dt> 1931<dd>If non-zero (true) then draw the arc matching a clock-wise rotation </dd> 1932 1933<dd> </dd> 1934 1935<dd> </dd> 1936</dl> 1937<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a></h2> 1938 1939<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> 1940 1941<p>The format of the DrawPathEllipticArcRelative method is:</p> 1942 1943<pre class="text"> 1944void DrawPathEllipticArcRelative(DrawingWand *wand, 1945 const double rx,const double ry,const double x_axis_rotation, 1946 const MagickBooleanType large_arc_flag, 1947 const MagickBooleanType sweep_flag,const double x,const double y) 1948</pre> 1949 1950<p>A description of each parameter follows:</p> 1951 1952<dd> 1953</dd> 1954 1955<dd> </dd> 1956<dl class="dl-horizontal"> 1957<dt>wand</dt> 1958<dd>the drawing wand. </dd> 1959 1960<dd> </dd> 1961<dt>rx</dt> 1962<dd>x radius </dd> 1963 1964<dd> </dd> 1965<dt>ry</dt> 1966<dd>y radius </dd> 1967 1968<dd> </dd> 1969<dt>x_axis_rotation</dt> 1970<dd>indicates how the ellipse as a whole is rotated relative to the current coordinate system </dd> 1971 1972<dd> </dd> 1973<dt>large_arc_flag</dt> 1974<dd>If non-zero (true) then draw the larger of the available arcs </dd> 1975 1976<dd> </dd> 1977<dt>sweep_flag</dt> 1978<dd>If non-zero (true) then draw the arc matching a clock-wise rotation </dd> 1979 1980<dd> </dd> 1981</dl> 1982<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathFinish">DrawPathFinish</a></h2> 1983 1984<p>DrawPathFinish() terminates the current path.</p> 1985 1986<p>The format of the DrawPathFinish method is:</p> 1987 1988<pre class="text"> 1989void DrawPathFinish(DrawingWand *wand) 1990</pre> 1991 1992<p>A description of each parameter follows:</p> 1993 1994<dd> 1995</dd> 1996 1997<dd> </dd> 1998<dl class="dl-horizontal"> 1999<dt>wand</dt> 2000<dd>the drawing wand. </dd> 2001 2002<dd> </dd> 2003</dl> 2004<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToAbsolute">DrawPathLineToAbsolute</a></h2> 2005 2006<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> 2007 2008<p>The format of the DrawPathLineToAbsolute method is:</p> 2009 2010<pre class="text"> 2011void DrawPathLineToAbsolute(DrawingWand *wand,const double x, 2012 const double y) 2013</pre> 2014 2015<p>A description of each parameter follows:</p> 2016 2017<dd> 2018</dd> 2019 2020<dd> </dd> 2021<dl class="dl-horizontal"> 2022<dt>wand</dt> 2023<dd>the drawing wand. </dd> 2024 2025<dd> </dd> 2026<dt>x</dt> 2027<dd>target x ordinate </dd> 2028 2029<dd> </dd> 2030<dt>y</dt> 2031<dd>target y ordinate </dd> 2032 2033<dd> </dd> 2034</dl> 2035<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToRelative">DrawPathLineToRelative</a></h2> 2036 2037<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> 2038 2039<p>The format of the DrawPathLineToRelative method is:</p> 2040 2041<pre class="text"> 2042void DrawPathLineToRelative(DrawingWand *wand,const double x, 2043 const double y) 2044</pre> 2045 2046<p>A description of each parameter follows:</p> 2047 2048<dd> 2049</dd> 2050 2051<dd> </dd> 2052<dl class="dl-horizontal"> 2053<dt>wand</dt> 2054<dd>the drawing wand. </dd> 2055 2056<dd> </dd> 2057<dt>x</dt> 2058<dd>target x ordinate </dd> 2059 2060<dd> </dd> 2061<dt>y</dt> 2062<dd>target y ordinate </dd> 2063 2064<dd> </dd> 2065</dl> 2066<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a></h2> 2067 2068<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> 2069 2070<p>The format of the DrawPathLineToHorizontalAbsolute method is:</p> 2071 2072<pre class="text"> 2073void DrawPathLineToHorizontalAbsolute(DrawingWand *wand,const double x) 2074</pre> 2075 2076<p>A description of each parameter follows:</p> 2077 2078<dd> 2079</dd> 2080 2081<dd> </dd> 2082<dl class="dl-horizontal"> 2083<dt>wand</dt> 2084<dd>the drawing wand. </dd> 2085 2086<dd> </dd> 2087<dt>x</dt> 2088<dd>target x ordinate </dd> 2089 2090<dd> </dd> 2091</dl> 2092<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a></h2> 2093 2094<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> 2095 2096<p>The format of the DrawPathLineToHorizontalRelative method is:</p> 2097 2098<pre class="text"> 2099void DrawPathLineToHorizontalRelative(DrawingWand *wand, 2100 const double x) 2101</pre> 2102 2103<p>A description of each parameter follows:</p> 2104 2105<dd> 2106</dd> 2107 2108<dd> </dd> 2109<dl class="dl-horizontal"> 2110<dt>wand</dt> 2111<dd>the drawing wand. </dd> 2112 2113<dd> </dd> 2114<dt>x</dt> 2115<dd>target x ordinate </dd> 2116 2117<dd> </dd> 2118</dl> 2119<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a></h2> 2120 2121<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> 2122 2123<p>The format of the DrawPathLineToVerticalAbsolute method is:</p> 2124 2125<pre class="text"> 2126void DrawPathLineToVerticalAbsolute(DrawingWand *wand, 2127 const double y) 2128</pre> 2129 2130<p>A description of each parameter follows:</p> 2131 2132<dd> 2133</dd> 2134 2135<dd> </dd> 2136<dl class="dl-horizontal"> 2137<dt>wand</dt> 2138<dd>the drawing wand. </dd> 2139 2140<dd> </dd> 2141<dt>y</dt> 2142<dd>target y ordinate </dd> 2143 2144<dd> </dd> 2145</dl> 2146<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a></h2> 2147 2148<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> 2149 2150<p>The format of the DrawPathLineToVerticalRelative method is:</p> 2151 2152<pre class="text"> 2153void DrawPathLineToVerticalRelative(DrawingWand *wand, 2154 const double y) 2155</pre> 2156 2157<p>A description of each parameter follows:</p> 2158 2159<dd> 2160</dd> 2161 2162<dd> </dd> 2163<dl class="dl-horizontal"> 2164<dt>wand</dt> 2165<dd>the drawing wand. </dd> 2166 2167<dd> </dd> 2168<dt>y</dt> 2169<dd>target y ordinate </dd> 2170 2171<dd> </dd> 2172</dl> 2173<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a></h2> 2174 2175<p>DrawPathMoveToAbsolute() starts a new sub-path at the given coordinate using absolute coordinates. The current point then becomes the specified coordinate.</p> 2176 2177<p>The format of the DrawPathMoveToAbsolute method is:</p> 2178 2179<pre class="text"> 2180void DrawPathMoveToAbsolute(DrawingWand *wand,const double x, 2181 const double y) 2182</pre> 2183 2184<p>A description of each parameter follows:</p> 2185 2186<dd> 2187</dd> 2188 2189<dd> </dd> 2190<dl class="dl-horizontal"> 2191<dt>wand</dt> 2192<dd>the drawing wand. </dd> 2193 2194<dd> </dd> 2195<dt>x</dt> 2196<dd>target x ordinate </dd> 2197 2198<dd> </dd> 2199<dt>y</dt> 2200<dd>target y ordinate </dd> 2201 2202<dd> </dd> 2203</dl> 2204<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathMoveToRelative">DrawPathMoveToRelative</a></h2> 2205 2206<p>DrawPathMoveToRelative() starts a new sub-path at the given coordinate using relative coordinates. The current point then becomes the specified coordinate.</p> 2207 2208<p>The format of the DrawPathMoveToRelative method is:</p> 2209 2210<pre class="text"> 2211void DrawPathMoveToRelative(DrawingWand *wand,const double x, 2212 const double y) 2213</pre> 2214 2215<p>A description of each parameter follows:</p> 2216 2217<dd> 2218</dd> 2219 2220<dd> </dd> 2221<dl class="dl-horizontal"> 2222<dt>wand</dt> 2223<dd>the drawing wand. </dd> 2224 2225<dd> </dd> 2226<dt>x</dt> 2227<dd>target x ordinate </dd> 2228 2229<dd> </dd> 2230<dt>y</dt> 2231<dd>target y ordinate </dd> 2232 2233<dd> </dd> 2234</dl> 2235<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPathStart">DrawPathStart</a></h2> 2236 2237<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> 2238 2239<p>The format of the DrawPathStart method is:</p> 2240 2241<pre class="text"> 2242void DrawPathStart(DrawingWand *wand) 2243</pre> 2244 2245<p>A description of each parameter follows:</p> 2246 2247<dd> 2248</dd> 2249 2250<dd> </dd> 2251<dl class="dl-horizontal"> 2252<dt>wand</dt> 2253<dd>the drawing wand. </dd> 2254 2255<dd> </dd> 2256</dl> 2257<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPoint">DrawPoint</a></h2> 2258 2259<p>DrawPoint() draws a point using the current fill color.</p> 2260 2261<p>The format of the DrawPoint method is:</p> 2262 2263<pre class="text"> 2264void DrawPoint(DrawingWand *wand,const double x,const double y) 2265</pre> 2266 2267<p>A description of each parameter follows:</p> 2268 2269<dd> 2270</dd> 2271 2272<dd> </dd> 2273<dl class="dl-horizontal"> 2274<dt>wand</dt> 2275<dd>the drawing wand. </dd> 2276 2277<dd> </dd> 2278<dt>x</dt> 2279<dd>target x coordinate </dd> 2280 2281<dd> </dd> 2282<dt>y</dt> 2283<dd>target y coordinate </dd> 2284 2285<dd> </dd> 2286</dl> 2287<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPolygon">DrawPolygon</a></h2> 2288 2289<p>DrawPolygon() draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p> 2290 2291<p>The format of the DrawPolygon method is:</p> 2292 2293<pre class="text"> 2294void DrawPolygon(DrawingWand *wand, 2295 const size_t number_coordinates,const PointInfo *coordinates) 2296</pre> 2297 2298<p>A description of each parameter follows:</p> 2299 2300<dd> 2301</dd> 2302 2303<dd> </dd> 2304<dl class="dl-horizontal"> 2305<dt>wand</dt> 2306<dd>the drawing wand. </dd> 2307 2308<dd> </dd> 2309<dt>number_coordinates</dt> 2310<dd>number of coordinates </dd> 2311 2312<dd> </dd> 2313<dt>coordinates</dt> 2314<dd>coordinate array </dd> 2315 2316<dd> </dd> 2317</dl> 2318<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPolyline">DrawPolyline</a></h2> 2319 2320<p>DrawPolyline() draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p> 2321 2322<p>The format of the DrawPolyline method is:</p> 2323 2324<pre class="text"> 2325void DrawPolyline(DrawingWand *wand, 2326 const size_t number_coordinates,const PointInfo *coordinates) 2327</pre> 2328 2329<p>A description of each parameter follows:</p> 2330 2331<dd> 2332</dd> 2333 2334<dd> </dd> 2335<dl class="dl-horizontal"> 2336<dt>wand</dt> 2337<dd>the drawing wand. </dd> 2338 2339<dd> </dd> 2340<dt>number_coordinates</dt> 2341<dd>number of coordinates </dd> 2342 2343<dd> </dd> 2344<dt>coordinates</dt> 2345<dd>coordinate array </dd> 2346 2347<dd> </dd> 2348</dl> 2349<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPopClipPath">DrawPopClipPath</a></h2> 2350 2351<p>DrawPopClipPath() terminates a clip path definition.</p> 2352 2353<p>The format of the DrawPopClipPath method is:</p> 2354 2355<pre class="text"> 2356void DrawPopClipPath(DrawingWand *wand) 2357</pre> 2358 2359<p>A description of each parameter follows:</p> 2360 2361<dd> 2362</dd> 2363 2364<dd> </dd> 2365<dl class="dl-horizontal"> 2366<dt>wand</dt> 2367<dd>the drawing wand. </dd> 2368 2369<dd> </dd> 2370</dl> 2371<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPopDefs">DrawPopDefs</a></h2> 2372 2373<p>DrawPopDefs() terminates a definition list.</p> 2374 2375<p>The format of the DrawPopDefs method is:</p> 2376 2377<pre class="text"> 2378void DrawPopDefs(DrawingWand *wand) 2379</pre> 2380 2381<p>A description of each parameter follows:</p> 2382 2383<dd> 2384</dd> 2385 2386<dd> </dd> 2387<dl class="dl-horizontal"> 2388<dt>wand</dt> 2389<dd>the drawing wand. </dd> 2390 2391<dd> </dd> 2392</dl> 2393<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPopPattern">DrawPopPattern</a></h2> 2394 2395<p>DrawPopPattern() terminates a pattern definition.</p> 2396 2397<p>The format of the DrawPopPattern method is:</p> 2398 2399<pre class="text"> 2400MagickBooleanType DrawPopPattern(DrawingWand *wand) 2401</pre> 2402 2403<p>A description of each parameter follows:</p> 2404 2405<dd> 2406</dd> 2407 2408<dd> </dd> 2409<dl class="dl-horizontal"> 2410<dt>wand</dt> 2411<dd>the drawing wand. </dd> 2412 2413<dd> </dd> 2414</dl> 2415<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPushClipPath">DrawPushClipPath</a></h2> 2416 2417<p>DrawPushClipPath() starts a clip path definition which is comprized of any number of drawing commands and terminated by a DrawPopClipPath() command.</p> 2418 2419<p>The format of the DrawPushClipPath method is:</p> 2420 2421<pre class="text"> 2422void DrawPushClipPath(DrawingWand *wand,const char *clip_mask_id) 2423</pre> 2424 2425<p>A description of each parameter follows:</p> 2426 2427<dd> 2428</dd> 2429 2430<dd> </dd> 2431<dl class="dl-horizontal"> 2432<dt>wand</dt> 2433<dd>the drawing wand. </dd> 2434 2435<dd> </dd> 2436<dt>clip_mask_id</dt> 2437<dd>string identifier to associate with the clip path for later use. </dd> 2438 2439<dd> </dd> 2440</dl> 2441<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPushDefs">DrawPushDefs</a></h2> 2442 2443<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> 2444 2445<p>The format of the DrawPushDefs method is:</p> 2446 2447<pre class="text"> 2448void DrawPushDefs(DrawingWand *wand) 2449</pre> 2450 2451<p>A description of each parameter follows:</p> 2452 2453<dd> 2454</dd> 2455 2456<dd> </dd> 2457<dl class="dl-horizontal"> 2458<dt>wand</dt> 2459<dd>the drawing wand. </dd> 2460 2461<dd> </dd> 2462</dl> 2463<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawPushPattern">DrawPushPattern</a></h2> 2464 2465<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> 2466 2467<p>The format of the DrawPushPattern method is:</p> 2468 2469<pre class="text"> 2470MagickBooleanType DrawPushPattern(DrawingWand *wand, 2471 const char *pattern_id,const double x,const double y, 2472 const double width,const double height) 2473</pre> 2474 2475<p>A description of each parameter follows:</p> 2476 2477<dd> 2478</dd> 2479 2480<dd> </dd> 2481<dl class="dl-horizontal"> 2482<dt>wand</dt> 2483<dd>the drawing wand. </dd> 2484 2485<dd> </dd> 2486<dt>pattern_id</dt> 2487<dd>pattern identification for later reference </dd> 2488 2489<dd> </dd> 2490<dt>x</dt> 2491<dd>x ordinate of top left corner </dd> 2492 2493<dd> </dd> 2494<dt>y</dt> 2495<dd>y ordinate of top left corner </dd> 2496 2497<dd> </dd> 2498<dt>width</dt> 2499<dd>width of pattern space </dd> 2500 2501<dd> </dd> 2502<dt>height</dt> 2503<dd>height of pattern space </dd> 2504 2505<dd> </dd> 2506</dl> 2507<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawRectangle">DrawRectangle</a></h2> 2508 2509<p>DrawRectangle() draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.</p> 2510 2511<p>The format of the DrawRectangle method is:</p> 2512 2513<pre class="text"> 2514void DrawRectangle(DrawingWand *wand,const double x1, 2515 const double y1,const double x2,const double y2) 2516</pre> 2517 2518<p>A description of each parameter follows:</p> 2519 2520<dd> 2521</dd> 2522 2523<dd> </dd> 2524<dl class="dl-horizontal"> 2525<dt>x1</dt> 2526<dd>x ordinate of first coordinate </dd> 2527 2528<dd> </dd> 2529<dt>y1</dt> 2530<dd>y ordinate of first coordinate </dd> 2531 2532<dd> </dd> 2533<dt>x2</dt> 2534<dd>x ordinate of second coordinate </dd> 2535 2536<dd> </dd> 2537<dt>y2</dt> 2538<dd>y ordinate of second coordinate </dd> 2539 2540<dd> </dd> 2541</dl> 2542<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawResetVectorGraphics">DrawResetVectorGraphics</a></h2> 2543 2544<p>DrawResetVectorGraphics() resets the vector graphics associated with the specified wand.</p> 2545 2546<p>The format of the DrawResetVectorGraphics method is:</p> 2547 2548<pre class="text"> 2549void DrawResetVectorGraphics(DrawingWand *wand) 2550</pre> 2551 2552<p>A description of each parameter follows:</p> 2553 2554<dd> 2555</dd> 2556 2557<dd> </dd> 2558<dl class="dl-horizontal"> 2559<dt>wand</dt> 2560<dd>the drawing wand. </dd> 2561 2562<dd> </dd> 2563</dl> 2564<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawRotate">DrawRotate</a></h2> 2565 2566<p>DrawRotate() applies the specified rotation to the current coordinate space.</p> 2567 2568<p>The format of the DrawRotate method is:</p> 2569 2570<pre class="text"> 2571void DrawRotate(DrawingWand *wand,const double degrees) 2572</pre> 2573 2574<p>A description of each parameter follows:</p> 2575 2576<dd> 2577</dd> 2578 2579<dd> </dd> 2580<dl class="dl-horizontal"> 2581<dt>wand</dt> 2582<dd>the drawing wand. </dd> 2583 2584<dd> </dd> 2585<dt>degrees</dt> 2586<dd>degrees of rotation </dd> 2587 2588<dd> </dd> 2589</dl> 2590<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawRoundRectangle">DrawRoundRectangle</a></h2> 2591 2592<p>DrawRoundRectangle() draws a rounted rectangle given two coordinates, x & y corner radiuses and using the current stroke, stroke width, and fill settings.</p> 2593 2594<p>The format of the DrawRoundRectangle method is:</p> 2595 2596<pre class="text"> 2597void DrawRoundRectangle(DrawingWand *wand,double x1,double y1, 2598 double x2,double y2,double rx,double ry) 2599</pre> 2600 2601<p>A description of each parameter follows:</p> 2602 2603<dd> 2604</dd> 2605 2606<dd> </dd> 2607<dl class="dl-horizontal"> 2608<dt>wand</dt> 2609<dd>the drawing wand. </dd> 2610 2611<dd> </dd> 2612<dt>x1</dt> 2613<dd>x ordinate of first coordinate </dd> 2614 2615<dd> </dd> 2616<dt>y1</dt> 2617<dd>y ordinate of first coordinate </dd> 2618 2619<dd> </dd> 2620<dt>x2</dt> 2621<dd>x ordinate of second coordinate </dd> 2622 2623<dd> </dd> 2624<dt>y2</dt> 2625<dd>y ordinate of second coordinate </dd> 2626 2627<dd> </dd> 2628<dt>rx</dt> 2629<dd>radius of corner in horizontal direction </dd> 2630 2631<dd> </dd> 2632<dt>ry</dt> 2633<dd>radius of corner in vertical direction </dd> 2634 2635<dd> </dd> 2636</dl> 2637<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawScale">DrawScale</a></h2> 2638 2639<p>DrawScale() adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space.</p> 2640 2641<p>The format of the DrawScale method is:</p> 2642 2643<pre class="text"> 2644void DrawScale(DrawingWand *wand,const double x,const double y) 2645</pre> 2646 2647<p>A description of each parameter follows:</p> 2648 2649<dd> 2650</dd> 2651 2652<dd> </dd> 2653<dl class="dl-horizontal"> 2654<dt>wand</dt> 2655<dd>the drawing wand. </dd> 2656 2657<dd> </dd> 2658<dt>x</dt> 2659<dd>horizontal scale factor </dd> 2660 2661<dd> </dd> 2662<dt>y</dt> 2663<dd>vertical scale factor </dd> 2664 2665<dd> </dd> 2666</dl> 2667<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetBorderColor">DrawSetBorderColor</a></h2> 2668 2669<p>DrawSetBorderColor() sets the border color to be used for drawing bordered objects.</p> 2670 2671<p>The format of the DrawSetBorderColor method is:</p> 2672 2673<pre class="text"> 2674void DrawSetBorderColor(DrawingWand *wand,const PixelWand *border_wand) 2675</pre> 2676 2677<p>A description of each parameter follows:</p> 2678 2679<dd> 2680</dd> 2681 2682<dd> </dd> 2683<dl class="dl-horizontal"> 2684<dt>wand</dt> 2685<dd>the drawing wand. </dd> 2686 2687<dd> </dd> 2688<dt>border_wand</dt> 2689<dd>border wand. </dd> 2690 2691<dd> </dd> 2692</dl> 2693<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetClipPath">DrawSetClipPath</a></h2> 2694 2695<p>DrawSetClipPath() associates a named clipping path with the image. Only the areas drawn on by the clipping path will be modified as ssize_t as it remains in effect.</p> 2696 2697<p>The format of the DrawSetClipPath method is:</p> 2698 2699<pre class="text"> 2700MagickBooleanType DrawSetClipPath(DrawingWand *wand, 2701 const char *clip_mask) 2702</pre> 2703 2704<p>A description of each parameter follows:</p> 2705 2706<dd> 2707</dd> 2708 2709<dd> </dd> 2710<dl class="dl-horizontal"> 2711<dt>wand</dt> 2712<dd>the drawing wand. </dd> 2713 2714<dd> </dd> 2715<dt>clip_mask</dt> 2716<dd>name of clipping path to associate with image </dd> 2717 2718<dd> </dd> 2719</dl> 2720<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetClipRule">DrawSetClipRule</a></h2> 2721 2722<p>DrawSetClipRule() set the polygon fill rule to be used by the clipping path.</p> 2723 2724<p>The format of the DrawSetClipRule method is:</p> 2725 2726<pre class="text"> 2727void DrawSetClipRule(DrawingWand *wand,const FillRule fill_rule) 2728</pre> 2729 2730<p>A description of each parameter follows:</p> 2731 2732<dd> 2733</dd> 2734 2735<dd> </dd> 2736<dl class="dl-horizontal"> 2737<dt>wand</dt> 2738<dd>the drawing wand. </dd> 2739 2740<dd> </dd> 2741<dt>fill_rule</dt> 2742<dd>fill rule (EvenOddRule or NonZeroRule) </dd> 2743 2744<dd> </dd> 2745</dl> 2746<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetClipUnits">DrawSetClipUnits</a></h2> 2747 2748<p>DrawSetClipUnits() sets the interpretation of clip path units.</p> 2749 2750<p>The format of the DrawSetClipUnits method is:</p> 2751 2752<pre class="text"> 2753void DrawSetClipUnits(DrawingWand *wand, 2754 const ClipPathUnits clip_units) 2755</pre> 2756 2757<p>A description of each parameter follows:</p> 2758 2759<dd> 2760</dd> 2761 2762<dd> </dd> 2763<dl class="dl-horizontal"> 2764<dt>wand</dt> 2765<dd>the drawing wand. </dd> 2766 2767<dd> </dd> 2768<dt>clip_units</dt> 2769<dd>units to use (UserSpace, UserSpaceOnUse, or ObjectBoundingBox) </dd> 2770 2771<dd> </dd> 2772</dl> 2773<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetDensity">DrawSetDensity</a></h2> 2774 2775<p>DrawSetDensity() sets the vertical and horizontal resolution.</p> 2776 2777<p>The format of the DrawSetDensity method is:</p> 2778 2779<pre class="text"> 2780MagickBooleanType DrawSetDensity(DrawingWand *wand, 2781 const char *density) 2782</pre> 2783 2784<p>A description of each parameter follows:</p> 2785 2786<dd> 2787</dd> 2788 2789<dd> </dd> 2790<dl class="dl-horizontal"> 2791<dt>wand</dt> 2792<dd>the drawing wand. </dd> 2793 2794<dd> </dd> 2795<dt>density</dt> 2796<dd>the vertical and horizontal resolution. </dd> 2797 2798<dd> </dd> 2799</dl> 2800<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetFillColor">DrawSetFillColor</a></h2> 2801 2802<p>DrawSetFillColor() sets the fill color to be used for drawing filled objects.</p> 2803 2804<p>The format of the DrawSetFillColor method is:</p> 2805 2806<pre class="text"> 2807void DrawSetFillColor(DrawingWand *wand,const PixelWand *fill_wand) 2808</pre> 2809 2810<p>A description of each parameter follows:</p> 2811 2812<dd> 2813</dd> 2814 2815<dd> </dd> 2816<dl class="dl-horizontal"> 2817<dt>wand</dt> 2818<dd>the drawing wand. </dd> 2819 2820<dd> </dd> 2821<dt>fill_wand</dt> 2822<dd>fill wand. </dd> 2823 2824<dd> </dd> 2825</dl> 2826<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetFillOpacity">DrawSetFillOpacity</a></h2> 2827 2828<p>DrawSetFillOpacity() sets the alpha to use when drawing using the fill color or fill texture. Fully opaque is 1.0.</p> 2829 2830<p>The format of the DrawSetFillOpacity method is:</p> 2831 2832<pre class="text"> 2833void DrawSetFillOpacity(DrawingWand *wand,const double fill_alpha) 2834</pre> 2835 2836<p>A description of each parameter follows:</p> 2837 2838<dd> 2839</dd> 2840 2841<dd> </dd> 2842<dl class="dl-horizontal"> 2843<dt>wand</dt> 2844<dd>the drawing wand. </dd> 2845 2846<dd> </dd> 2847<dt>fill_opacity</dt> 2848<dd>fill opacity </dd> 2849 2850<dd> </dd> 2851</dl> 2852<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetFontResolution">DrawSetFontResolution</a></h2> 2853 2854<p>DrawSetFontResolution() sets the image resolution.</p> 2855 2856<p>The format of the DrawSetFontResolution method is:</p> 2857 2858<pre class="text"> 2859MagickBooleanType DrawSetFontResolution(DrawingWand *wand, 2860 const double x_resolution,const double y_resolution) 2861</pre> 2862 2863<p>A description of each parameter follows:</p> 2864 2865<dd> 2866</dd> 2867 2868<dd> </dd> 2869<dl class="dl-horizontal"> 2870<dt>wand</dt> 2871<dd>the magick wand. </dd> 2872 2873<dd> </dd> 2874<dt>x_resolution</dt> 2875<dd>the image x resolution. </dd> 2876 2877<dd> </dd> 2878<dt>y_resolution</dt> 2879<dd>the image y resolution. </dd> 2880 2881<dd> </dd> 2882</dl> 2883<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetOpacity">DrawSetOpacity</a></h2> 2884 2885<p>DrawSetOpacity() sets the alpha to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0.</p> 2886 2887<p>The format of the DrawSetOpacity method is:</p> 2888 2889<pre class="text"> 2890void DrawSetOpacity(DrawingWand *wand,const double alpha) 2891</pre> 2892 2893<p>A description of each parameter follows:</p> 2894 2895<dd> 2896</dd> 2897 2898<dd> </dd> 2899<dl class="dl-horizontal"> 2900<dt>wand</dt> 2901<dd>the drawing wand. </dd> 2902 2903<dd> </dd> 2904<dt>opacity</dt> 2905<dd>fill and stroke opacity. The value 1.0 is opaque. </dd> 2906 2907<dd> </dd> 2908</dl> 2909<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetFillPatternURL">DrawSetFillPatternURL</a></h2> 2910 2911<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> 2912 2913<p>The format of the DrawSetFillPatternURL method is:</p> 2914 2915<pre class="text"> 2916MagickBooleanType DrawSetFillPatternURL(DrawingWand *wand, 2917 const char *fill_url) 2918</pre> 2919 2920<p>A description of each parameter follows:</p> 2921 2922<dd> 2923</dd> 2924 2925<dd> </dd> 2926<dl class="dl-horizontal"> 2927<dt>wand</dt> 2928<dd>the drawing wand. </dd> 2929 2930<dd> </dd> 2931<dt>fill_url</dt> 2932<dd>URL to use to obtain fill pattern. </dd> 2933 2934<dd> </dd> 2935</dl> 2936<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetFillRule">DrawSetFillRule</a></h2> 2937 2938<p>DrawSetFillRule() sets the fill rule to use while drawing polygons.</p> 2939 2940<p>The format of the DrawSetFillRule method is:</p> 2941 2942<pre class="text"> 2943void DrawSetFillRule(DrawingWand *wand,const FillRule fill_rule) 2944</pre> 2945 2946<p>A description of each parameter follows:</p> 2947 2948<dd> 2949</dd> 2950 2951<dd> </dd> 2952<dl class="dl-horizontal"> 2953<dt>wand</dt> 2954<dd>the drawing wand. </dd> 2955 2956<dd> </dd> 2957<dt>fill_rule</dt> 2958<dd>fill rule (EvenOddRule or NonZeroRule) </dd> 2959 2960<dd> </dd> 2961</dl> 2962<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetFont">DrawSetFont</a></h2> 2963 2964<p>DrawSetFont() sets the fully-sepecified font to use when annotating with text.</p> 2965 2966<p>The format of the DrawSetFont method is:</p> 2967 2968<pre class="text"> 2969MagickBooleanType DrawSetFont(DrawingWand *wand,const char *font_name) 2970</pre> 2971 2972<p>A description of each parameter follows:</p> 2973 2974<dd> 2975</dd> 2976 2977<dd> </dd> 2978<dl class="dl-horizontal"> 2979<dt>wand</dt> 2980<dd>the drawing wand. </dd> 2981 2982<dd> </dd> 2983<dt>font_name</dt> 2984<dd>font name </dd> 2985 2986<dd> </dd> 2987</dl> 2988<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetFontFamily">DrawSetFontFamily</a></h2> 2989 2990<p>DrawSetFontFamily() sets the font family to use when annotating with text.</p> 2991 2992<p>The format of the DrawSetFontFamily method is:</p> 2993 2994<pre class="text"> 2995MagickBooleanType DrawSetFontFamily(DrawingWand *wand, 2996 const char *font_family) 2997</pre> 2998 2999<p>A description of each parameter follows:</p> 3000 3001<dd> 3002</dd> 3003 3004<dd> </dd> 3005<dl class="dl-horizontal"> 3006<dt>wand</dt> 3007<dd>the drawing wand. </dd> 3008 3009<dd> </dd> 3010<dt>font_family</dt> 3011<dd>font family </dd> 3012 3013<dd> </dd> 3014</dl> 3015<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetFontSize">DrawSetFontSize</a></h2> 3016 3017<p>DrawSetFontSize() sets the font pointsize to use when annotating with text.</p> 3018 3019<p>The format of the DrawSetFontSize method is:</p> 3020 3021<pre class="text"> 3022void DrawSetFontSize(DrawingWand *wand,const double pointsize) 3023</pre> 3024 3025<p>A description of each parameter follows:</p> 3026 3027<dd> 3028</dd> 3029 3030<dd> </dd> 3031<dl class="dl-horizontal"> 3032<dt>wand</dt> 3033<dd>the drawing wand. </dd> 3034 3035<dd> </dd> 3036<dt>pointsize</dt> 3037<dd>text pointsize </dd> 3038 3039<dd> </dd> 3040</dl> 3041<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetFontStretch">DrawSetFontStretch</a></h2> 3042 3043<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> 3044 3045<p>The format of the DrawSetFontStretch method is:</p> 3046 3047<pre class="text"> 3048void DrawSetFontStretch(DrawingWand *wand, 3049 const StretchType font_stretch) 3050</pre> 3051 3052<p>A description of each parameter follows:</p> 3053 3054<dd> 3055</dd> 3056 3057<dd> </dd> 3058<dl class="dl-horizontal"> 3059<dt>wand</dt> 3060<dd>the drawing wand. </dd> 3061 3062<dd> </dd> 3063<dt>font_stretch</dt> 3064<dd>font stretch (NormalStretch, UltraCondensedStretch, CondensedStretch, SemiCondensedStretch, SemiExpandedStretch, ExpandedStretch, ExtraExpandedStretch, UltraExpandedStretch, AnyStretch) </dd> 3065 3066<dd> </dd> 3067</dl> 3068<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetFontStyle">DrawSetFontStyle</a></h2> 3069 3070<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> 3071 3072<p>The format of the DrawSetFontStyle method is:</p> 3073 3074<pre class="text"> 3075void DrawSetFontStyle(DrawingWand *wand,const StyleType style) 3076</pre> 3077 3078<p>A description of each parameter follows:</p> 3079 3080<dd> 3081</dd> 3082 3083<dd> </dd> 3084<dl class="dl-horizontal"> 3085<dt>wand</dt> 3086<dd>the drawing wand. </dd> 3087 3088<dd> </dd> 3089<dt>style</dt> 3090<dd>font style (NormalStyle, ItalicStyle, ObliqueStyle, AnyStyle) </dd> 3091 3092<dd> </dd> 3093</dl> 3094<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetFontWeight">DrawSetFontWeight</a></h2> 3095 3096<p>DrawSetFontWeight() sets the font weight to use when annotating with text.</p> 3097 3098<p>The format of the DrawSetFontWeight method is:</p> 3099 3100<pre class="text"> 3101void DrawSetFontWeight(DrawingWand *wand, 3102 const size_t font_weight) 3103</pre> 3104 3105<p>A description of each parameter follows:</p> 3106 3107<dd> 3108</dd> 3109 3110<dd> </dd> 3111<dl class="dl-horizontal"> 3112<dt>wand</dt> 3113<dd>the drawing wand. </dd> 3114 3115<dd> </dd> 3116<dt>font_weight</dt> 3117<dd>font weight (valid range 100-900) </dd> 3118 3119<dd> </dd> 3120</dl> 3121<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetGravity">DrawSetGravity</a></h2> 3122 3123<p>DrawSetGravity() sets the text placement gravity to use when annotating with text.</p> 3124 3125<p>The format of the DrawSetGravity method is:</p> 3126 3127<pre class="text"> 3128void DrawSetGravity(DrawingWand *wand,const GravityType gravity) 3129</pre> 3130 3131<p>A description of each parameter follows:</p> 3132 3133<dd> 3134</dd> 3135 3136<dd> </dd> 3137<dl class="dl-horizontal"> 3138<dt>wand</dt> 3139<dd>the drawing wand. </dd> 3140 3141<dd> </dd> 3142<dt>gravity</dt> 3143<dd>positioning gravity (NorthWestGravity, NorthGravity, NorthEastGravity, WestGravity, CenterGravity, EastGravity, SouthWestGravity, SouthGravity, SouthEastGravity) </dd> 3144 3145<dd> </dd> 3146</dl> 3147<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeColor">DrawSetStrokeColor</a></h2> 3148 3149<p>DrawSetStrokeColor() sets the color used for stroking object outlines.</p> 3150 3151<p>The format of the DrawSetStrokeColor method is:</p> 3152 3153<pre class="text"> 3154void DrawSetStrokeColor(DrawingWand *wand, 3155 const PixelWand *stroke_wand) 3156</pre> 3157 3158<p>A description of each parameter follows:</p> 3159 3160<dd> 3161</dd> 3162 3163<dd> </dd> 3164<dl class="dl-horizontal"> 3165<dt>wand</dt> 3166<dd>the drawing wand. </dd> 3167 3168<dd> </dd> 3169<dt>stroke_wand</dt> 3170<dd>stroke wand. </dd> 3171 3172<dd> </dd> 3173</dl> 3174<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokePatternURL">DrawSetStrokePatternURL</a></h2> 3175 3176<p>DrawSetStrokePatternURL() sets the pattern used for stroking object outlines.</p> 3177 3178<p>The format of the DrawSetStrokePatternURL method is:</p> 3179 3180<pre class="text"> 3181MagickBooleanType DrawSetStrokePatternURL(DrawingWand *wand, 3182 const char *stroke_url) 3183</pre> 3184 3185<p>A description of each parameter follows:</p> 3186 3187<dd> 3188</dd> 3189 3190<dd> </dd> 3191<dl class="dl-horizontal"> 3192<dt>wand</dt> 3193<dd>the drawing wand. </dd> 3194 3195<dd> </dd> 3196<dt>stroke_url</dt> 3197<dd>URL specifying pattern ID (e.g. "#pattern_id") </dd> 3198 3199<dd> </dd> 3200</dl> 3201<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeAntialias">DrawSetStrokeAntialias</a></h2> 3202 3203<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> 3204 3205<p>The format of the DrawSetStrokeAntialias method is:</p> 3206 3207<pre class="text"> 3208void DrawSetStrokeAntialias(DrawingWand *wand, 3209 const MagickBooleanType stroke_antialias) 3210</pre> 3211 3212<p>A description of each parameter follows:</p> 3213 3214<dd> 3215</dd> 3216 3217<dd> </dd> 3218<dl class="dl-horizontal"> 3219<dt>wand</dt> 3220<dd>the drawing wand. </dd> 3221 3222<dd> </dd> 3223<dt>stroke_antialias</dt> 3224<dd>set to false (zero) to disable antialiasing </dd> 3225 3226<dd> </dd> 3227</dl> 3228<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeDashArray">DrawSetStrokeDashArray</a></h2> 3229 3230<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 dasharray. A typical stroke dash array might contain the members 5 3 2.</p> 3231 3232<p>The format of the DrawSetStrokeDashArray method is:</p> 3233 3234<pre class="text"> 3235MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand, 3236 const size_t number_elements,const double *dasharray) 3237</pre> 3238 3239<p>A description of each parameter follows:</p> 3240 3241<dd> 3242</dd> 3243 3244<dd> </dd> 3245<dl class="dl-horizontal"> 3246<dt>wand</dt> 3247<dd>the drawing wand. </dd> 3248 3249<dd> </dd> 3250<dt>number_elements</dt> 3251<dd>number of elements in dash array </dd> 3252 3253<dd> </dd> 3254<dt>dasharray</dt> 3255<dd>dash array values </dd> 3256 3257<dd> </dd> 3258</dl> 3259<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a></h2> 3260 3261<p>DrawSetStrokeDashOffset() specifies the offset into the dash pattern to start the dash.</p> 3262 3263<p>The format of the DrawSetStrokeDashOffset method is:</p> 3264 3265<pre class="text"> 3266void DrawSetStrokeDashOffset(DrawingWand *wand, 3267 const double dash_offset) 3268</pre> 3269 3270<p>A description of each parameter follows:</p> 3271 3272<dd> 3273</dd> 3274 3275<dd> </dd> 3276<dl class="dl-horizontal"> 3277<dt>wand</dt> 3278<dd>the drawing wand. </dd> 3279 3280<dd> </dd> 3281<dt>dash_offset</dt> 3282<dd>dash offset </dd> 3283 3284<dd> </dd> 3285</dl> 3286<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeLineCap">DrawSetStrokeLineCap</a></h2> 3287 3288<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> 3289 3290<p>The format of the DrawSetStrokeLineCap method is:</p> 3291 3292<pre class="text"> 3293void DrawSetStrokeLineCap(DrawingWand *wand, 3294 const LineCap linecap) 3295</pre> 3296 3297<p>A description of each parameter follows:</p> 3298 3299<dd> 3300</dd> 3301 3302<dd> </dd> 3303<dl class="dl-horizontal"> 3304<dt>wand</dt> 3305<dd>the drawing wand. </dd> 3306 3307<dd> </dd> 3308<dt>linecap</dt> 3309<dd>linecap style </dd> 3310 3311<dd> </dd> 3312</dl> 3313<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a></h2> 3314 3315<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> 3316 3317<p>The format of the DrawSetStrokeLineJoin method is:</p> 3318 3319<pre class="text"> 3320void DrawSetStrokeLineJoin(DrawingWand *wand, 3321 const LineJoin linejoin) 3322</pre> 3323 3324<p>A description of each parameter follows:</p> 3325 3326<dd> 3327</dd> 3328 3329<dd> </dd> 3330<dl class="dl-horizontal"> 3331<dt>wand</dt> 3332<dd>the drawing wand. </dd> 3333 3334<dd> </dd> 3335<dt>linejoin</dt> 3336<dd>line join style </dd> 3337 3338<dd> </dd> 3339</dl> 3340<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a></h2> 3341 3342<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> 3343 3344<p>The format of the DrawSetStrokeMiterLimit method is:</p> 3345 3346<pre class="text"> 3347void DrawSetStrokeMiterLimit(DrawingWand *wand, 3348 const size_t miterlimit) 3349</pre> 3350 3351<p>A description of each parameter follows:</p> 3352 3353<dd> 3354</dd> 3355 3356<dd> </dd> 3357<dl class="dl-horizontal"> 3358<dt>wand</dt> 3359<dd>the drawing wand. </dd> 3360 3361<dd> </dd> 3362<dt>miterlimit</dt> 3363<dd>miter limit </dd> 3364 3365<dd> </dd> 3366</dl> 3367<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeOpacity">DrawSetStrokeOpacity</a></h2> 3368 3369<p>DrawSetStrokeOpacity() specifies the alpha of stroked object outlines.</p> 3370 3371<p>The format of the DrawSetStrokeOpacity method is:</p> 3372 3373<pre class="text"> 3374void DrawSetStrokeOpacity(DrawingWand *wand, 3375 const double stroke_alpha) 3376</pre> 3377 3378<p>A description of each parameter follows:</p> 3379 3380<dd> 3381</dd> 3382 3383<dd> </dd> 3384<dl class="dl-horizontal"> 3385<dt>wand</dt> 3386<dd>the drawing wand. </dd> 3387 3388<dd> </dd> 3389<dt>opacity</dt> 3390<dd>stroke opacity. The value 1.0 is opaque. </dd> 3391 3392<dd> </dd> 3393</dl> 3394<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeWidth">DrawSetStrokeWidth</a></h2> 3395 3396<p>DrawSetStrokeWidth() sets the width of the stroke used to draw object outlines.</p> 3397 3398<p>The format of the DrawSetStrokeWidth method is:</p> 3399 3400<pre class="text"> 3401void DrawSetStrokeWidth(DrawingWand *wand, 3402 const double stroke_width) 3403</pre> 3404 3405<p>A description of each parameter follows:</p> 3406 3407<dd> 3408</dd> 3409 3410<dd> </dd> 3411<dl class="dl-horizontal"> 3412<dt>wand</dt> 3413<dd>the drawing wand. </dd> 3414 3415<dd> </dd> 3416<dt>stroke_width</dt> 3417<dd>stroke width </dd> 3418 3419<dd> </dd> 3420</dl> 3421<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetTextAlignment">DrawSetTextAlignment</a></h2> 3422 3423<p>DrawSetTextAlignment() specifies a text alignment to be applied when annotating with text.</p> 3424 3425<p>The format of the DrawSetTextAlignment method is:</p> 3426 3427<pre class="text"> 3428void DrawSetTextAlignment(DrawingWand *wand,const AlignType alignment) 3429</pre> 3430 3431<p>A description of each parameter follows:</p> 3432 3433<dd> 3434</dd> 3435 3436<dd> </dd> 3437<dl class="dl-horizontal"> 3438<dt>wand</dt> 3439<dd>the drawing wand. </dd> 3440 3441<dd> </dd> 3442<dt>alignment</dt> 3443<dd>text alignment. One of UndefinedAlign, LeftAlign, CenterAlign, or RightAlign. </dd> 3444 3445<dd> </dd> 3446</dl> 3447<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetTextAntialias">DrawSetTextAntialias</a></h2> 3448 3449<p>DrawSetTextAntialias() controls whether text is antialiased. Text is antialiased by default.</p> 3450 3451<p>The format of the DrawSetTextAntialias method is:</p> 3452 3453<pre class="text"> 3454void DrawSetTextAntialias(DrawingWand *wand, 3455 const MagickBooleanType text_antialias) 3456</pre> 3457 3458<p>A description of each parameter follows:</p> 3459 3460<dd> 3461</dd> 3462 3463<dd> </dd> 3464<dl class="dl-horizontal"> 3465<dt>wand</dt> 3466<dd>the drawing wand. </dd> 3467 3468<dd> </dd> 3469<dt>text_antialias</dt> 3470<dd>antialias boolean. Set to false (0) to disable antialiasing. </dd> 3471 3472<dd> </dd> 3473</dl> 3474<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetTextDecoration">DrawSetTextDecoration</a></h2> 3475 3476<p>DrawSetTextDecoration() specifies a decoration to be applied when annotating with text.</p> 3477 3478<p>The format of the DrawSetTextDecoration method is:</p> 3479 3480<pre class="text"> 3481void DrawSetTextDecoration(DrawingWand *wand, 3482 const DecorationType decoration) 3483</pre> 3484 3485<p>A description of each parameter follows:</p> 3486 3487<dd> 3488</dd> 3489 3490<dd> </dd> 3491<dl class="dl-horizontal"> 3492<dt>wand</dt> 3493<dd>the drawing wand. </dd> 3494 3495<dd> </dd> 3496<dt>decoration</dt> 3497<dd>text decoration. One of NoDecoration, UnderlineDecoration, OverlineDecoration, or LineThroughDecoration </dd> 3498 3499<dd> </dd> 3500</dl> 3501<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetTextDirection">DrawSetTextDirection</a></h2> 3502 3503<p>DrawSetTextDirection() specifies the direction to be used when annotating with text.</p> 3504 3505<p>The format of the DrawSetTextDirection method is:</p> 3506 3507<pre class="text"> 3508void DrawSetTextDirection(DrawingWand *wand, 3509 const DirectionType direction) 3510</pre> 3511 3512<p>A description of each parameter follows:</p> 3513 3514<dd> 3515</dd> 3516 3517<dd> </dd> 3518<dl class="dl-horizontal"> 3519<dt>wand</dt> 3520<dd>the drawing wand. </dd> 3521 3522<dd> </dd> 3523<dt>direction</dt> 3524<dd>text direction. One of RightToLeftDirection, LeftToRightDirection </dd> 3525 3526<dd> </dd> 3527</dl> 3528<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetTextEncoding">DrawSetTextEncoding</a></h2> 3529 3530<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> 3531 3532<p>The format of the DrawSetTextEncoding method is:</p> 3533 3534<pre class="text"> 3535void DrawSetTextEncoding(DrawingWand *wand,const char *encoding) 3536</pre> 3537 3538<p>A description of each parameter follows:</p> 3539 3540<dd> 3541</dd> 3542 3543<dd> </dd> 3544<dl class="dl-horizontal"> 3545<dt>wand</dt> 3546<dd>the drawing wand. </dd> 3547 3548<dd> </dd> 3549<dt>encoding</dt> 3550<dd>character string specifying text encoding </dd> 3551 3552<dd> </dd> 3553</dl> 3554<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetTextKerning">DrawSetTextKerning</a></h2> 3555 3556<p>DrawSetTextKerning() sets the spacing between characters in text.</p> 3557 3558<p>The format of the DrawSetTextKerning method is:</p> 3559 3560<pre class="text"> 3561void DrawSetTextKerning(DrawingWand *wand,const double kerning) 3562</pre> 3563 3564<p>A description of each parameter follows:</p> 3565 3566<dd> 3567</dd> 3568 3569<dd> </dd> 3570<dl class="dl-horizontal"> 3571<dt>wand</dt> 3572<dd>the drawing wand. </dd> 3573 3574<dd> </dd> 3575<dt>kerning</dt> 3576<dd>text kerning </dd> 3577 3578<dd> </dd> 3579</dl> 3580<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetTextInterlineSpacing">DrawSetTextInterlineSpacing</a></h2> 3581 3582<p>DrawSetTextInterlineSpacing() sets the spacing between line in text.</p> 3583 3584<p>The format of the DrawSetInterlineSpacing method is:</p> 3585 3586<pre class="text"> 3587void DrawSetTextInterlineSpacing(DrawingWand *wand, 3588 const double interline_spacing) 3589</pre> 3590 3591<p>A description of each parameter follows:</p> 3592 3593<dd> 3594</dd> 3595 3596<dd> </dd> 3597<dl class="dl-horizontal"> 3598<dt>wand</dt> 3599<dd>the drawing wand. </dd> 3600 3601<dd> </dd> 3602<dt>interline_spacing</dt> 3603<dd>text line spacing </dd> 3604 3605<dd> </dd> 3606</dl> 3607<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2> 3608 3609<p>DrawSetTextInterwordSpacing() sets the spacing between words in text.</p> 3610 3611<p>The format of the DrawSetInterwordSpacing method is:</p> 3612 3613<pre class="text"> 3614void DrawSetTextInterwordSpacing(DrawingWand *wand, 3615 const double interword_spacing) 3616</pre> 3617 3618<p>A description of each parameter follows:</p> 3619 3620<dd> 3621</dd> 3622 3623<dd> </dd> 3624<dl class="dl-horizontal"> 3625<dt>wand</dt> 3626<dd>the drawing wand. </dd> 3627 3628<dd> </dd> 3629<dt>interword_spacing</dt> 3630<dd>text word spacing </dd> 3631 3632<dd> </dd> 3633</dl> 3634<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetTextUnderColor">DrawSetTextUnderColor</a></h2> 3635 3636<p>DrawSetTextUnderColor() specifies the color of a background rectangle to place under text annotations.</p> 3637 3638<p>The format of the DrawSetTextUnderColor method is:</p> 3639 3640<pre class="text"> 3641void DrawSetTextUnderColor(DrawingWand *wand, 3642 const PixelWand *under_wand) 3643</pre> 3644 3645<p>A description of each parameter follows:</p> 3646 3647<dd> 3648</dd> 3649 3650<dd> </dd> 3651<dl class="dl-horizontal"> 3652<dt>wand</dt> 3653<dd>the drawing wand. </dd> 3654 3655<dd> </dd> 3656<dt>under_wand</dt> 3657<dd>text under wand. </dd> 3658 3659<dd> </dd> 3660</dl> 3661<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetVectorGraphics">DrawSetVectorGraphics</a></h2> 3662 3663<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> 3664 3665<p>The format of the DrawSetVectorGraphics method is:</p> 3666 3667<pre class="text"> 3668MagickBooleanType DrawSetVectorGraphics(DrawingWand *wand, 3669 const char *xml) 3670</pre> 3671 3672<p>A description of each parameter follows:</p> 3673 3674<dd> 3675</dd> 3676 3677<dd> </dd> 3678<dl class="dl-horizontal"> 3679<dt>wand</dt> 3680<dd>the drawing wand. </dd> 3681 3682<dd> </dd> 3683<dt>xml</dt> 3684<dd>the drawing wand XML. </dd> 3685 3686<dd> </dd> 3687</dl> 3688<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSkewX">DrawSkewX</a></h2> 3689 3690<p>DrawSkewX() skews the current coordinate system in the horizontal direction.</p> 3691 3692<p>The format of the DrawSkewX method is:</p> 3693 3694<pre class="text"> 3695void DrawSkewX(DrawingWand *wand,const double degrees) 3696</pre> 3697 3698<p>A description of each parameter follows:</p> 3699 3700<dd> 3701</dd> 3702 3703<dd> </dd> 3704<dl class="dl-horizontal"> 3705<dt>wand</dt> 3706<dd>the drawing wand. </dd> 3707 3708<dd> </dd> 3709<dt>degrees</dt> 3710<dd>number of degrees to skew the coordinates </dd> 3711 3712<dd> </dd> 3713</dl> 3714<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSkewY">DrawSkewY</a></h2> 3715 3716<p>DrawSkewY() skews the current coordinate system in the vertical direction.</p> 3717 3718<p>The format of the DrawSkewY method is:</p> 3719 3720<pre class="text"> 3721void DrawSkewY(DrawingWand *wand,const double degrees) 3722</pre> 3723 3724<p>A description of each parameter follows:</p> 3725 3726<dd> 3727</dd> 3728 3729<dd> </dd> 3730<dl class="dl-horizontal"> 3731<dt>wand</dt> 3732<dd>the drawing wand. </dd> 3733 3734<dd> </dd> 3735<dt>degrees</dt> 3736<dd>number of degrees to skew the coordinates </dd> 3737 3738<dd> </dd> 3739</dl> 3740<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawTranslate">DrawTranslate</a></h2> 3741 3742<p>DrawTranslate() applies a translation to the current coordinate system which moves the coordinate system origin to the specified coordinate.</p> 3743 3744<p>The format of the DrawTranslate method is:</p> 3745 3746<pre class="text"> 3747void DrawTranslate(DrawingWand *wand,const double x, 3748 const double y) 3749</pre> 3750 3751<p>A description of each parameter follows:</p> 3752 3753<dd> 3754</dd> 3755 3756<dd> </dd> 3757<dl class="dl-horizontal"> 3758<dt>wand</dt> 3759<dd>the drawing wand. </dd> 3760 3761<dd> </dd> 3762<dt>x</dt> 3763<dd>new x ordinate for coordinate system origin </dd> 3764 3765<dd> </dd> 3766<dt>y</dt> 3767<dd>new y ordinate for coordinate system origin </dd> 3768 3769<dd> </dd> 3770</dl> 3771<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="DrawSetViewbox">DrawSetViewbox</a></h2> 3772 3773<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> 3774 3775<p>The format of the DrawSetViewbox method is:</p> 3776 3777<pre class="text"> 3778void DrawSetViewbox(DrawingWand *wand,const double x1,const double y1, 3779 const double x2,const double y2) 3780</pre> 3781 3782<p>A description of each parameter follows:</p> 3783 3784<dd> 3785</dd> 3786 3787<dd> </dd> 3788<dl class="dl-horizontal"> 3789<dt>wand</dt> 3790<dd>the drawing wand. </dd> 3791 3792<dd> </dd> 3793<dt>x1</dt> 3794<dd>left x ordinate </dd> 3795 3796<dd> </dd> 3797<dt>y1</dt> 3798<dd>top y ordinate </dd> 3799 3800<dd> </dd> 3801<dt>x2</dt> 3802<dd>right x ordinate </dd> 3803 3804<dd> </dd> 3805<dt>y2</dt> 3806<dd>bottom y ordinate </dd> 3807 3808<dd> </dd> 3809</dl> 3810<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="IsDrawingWand">IsDrawingWand</a></h2> 3811 3812<p>IsDrawingWand() returns MagickTrue if the wand is verified as a drawing wand.</p> 3813 3814<p>The format of the IsDrawingWand method is:</p> 3815 3816<pre class="text"> 3817MagickBooleanType IsDrawingWand(const DrawingWand *wand) 3818</pre> 3819 3820<p>A description of each parameter follows:</p> 3821 3822<dd> 3823</dd> 3824 3825<dd> </dd> 3826<dl class="dl-horizontal"> 3827<dt>wand</dt> 3828<dd>the drawing wand. </dd> 3829 3830<dd> </dd> 3831</dl> 3832<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="NewDrawingWand">NewDrawingWand</a></h2> 3833 3834<p>NewDrawingWand() returns a drawing wand required for all other methods in the API.</p> 3835 3836<p>The format of the NewDrawingWand method is:</p> 3837 3838<pre class="text"> 3839DrawingWand *NewDrawingWand(void) 3840</pre> 3841 3842<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="PeekDrawingWand">PeekDrawingWand</a></h2> 3843 3844<p>PeekDrawingWand() returns the current drawing wand.</p> 3845 3846<p>The format of the PeekDrawingWand method is:</p> 3847 3848<pre class="text"> 3849DrawInfo *PeekDrawingWand(const DrawingWand *wand) 3850</pre> 3851 3852<p>A description of each parameter follows:</p> 3853 3854<dd> 3855</dd> 3856 3857<dd> </dd> 3858<dl class="dl-horizontal"> 3859<dt>wand</dt> 3860<dd>the drawing wand. </dd> 3861 3862<dd> </dd> 3863</dl> 3864<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="PopDrawingWand">PopDrawingWand</a></h2> 3865 3866<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> 3867 3868<p>The format of the PopDrawingWand method is:</p> 3869 3870<pre class="text"> 3871MagickBooleanType PopDrawingWand(DrawingWand *wand) 3872</pre> 3873 3874<p>A description of each parameter follows:</p> 3875 3876<dd> 3877</dd> 3878 3879<dd> </dd> 3880<dl class="dl-horizontal"> 3881<dt>wand</dt> 3882<dd>the drawing wand. </dd> 3883 3884<dd> </dd> 3885</dl> 3886<h2><a href="../../api/MagickWand/drawing-wand_8c.html" id="PushDrawingWand">PushDrawingWand</a></h2> 3887 3888<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> 3889 3890<p>The format of the PushDrawingWand method is:</p> 3891 3892<pre class="text"> 3893MagickBooleanType PushDrawingWand(DrawingWand *wand) 3894</pre> 3895 3896<p>A description of each parameter follows:</p> 3897 3898<dd> 3899</dd> 3900 3901<dd> </dd> 3902<dl class="dl-horizontal"> 3903<dt>wand</dt> 3904<dd>the drawing wand. </dd> 3905 3906<dd> </dd> 3907</dl> 3908</div> 3909 </div> 3910 </main><!-- /.container --> 3911 <footer class="magick-footer"> 3912 <p><a href="../../www/security-policy.html">Security</a> • 3913 <a href="../../www/architecture.html">Architecture</a> • 3914 <a href="../../www/links.html">Related</a> • 3915 <a href="../../www/sitemap.html">Sitemap</a> 3916 3917 <a href="drawing-wand.html#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../../images/wand.ico"/></a> 3918 3919 <a href="http://pgp.mit.edu/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> • 3920 <a href="../../www/support.html">Donate</a> • 3921 <a href="../../www/contact.html">Contact Us</a> 3922 <br/> 3923 <small>© 1999-2019 ImageMagick Studio LLC</small></p> 3924 </footer> 3925 3926 <!-- Javascript assets --> 3927 <script src="../assets/magick.js" crossorigin="anonymous"></script> 3928 <script>window.jQuery || document.write('<script src="https://localhost/ajax/libs/jquery/3.3.1/jquery.min.js"><\/script>')</script> 3929</body> 3930</html> 3931<!-- Magick Cache 2nd January 2019 09:18 -->