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