blob: 59262571cffc34028b7b9e1f88bb836254a54e91 [file] [log] [blame]
cristydcca3fa2010-12-29 21:50:07 +00001<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
cristy2bd2a982011-02-15 00:52:58 +00003<html version="-//W3C//DTD XHTML 1.1//EN"
4 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xsi:schemaLocation="http://www.w3.org/1999/xhtml
7 http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
cristy3eaa0ef2010-03-06 20:35:26 +00008<head>
cristy3c98a4f2010-08-13 20:09:41 +00009 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
10 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>
cristyffb69ed2010-12-25 00:06:48 +000011 <title>ImageMagick: MagickWand, C API for ImageMagick: Drawing Wand Methods</title>
cristy3ed852e2009-09-05 21:47:34 +000012 <meta http-equiv="Content-Language" content="en-US"/>
13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
14 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
cristy3c98a4f2010-08-13 20:09:41 +000015 <meta name="Application-name" content="ImageMagick"/>
cristye6e84152011-06-06 14:16:49 +000016 <meta name="Description" content="Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition resize, rotate, shear, distort and transform images automagically."/>
cristy3c98a4f2010-08-13 20:09:41 +000017 <meta name="Application-url" content="http://www.imagemagick.org"/>
cristy3ed852e2009-09-05 21:47:34 +000018 <meta name="Generator" content="PHP"/>
cristye6e84152011-06-06 14:16:49 +000019 <meta name="Keywords" content="magickwc, api, for, imagemagick:, drawing, wmethods, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Image, Processing, Automagically"/>
cristy3ed852e2009-09-05 21:47:34 +000020 <meta name="Rating" content="GENERAL"/>
21 <meta name="Robots" content="INDEX, FOLLOW"/>
22 <meta name="Generator" content="ImageMagick Studio LLC"/>
23 <meta name="Author" content="ImageMagick Studio LLC"/>
24 <meta name="Revisit-after" content="2 DAYS"/>
25 <meta name="Resource-type" content="document"/>
cristy4103d562010-12-10 01:38:54 +000026 <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/>
cristy3ed852e2009-09-05 21:47:34 +000027 <meta name="Distribution" content="Global"/>
cristydcca3fa2010-12-29 21:50:07 +000028 <link rel="icon" href="../../images/wand.png"/>
cristy3c98a4f2010-08-13 20:09:41 +000029 <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/>
30 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
cristy7a40ba82011-01-08 20:31:18 +000031 <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
cristy3c98a4f2010-08-13 20:09:41 +000032 <style type="text/css" media="all">
33 @import url("../../www/magick.css");
34 </style>
cristydcca3fa2010-12-29 21:50:07 +000035 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
cristy361f4662010-12-31 23:02:52 +000036 <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"></script>
37 <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />
38 <script type="text/javascript">
39 $(document).ready(function() {
40 $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
41 'transitionIn' : 'elastic',
42 'transitionOut' : 'elastic',
43 'overlayShow' : false,
44 'opacity' : true
45 });
46 });
47 </script>
cristy3eaa0ef2010-03-06 20:35:26 +000048</head>
49
50<body id="www-imagemagick-org">
51<div class="titlebar">
cristyb52981c2011-03-19 17:09:31 +000052<div style="margin: 17px auto; float: left;">
53 <script type="text/javascript">
54 <!--
55 google_ad_client = "pub-3129977114552745";
56 google_ad_slot = "5439289906";
57 google_ad_width = 728;
58 google_ad_height = 90;
59 //-->
60 </script>
61 <script type="text/javascript"
62 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
63 </script>
64</div>
cristy3eaa0ef2010-03-06 20:35:26 +000065<a href="http://www.imagemagick.org/discourse-server/">
cristyaf8d6652011-02-04 21:57:45 +000066 <img src="../../images/logo.jpg"
67 alt="ImageMagick Logo"
cristy178edaf2011-01-23 03:42:39 +000068 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
cristy3eaa0ef2010-03-06 20:35:26 +000069<a href="../../index.html">
cristyaf8d6652011-02-04 21:57:45 +000070 <img src="../../images/sprite.jpg"
71 alt="ImageMagick Sprite"
cristy3eaa0ef2010-03-06 20:35:26 +000072 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
73</div>
74
cristyce69bb02010-07-27 19:49:46 +000075<div class="westbar">
cristy3eaa0ef2010-03-06 20:35:26 +000076
cristy3ed852e2009-09-05 21:47:34 +000077<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000078 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
cristy3ed852e2009-09-05 21:47:34 +000079</div>
cristy3eaa0ef2010-03-06 20:35:26 +000080<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +000081<div class="menu">
cristybb503372010-05-27 20:51:26 +000082 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
83</div>
84<div class="sub">
85 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
86</div>
87<div class="sub">
88 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
89</div>
90<div class="sub">
cristye6e84152011-06-06 14:16:49 +000091 <a title="Binary Release: iOS" href="../../www/binary-releases.html#iOS">iOS</a>
cristyda16f162011-02-19 23:52:17 +000092</div>
93<div class="sub">
cristybb503372010-05-27 20:51:26 +000094 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
95</div>
96<div class="sep"></div>
97<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000098 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
cristy3ed852e2009-09-05 21:47:34 +000099</div>
100<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000101 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
cristy3ed852e2009-09-05 21:47:34 +0000102</div>
103<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000104 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
cristy3ed852e2009-09-05 21:47:34 +0000105</div>
106<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000107 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
cristy3ed852e2009-09-05 21:47:34 +0000108</div>
109<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000110 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
cristy3ed852e2009-09-05 21:47:34 +0000111</div>
112<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000113 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
cristy3ed852e2009-09-05 21:47:34 +0000114</div>
115<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000116 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
cristy3ed852e2009-09-05 21:47:34 +0000117</div>
118<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000119 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
cristy3ed852e2009-09-05 21:47:34 +0000120</div>
121<div class="sub">
cristydcca3fa2010-12-29 21:50:07 +0000122 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
cristy3ed852e2009-09-05 21:47:34 +0000123</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000124<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000125<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000126 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
cristy3ed852e2009-09-05 21:47:34 +0000127</div>
128<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000129 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
cristy3ed852e2009-09-05 21:47:34 +0000130</div>
131<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000132 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
cristy3ed852e2009-09-05 21:47:34 +0000133 </div>
134<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000135 <a title="Resources" href="../../www/resources.html">Resources</a>
cristy3ed852e2009-09-05 21:47:34 +0000136</div>
cristybb503372010-05-27 20:51:26 +0000137<div class="menu">
138 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
139</div>
cristy3ed852e2009-09-05 21:47:34 +0000140<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000141 <a title="Download" href="../../www/download.html">Download</a>
cristy3ed852e2009-09-05 21:47:34 +0000142</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000143<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000144<div class="menu">
cristy52923442011-01-15 22:54:31 +0000145 <a title="Search" href="../../www/search.html">Search</a>
cristy3ed852e2009-09-05 21:47:34 +0000146</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000147<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000148<div class="menu">
cristyffb69ed2010-12-25 00:06:48 +0000149 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
cristy3ed852e2009-09-05 21:47:34 +0000150</div>
151<div class="sub">
cristyffb69ed2010-12-25 00:06:48 +0000152 <a title="Site Map: Links" href="../../www/links.html">Links</a>
cristy3ed852e2009-09-05 21:47:34 +0000153</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000154<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000155<div class="menu">
cristy10549a12011-05-15 19:04:46 +0000156 <a rel="follow" title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
cristy3ed852e2009-09-05 21:47:34 +0000157
cristyb52981c2011-03-19 17:09:31 +0000158<a href="http://www.networkredux.com">
159 <img src="../../images/networkredux.png" alt="[sponsor]"
160 style="margin-top: 4px; margin-left: 4px; border: 0px; float: left;" /></a>
cristy3ed852e2009-09-05 21:47:34 +0000161<div class="sponsbox">
cristy178edaf2011-01-23 03:42:39 +0000162<div class="sponsor">
cristy81492d62011-06-07 16:41:42 +0000163 <a rel="follow" title="Sponsor: Web Hosting" href="http://www.micfo.com">Web Hosting</a><!-- 209901010090s golestan -->
164</div>
165<div class="sponsor">
166 <a rel="follow" title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
167</div>
168<div class="sponsor">
cristyba1758d2011-06-03 01:29:12 +0000169 <a rel="follow" title="Sponsor: Web Hosting Deals" href="http://www.webhostingdeals.org">Web Hosting Deals</a><!-- 201111010270 chee.hoa darin -->
170</div>
171<div class="sponsor">
172 <a rel="follow" title="Sponsor: Web Hosting Reviews" href="http://www.webhostingsecretrevealed.com">Web Hosting Secret Revealed</a><!-- 201204010540 iamchee jerry -->
173</div>
174<div class="sponsor">
cristy4bf6e232011-05-21 01:43:33 +0000175 <a rel="follow" title="Sponsor: Web Hosting Break" href="http://www.webhostingbreak.com">Web Hosting Break</a><!-- 201109010090 ian@ian-m... -->
cristy45dbd322011-03-27 16:40:38 +0000176</div>
177<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000178 <a rel="follow" title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201303011500 r.leo -->
cristy4c54bbb2011-03-17 13:53:13 +0000179</div>
180<div class="sponsor">
cristy575d5ee2011-05-24 01:59:01 +0000181 <a rel="follow" title="Sponsor: Website Hosting" href="http://www.hostreviewgeeks.com">Website Hosting</a><!-- 201110010090 alexanian media -->
cristy4bf6e232011-05-21 01:43:33 +0000182</div>
183<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000184 <a rel="follow" title="Sponsor: Hotel München" href="http://www.messehotel-erb-muenchen.de">Hotel München</a><!-- 201111010450 cerb -->
cristyaf8d6652011-02-04 21:57:45 +0000185</div>
186<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000187 <a rel="follow" title="Sponsor: Best Web Hosting" href="http://webhostinggeeks.com">Best Web Hosting</a><!-- 201110010720 -->
cristy7d52cd62010-10-01 17:26:59 +0000188</div>
189<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000190 <a rel="follow" title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
cristyee742642011-02-26 02:49:59 +0000191</div>
192<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000193 <a rel="follow" title="Sponsor: Web Hosting Reviews" href="http://www.webhostingmasters.com">Web Hosting Reviews</a><!-- 201107011500 affliatelabel -->
cristy851dbce2010-08-06 21:40:00 +0000194</div>
cristyec6b4752011-01-08 03:16:23 +0000195<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000196 <a rel="follow" title="Sponsor: Web Hosting Ratings" href="http://webhostingrating.com">Web Hosting Ratings</a><!-- 201110010720 -->
cristybaacd172011-04-30 23:11:03 +0000197</div>
198<div class="sponsor">
cristy2dcd6822011-06-13 16:21:20 +0000199 <a rel="follow" title="Kaffeevollautomaten Reparatur Kundendienst Berlin" href="http://www.kaffeemaschinen-center.de">Kaffeevollautomaten Reparatur Berlin</a><!-- 2011090100025 c.karule-->
cristyec6b4752011-01-08 03:16:23 +0000200</div>
cristy3ed852e2009-09-05 21:47:34 +0000201</div>
202</div>
cristyce69bb02010-07-27 19:49:46 +0000203</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000204
cristyce69bb02010-07-27 19:49:46 +0000205<div class="eastbar">
cristyb52981c2011-03-19 17:09:31 +0000206
cristy3eaa0ef2010-03-06 20:35:26 +0000207</div>
208
209<div class="main">
210
cristy350dea42011-02-15 17:31:04 +0000211<h1>Module drawing-wand Methods</h1>
cristy6f77f692011-02-15 15:31:39 +0000212<p class="navigation-index">[<a href="#ClearDrawingWand">ClearDrawingWand</a> &bull; <a href="#CloneDrawingWand">CloneDrawingWand</a> &bull; <a href="#DestroyDrawingWand">DestroyDrawingWand</a> &bull; <a href="#DrawAffine">DrawAffine</a> &bull; <a href="#DrawAnnotation">DrawAnnotation</a> &bull; <a href="#DrawArc">DrawArc</a> &bull; <a href="#DrawBezier">DrawBezier</a> &bull; <a href="#DrawCircle">DrawCircle</a> &bull; <a href="#DrawClearException">DrawClearException</a> &bull; <a href="#DrawComposite">DrawComposite</a> &bull; <a href="#DrawColor">DrawColor</a> &bull; <a href="#DrawComment">DrawComment</a> &bull; <a href="#DrawEllipse">DrawEllipse</a> &bull; <a href="#DrawGetBorderColor">DrawGetBorderColor</a> &bull; <a href="#DrawGetClipPath">DrawGetClipPath</a> &bull; <a href="#DrawGetClipRule">DrawGetClipRule</a> &bull; <a href="#DrawGetClipUnits">DrawGetClipUnits</a> &bull; <a href="#DrawGetException">DrawGetException</a> &bull; <a href="#DrawGetExceptionType">DrawGetExceptionType</a> &bull; <a href="#DrawGetFillColor">DrawGetFillColor</a> &bull; <a href="#DrawGetFillOpacity">DrawGetFillOpacity</a> &bull; <a href="#DrawGetFillRule">DrawGetFillRule</a> &bull; <a href="#DrawGetFont">DrawGetFont</a> &bull; <a href="#DrawGetFontFamily">DrawGetFontFamily</a> &bull; <a href="#DrawGetFontResolution">DrawGetFontResolution</a> &bull; <a href="#DrawGetFontSize">DrawGetFontSize</a> &bull; <a href="#DrawGetFontStretch">DrawGetFontStretch</a> &bull; <a href="#DrawGetFontStyle">DrawGetFontStyle</a> &bull; <a href="#DrawGetFontWeight">DrawGetFontWeight</a> &bull; <a href="#DrawGetGravity">DrawGetGravity</a> &bull; <a href="#DrawGetOpacity">DrawGetOpacity</a> &bull; <a href="#DrawGetStrokeAntialias">DrawGetStrokeAntialias</a> &bull; <a href="#DrawGetStrokeColor">DrawGetStrokeColor</a> &bull; <a href="#DrawGetStrokeDashArray">DrawGetStrokeDashArray</a> &bull; <a href="#DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a> &bull; <a href="#DrawGetStrokeLineCap">DrawGetStrokeLineCap</a> &bull; <a href="#DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a> &bull; <a href="#DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a> &bull; <a href="#DrawGetStrokeOpacity">DrawGetStrokeOpacity</a> &bull; <a href="#DrawGetStrokeWidth">DrawGetStrokeWidth</a> &bull; <a href="#DrawGetTextAlignment">DrawGetTextAlignment</a> &bull; <a href="#DrawGetTextAntialias">DrawGetTextAntialias</a> &bull; <a href="#DrawGetTextDecoration">DrawGetTextDecoration</a> &bull; <a href="#DrawGetTextEncoding">DrawGetTextEncoding</a> &bull; <a href="#DrawGetTextKerning">DrawGetTextKerning</a> &bull; <a href="#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> &bull; <a href="#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> &bull; <a href="#DrawGetVectorGraphics">DrawGetVectorGraphics</a> &bull; <a href="#DrawGetTextUnderColor">DrawGetTextUnderColor</a> &bull; <a href="#DrawLine">DrawLine</a> &bull; <a href="#DrawMatte">DrawMatte</a> &bull; <a href="#DrawPathClose">DrawPathClose</a> &bull; <a href="#DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a> &bull; <a href="#DrawPathCurveToRelative">DrawPathCurveToRelative</a> &bull; <a href="#DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a> &bull; <a href="#DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a> &bull; <a href="#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> &bull; <a href="#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> &bull; <a href="#DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a> &bull; <a href="#DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a> &bull; <a href="#DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a> &bull; <a href="#DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a> &bull; <a href="#DrawPathFinish">DrawPathFinish</a> &bull; <a href="#DrawPathLineToAbsolute">DrawPathLineToAbsolute</a> &bull; <a href="#DrawPathLineToRelative">DrawPathLineToRelative</a> &bull; <a href="#DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a> &bull; <a href="#DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a> &bull; <a href="#DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a> &bull; <a href="#DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a> &bull; <a href="#DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a> &bull; <a href="#DrawPathMoveToRelative">DrawPathMoveToRelative</a> &bull; <a href="#DrawPathStart">DrawPathStart</a> &bull; <a href="#DrawPoint">DrawPoint</a> &bull; <a href="#DrawPolygon">DrawPolygon</a> &bull; <a href="#DrawPolyline">DrawPolyline</a> &bull; <a href="#DrawPopClipPath">DrawPopClipPath</a> &bull; <a href="#DrawPopDefs">DrawPopDefs</a> &bull; <a href="#DrawPopPattern">DrawPopPattern</a> &bull; <a href="#DrawPushClipPath">DrawPushClipPath</a> &bull; <a href="#DrawPushDefs">DrawPushDefs</a> &bull; <a href="#DrawPushPattern">DrawPushPattern</a> &bull; <a href="#DrawRectangle">DrawRectangle</a> &bull; <a href="#DrawResetVectorGraphics">DrawResetVectorGraphics</a> &bull; <a href="#DrawRotate">DrawRotate</a> &bull; <a href="#DrawRoundRectangle">DrawRoundRectangle</a> &bull; <a href="#DrawScale">DrawScale</a> &bull; <a href="#DrawSetBorderColor">DrawSetBorderColor</a> &bull; <a href="#DrawSetClipPath">DrawSetClipPath</a> &bull; <a href="#DrawSetClipRule">DrawSetClipRule</a> &bull; <a href="#DrawSetClipUnits">DrawSetClipUnits</a> &bull; <a href="#DrawSetFillColor">DrawSetFillColor</a> &bull; <a href="#DrawSetFillOpacity">DrawSetFillOpacity</a> &bull; <a href="#DrawSetFontResolution">DrawSetFontResolution</a> &bull; <a href="#DrawSetOpacity">DrawSetOpacity</a> &bull; <a href="#DrawSetFillPatternURL">DrawSetFillPatternURL</a> &bull; <a href="#DrawSetFillRule">DrawSetFillRule</a> &bull; <a href="#DrawSetFont">DrawSetFont</a> &bull; <a href="#DrawSetFontFamily">DrawSetFontFamily</a> &bull; <a href="#DrawSetFontSize">DrawSetFontSize</a> &bull; <a href="#DrawSetFontStretch">DrawSetFontStretch</a> &bull; <a href="#DrawSetFontStyle">DrawSetFontStyle</a> &bull; <a href="#DrawSetFontWeight">DrawSetFontWeight</a> &bull; <a href="#DrawSetGravity">DrawSetGravity</a> &bull; <a href="#DrawSetStrokeColor">DrawSetStrokeColor</a> &bull; <a href="#DrawSetStrokePatternURL">DrawSetStrokePatternURL</a> &bull; <a href="#DrawSetStrokeAntialias">DrawSetStrokeAntialias</a> &bull; <a href="#DrawSetStrokeDashArray">DrawSetStrokeDashArray</a> &bull; <a href="#DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a> &bull; <a href="#DrawSetStrokeLineCap">DrawSetStrokeLineCap</a> &bull; <a href="#DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a> &bull; <a href="#DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a> &bull; <a href="#DrawSetStrokeOpacity">DrawSetStrokeOpacity</a> &bull; <a href="#DrawSetStrokeWidth">DrawSetStrokeWidth</a> &bull; <a href="#DrawSetTextAlignment">DrawSetTextAlignment</a> &bull; <a href="#DrawSetTextAntialias">DrawSetTextAntialias</a> &bull; <a href="#DrawSetTextDecoration">DrawSetTextDecoration</a> &bull; <a href="#DrawSetTextEncoding">DrawSetTextEncoding</a> &bull; <a href="#DrawSetTextKerning">DrawSetTextKerning</a> &bull; <a href="#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> &bull; <a href="#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> &bull; <a href="#DrawSetTextUnderColor">DrawSetTextUnderColor</a> &bull; <a href="#DrawSetVectorGraphics">DrawSetVectorGraphics</a> &bull; <a href="#DrawSkewX">DrawSkewX</a> &bull; <a href="#DrawSkewY">DrawSkewY</a> &bull; <a href="#DrawTranslate">DrawTranslate</a> &bull; <a href="#DrawSetViewbox">DrawSetViewbox</a> &bull; <a href="#IsDrawingWand">IsDrawingWand</a> &bull; <a href="#NewDrawingWand">NewDrawingWand</a> &bull; <a href="#PeekDrawingWand">PeekDrawingWand</a> &bull; <a href="#PopDrawingWand">PopDrawingWand</a> &bull; <a href="#PushDrawingWand">PushDrawingWand</a>]</p>
cristy3ed852e2009-09-05 21:47:34 +0000213
cristy350dea42011-02-15 17:31:04 +0000214<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="ClearDrawingWand">ClearDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000215<div class="doc-section">
216
cristyacc04882011-05-04 23:03:43 +0000217<p>ClearDrawingWand() clears resources associated with the drawing wand.</p>
cristy6f77f692011-02-15 15:31:39 +0000218
219<p>The format of the ClearDrawingWand method is:</p>
220
221<pre class="code">
cristyacc04882011-05-04 23:03:43 +0000222 void ClearDrawingWand(DrawingWand *wand)
cristy6f77f692011-02-15 15:31:39 +0000223</pre>
224
225<p>A description of each parameter follows:</p>
226
227<h5>wand</h5>
cristyacc04882011-05-04 23:03:43 +0000228<p>the drawing wand to clear.</p>
cristy6f77f692011-02-15 15:31:39 +0000229
230 </div>
cristy350dea42011-02-15 17:31:04 +0000231<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="CloneDrawingWand">CloneDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000232<div class="doc-section">
233
234<p>CloneDrawingWand() makes an exact copy of the specified wand.</p>
235
236<p>The format of the CloneDrawingWand method is:</p>
237
238<pre class="code">
239 DrawingWand *CloneDrawingWand(const DrawingWand *wand)
240</pre>
241
242<p>A description of each parameter follows:</p>
243
244<h5>wand</h5>
245<p>the magick wand.</p>
246
247 </div>
cristy350dea42011-02-15 17:31:04 +0000248<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DestroyDrawingWand">DestroyDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000249<div class="doc-section">
250
251<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>
252
253<p>The format of the DestroyDrawingWand method is:</p>
254
255<pre class="code">
256 DrawingWand *DestroyDrawingWand(DrawingWand *wand)
257</pre>
258
259<p>A description of each parameter follows:</p>
260
261<h5>wand</h5>
cristyacc04882011-05-04 23:03:43 +0000262<p>the drawing wand to destroy.</p>
cristy6f77f692011-02-15 15:31:39 +0000263
264 </div>
cristy350dea42011-02-15 17:31:04 +0000265<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawAffine">DrawAffine</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000266<div class="doc-section">
267
268<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>
269
270<p>The format of the DrawAffine method is:</p>
271
272<pre class="code">
273 void DrawAffine(DrawingWand *wand,const AffineMatrix *affine)
274</pre>
275
276<p>A description of each parameter follows:</p>
277
278<h5>wand</h5>
279<p>Drawing wand</p>
280
281<h5>affine</h5>
282<p>Affine matrix parameters</p>
283
284 </div>
cristy350dea42011-02-15 17:31:04 +0000285<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawAnnotation">DrawAnnotation</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000286<div class="doc-section">
287
288<p>DrawAnnotation() draws text on the image.</p>
289
290<p>The format of the DrawAnnotation method is:</p>
291
292<pre class="code">
293 void DrawAnnotation(DrawingWand *wand,const double x,
294 const double y,const unsigned char *text)
295</pre>
296
297<p>A description of each parameter follows:</p>
298
299<h5>wand</h5>
300<p>the drawing wand.</p>
301
302<h5>x</h5>
303<p>x ordinate to left of text</p>
304
305<h5>y</h5>
306<p>y ordinate to text baseline</p>
307
308<h5>text</h5>
309<p>text to draw</p>
310
311 </div>
cristy350dea42011-02-15 17:31:04 +0000312<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawArc">DrawArc</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000313<div class="doc-section">
314
315<p>DrawArc() draws an arc falling within a specified bounding rectangle on the image.</p>
316
317<p>The format of the DrawArc method is:</p>
318
319<pre class="code">
320 void DrawArc(DrawingWand *wand,const double sx,const double sy,
321 const double ex,const double ey,const double sd,const double ed)
322</pre>
323
324<p>A description of each parameter follows:</p>
325
326<h5>wand</h5>
327<p>the drawing wand.</p>
328
329<h5>sx</h5>
330<p>starting x ordinate of bounding rectangle</p>
331
332<h5>sy</h5>
333<p>starting y ordinate of bounding rectangle</p>
334
335<h5>ex</h5>
336<p>ending x ordinate of bounding rectangle</p>
337
338<h5>ey</h5>
339<p>ending y ordinate of bounding rectangle</p>
340
341<h5>sd</h5>
342<p>starting degrees of rotation</p>
343
344<h5>ed</h5>
345<p>ending degrees of rotation</p>
346
347 </div>
cristy350dea42011-02-15 17:31:04 +0000348<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawBezier">DrawBezier</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000349<div class="doc-section">
350
351<p>DrawBezier() draws a bezier curve through a set of points on the image.</p>
352
353<p>The format of the DrawBezier method is:</p>
354
355<pre class="code">
356 void DrawBezier(DrawingWand *wand,
357 const size_t number_coordinates,const PointInfo *coordinates)
358</pre>
359
360<p>A description of each parameter follows:</p>
361
362<h5>wand</h5>
363<p>the drawing wand.</p>
364
365<h5>number_coordinates</h5>
366<p>number of coordinates</p>
367
368<h5>coordinates</h5>
369<p>coordinates</p>
370
371 </div>
cristy350dea42011-02-15 17:31:04 +0000372<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawCircle">DrawCircle</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000373<div class="doc-section">
374
375<p>DrawCircle() draws a circle on the image.</p>
376
377<p>The format of the DrawCircle method is:</p>
378
379<pre class="code">
380 void DrawCircle(DrawingWand *wand,const double ox,
381 const double oy,const double px, const double py)
382</pre>
383
384<p>A description of each parameter follows:</p>
385
386<h5>wand</h5>
387<p>the drawing wand.</p>
388
389<h5>ox</h5>
390<p>origin x ordinate</p>
391
392<h5>oy</h5>
393<p>origin y ordinate</p>
394
395<h5>px</h5>
396<p>perimeter x ordinate</p>
397
398<h5>py</h5>
399<p>perimeter y ordinate</p>
400
401 </div>
cristy350dea42011-02-15 17:31:04 +0000402<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawClearException">DrawClearException</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000403<div class="doc-section">
404
405<p>DrawClearException() clear any exceptions associated with the wand.</p>
406
407<p>The format of the DrawClearException method is:</p>
408
409<pre class="code">
410 MagickBooleanType DrawClearException(DrawWand *wand)
411</pre>
412
413<p>A description of each parameter follows:</p>
414
415<h5>wand</h5>
416<p>the drawing wand.</p>
417
418 </div>
cristy350dea42011-02-15 17:31:04 +0000419<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawComposite">DrawComposite</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000420<div class="doc-section">
421
422<p>DrawComposite() composites an image onto the current image, using the specified composition operator, specified position, and at the specified size.</p>
423
424<p>The format of the DrawComposite method is:</p>
425
426<pre class="code">
427 MagickBooleanType DrawComposite(DrawingWand *wand,
428 const CompositeOperator compose,const double x,
429 const double y,const double width,const double height,
430 MagickWand *magick_wand)
431</pre>
432
433<p>A description of each parameter follows:</p>
434
435<h5>wand</h5>
436<p>the drawing wand.</p>
437
438<h5>compose</h5>
439<p>composition operator</p>
440
441<h5>x</h5>
442<p>x ordinate of top left corner</p>
443
444<h5>y</h5>
445<p>y ordinate of top left corner</p>
446
447<h5>width</h5>
448<p>Width to resize image to prior to compositing. Specify zero to use existing width.</p>
449
450<h5>height</h5>
451<p>Height to resize image to prior to compositing. Specify zero to use existing height.</p>
452
453<h5>magick_wand</h5>
454<p>Image to composite is obtained from this wand.</p>
455
456 </div>
cristy350dea42011-02-15 17:31:04 +0000457<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawColor">DrawColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000458<div class="doc-section">
459
460<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>
461
462<pre class="text">
463 PointMethod: Recolors the target pixel
464 ReplaceMethod: Recolor any pixel that matches the target pixel.
465 FloodfillMethod: Recolors target pixels and matching neighbors.
466 ResetMethod: Recolor all pixels.
467</pre>
468
469<p>The format of the DrawColor method is:</p>
470
471<pre class="code">
472 void DrawColor(DrawingWand *wand,const double x,const double y,
473 const PaintMethod paint_method)
474</pre>
475
476<p>A description of each parameter follows:</p>
477
478<h5>wand</h5>
479<p>the drawing wand.</p>
480
481<h5>x</h5>
482<p>x ordinate.</p>
483
484<h5>y</h5>
485<p>y ordinate.</p>
486
487<h5>paint_method</h5>
488<p>paint method.</p>
489
490 </div>
cristy350dea42011-02-15 17:31:04 +0000491<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawComment">DrawComment</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000492<div class="doc-section">
493
494<p>DrawComment() adds a comment to a vector output stream.</p>
495
496<p>The format of the DrawComment method is:</p>
497
498<pre class="code">
499 void DrawComment(DrawingWand *wand,const char *comment)
500</pre>
501
502<p>A description of each parameter follows:</p>
503
504<h5>wand</h5>
505<p>the drawing wand.</p>
506
507<h5>comment</h5>
508<p>comment text</p>
509
510 </div>
cristy350dea42011-02-15 17:31:04 +0000511<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawEllipse">DrawEllipse</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000512<div class="doc-section">
513
514<p>DrawEllipse() draws an ellipse on the image.</p>
515
516<p>The format of the DrawEllipse method is:</p>
517
518<pre class="code">
519 void DrawEllipse(DrawingWand *wand,const double ox,const double oy,
520 const double rx,const double ry,const double start,const double end)
521</pre>
522
523<p>A description of each parameter follows:</p>
524
525<h5>wand</h5>
526<p>the drawing wand.</p>
527
528<h5>ox</h5>
529<p>origin x ordinate</p>
530
531<h5>oy</h5>
532<p>origin y ordinate</p>
533
534<h5>rx</h5>
535<p>radius in x</p>
536
537<h5>ry</h5>
538<p>radius in y</p>
539
540<h5>start</h5>
541<p>starting rotation in degrees</p>
542
543<h5>end</h5>
544<p>ending rotation in degrees</p>
545
546 </div>
cristy350dea42011-02-15 17:31:04 +0000547<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetBorderColor">DrawGetBorderColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000548<div class="doc-section">
549
550<p>DrawGetBorderColor() returns the border color used for drawing bordered objects.</p>
551
552<p>The format of the DrawGetBorderColor method is:</p>
553
554<pre class="code">
555 void DrawGetBorderColor(const DrawingWand *wand,
556 PixelWand *border_color)
557</pre>
558
559<p>A description of each parameter follows:</p>
560
561<h5>wand</h5>
562<p>the drawing wand.</p>
563
564<h5>border_color</h5>
565<p>Return the border color.</p>
566
567 </div>
cristy350dea42011-02-15 17:31:04 +0000568<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipPath">DrawGetClipPath</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000569<div class="doc-section">
570
571<p>DrawGetClipPath() obtains the current clipping path ID. The value returned must be deallocated by the user when it is no longer needed.</p>
572
573<p>The format of the DrawGetClipPath method is:</p>
574
575<pre class="code">
576 char *DrawGetClipPath(const DrawingWand *wand)
577</pre>
578
579<p>A description of each parameter follows:</p>
580
581<h5>wand</h5>
582<p>the drawing wand.</p>
583
584 </div>
cristy350dea42011-02-15 17:31:04 +0000585<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipRule">DrawGetClipRule</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000586<div class="doc-section">
587
588<p>DrawGetClipRule() returns the current polygon fill rule to be used by the clipping path.</p>
589
590<p>The format of the DrawGetClipRule method is:</p>
591
592<pre class="code">
593 FillRule DrawGetClipRule(const DrawingWand *wand)
594</pre>
595
596<p>A description of each parameter follows:</p>
597
598<h5>wand</h5>
599<p>the drawing wand.</p>
600
601 </div>
cristy350dea42011-02-15 17:31:04 +0000602<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipUnits">DrawGetClipUnits</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000603<div class="doc-section">
604
605<p>DrawGetClipUnits() returns the interpretation of clip path units.</p>
606
607<p>The format of the DrawGetClipUnits method is:</p>
608
609<pre class="code">
610 ClipPathUnits DrawGetClipUnits(const DrawingWand *wand)
611</pre>
612
613<p>A description of each parameter follows:</p>
614
615<h5>wand</h5>
616<p>the drawing wand.</p>
617
618 </div>
cristy350dea42011-02-15 17:31:04 +0000619<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetException">DrawGetException</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000620<div class="doc-section">
621
622<p>DrawGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>
623
624<p>The format of the DrawGetException method is:</p>
625
626<pre class="code">
627 char *DrawGetException(const DrawWand *wand,
628 ExceptionType *severity)
629</pre>
630
631<p>A description of each parameter follows:</p>
632
633<h5>wand</h5>
634<p>the drawing wand.</p>
635
636<h5>severity</h5>
637<p>the severity of the error is returned here.</p>
638
639 </div>
cristy350dea42011-02-15 17:31:04 +0000640<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetExceptionType">DrawGetExceptionType</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000641<div class="doc-section">
642
643<p>DrawGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p>
644
645<p>The format of the DrawGetExceptionType method is:</p>
646
647<pre class="code">
648 ExceptionType DrawGetExceptionType(const DrawWand *wand)
649</pre>
650
651<p>A description of each parameter follows:</p>
652
653<h5>wand</h5>
654<p>the magick wand.</p>
655
656 </div>
cristy350dea42011-02-15 17:31:04 +0000657<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillColor">DrawGetFillColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000658<div class="doc-section">
659
660<p>DrawGetFillColor() returns the fill color used for drawing filled objects.</p>
661
662<p>The format of the DrawGetFillColor method is:</p>
663
664<pre class="code">
665 void DrawGetFillColor(const DrawingWand *wand,
666 PixelWand *fill_color)
667</pre>
668
669<p>A description of each parameter follows:</p>
670
671<h5>wand</h5>
672<p>the drawing wand.</p>
673
674<h5>fill_color</h5>
675<p>Return the fill color.</p>
676
677 </div>
cristy350dea42011-02-15 17:31:04 +0000678<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillOpacity">DrawGetFillOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000679<div class="doc-section">
680
681<p>DrawGetFillOpacity() returns the opacity used when drawing using the fill color or fill texture. Fully opaque is 1.0.</p>
682
683<p>The format of the DrawGetFillOpacity method is:</p>
684
685<pre class="code">
686 double DrawGetFillOpacity(const DrawingWand *wand)
687</pre>
688
689<p>A description of each parameter follows:</p>
690
691<h5>wand</h5>
692<p>the drawing wand.</p>
693
694 </div>
cristy350dea42011-02-15 17:31:04 +0000695<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillRule">DrawGetFillRule</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000696<div class="doc-section">
697
698<p>DrawGetFillRule() returns the fill rule used while drawing polygons.</p>
699
700<p>The format of the DrawGetFillRule method is:</p>
701
702<pre class="code">
703 FillRule DrawGetFillRule(const DrawingWand *wand)
704</pre>
705
706<p>A description of each parameter follows:</p>
707
708<h5>wand</h5>
709<p>the drawing wand.</p>
710
711 </div>
cristy350dea42011-02-15 17:31:04 +0000712<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFont">DrawGetFont</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000713<div class="doc-section">
714
715<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>
716
717<p>The format of the DrawGetFont method is:</p>
718
719<pre class="code">
720 char *DrawGetFont(const DrawingWand *wand)
721</pre>
722
723<p>A description of each parameter follows:</p>
724
725<h5>wand</h5>
726<p>the drawing wand.</p>
727
728 </div>
cristy350dea42011-02-15 17:31:04 +0000729<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontFamily">DrawGetFontFamily</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000730<div class="doc-section">
731
732<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>
733
734<p>The format of the DrawGetFontFamily method is:</p>
735
736<pre class="code">
737 char *DrawGetFontFamily(const DrawingWand *wand)
738</pre>
739
740<p>A description of each parameter follows:</p>
741
742<h5>wand</h5>
743<p>the drawing wand.</p>
744
745 </div>
cristy350dea42011-02-15 17:31:04 +0000746<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontResolution">DrawGetFontResolution</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000747<div class="doc-section">
748
749<p>DrawGetFontResolution() gets the image X and Y resolution.</p>
750
751<p>The format of the DrawGetFontResolution method is:</p>
752
753<pre class="code">
754 DrawBooleanType DrawGetFontResolution(const DrawingWand *wand,
755 double *x,double *y)
756</pre>
757
758<p>A description of each parameter follows:</p>
759
760<h5>wand</h5>
761<p>the magick wand.</p>
762
763<h5>x</h5>
764<p>the x-resolution.</p>
765
766<h5>y</h5>
767<p>the y-resolution.</p>
768
769 </div>
cristy350dea42011-02-15 17:31:04 +0000770<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontSize">DrawGetFontSize</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000771<div class="doc-section">
772
773<p>DrawGetFontSize() returns the font pointsize used when annotating with text.</p>
774
775<p>The format of the DrawGetFontSize method is:</p>
776
777<pre class="code">
778 double DrawGetFontSize(const DrawingWand *wand)
779</pre>
780
781<p>A description of each parameter follows:</p>
782
783<h5>wand</h5>
784<p>the drawing wand.</p>
785
786 </div>
cristy350dea42011-02-15 17:31:04 +0000787<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontStretch">DrawGetFontStretch</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000788<div class="doc-section">
789
790<p>DrawGetFontStretch() returns the font stretch used when annotating with text.</p>
791
792<p>The format of the DrawGetFontStretch method is:</p>
793
794<pre class="code">
795 StretchType DrawGetFontStretch(const DrawingWand *wand)
796</pre>
797
798<p>A description of each parameter follows:</p>
799
800<h5>wand</h5>
801<p>the drawing wand.</p>
802
803 </div>
cristy350dea42011-02-15 17:31:04 +0000804<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontStyle">DrawGetFontStyle</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000805<div class="doc-section">
806
807<p>DrawGetFontStyle() returns the font style used when annotating with text.</p>
808
809<p>The format of the DrawGetFontStyle method is:</p>
810
811<pre class="code">
812 StyleType DrawGetFontStyle(const DrawingWand *wand)
813</pre>
814
815<p>A description of each parameter follows:</p>
816
817<h5>wand</h5>
818<p>the drawing wand.</p>
819
820 </div>
cristy350dea42011-02-15 17:31:04 +0000821<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontWeight">DrawGetFontWeight</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000822<div class="doc-section">
823
824<p>DrawGetFontWeight() returns the font weight used when annotating with text.</p>
825
826<p>The format of the DrawGetFontWeight method is:</p>
827
828<pre class="code">
829 size_t DrawGetFontWeight(const DrawingWand *wand)
830</pre>
831
832<p>A description of each parameter follows:</p>
833
834<h5>wand</h5>
835<p>the drawing wand.</p>
836
837 </div>
cristy350dea42011-02-15 17:31:04 +0000838<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetGravity">DrawGetGravity</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000839<div class="doc-section">
840
841<p>DrawGetGravity() returns the text placement gravity used when annotating with text.</p>
842
843<p>The format of the DrawGetGravity method is:</p>
844
845<pre class="code">
846 GravityType DrawGetGravity(const DrawingWand *wand)
847</pre>
848
849<p>A description of each parameter follows:</p>
850
851<h5>wand</h5>
852<p>the drawing wand.</p>
853
854 </div>
cristy350dea42011-02-15 17:31:04 +0000855<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetOpacity">DrawGetOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000856<div class="doc-section">
857
858<p>DrawGetOpacity() returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.</p>
859
860<p>The format of the DrawGetOpacity method is:</p>
861
862<pre class="code">
863 double DrawGetOpacity(const DrawingWand *wand)
864</pre>
865
866<p>A description of each parameter follows:</p>
867
868<h5>wand</h5>
869<p>the drawing wand.</p>
870
871 </div>
cristy350dea42011-02-15 17:31:04 +0000872<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeAntialias">DrawGetStrokeAntialias</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000873<div class="doc-section">
874
875<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>
876
877<p>The format of the DrawGetStrokeAntialias method is:</p>
878
879<pre class="code">
880 MagickBooleanType DrawGetStrokeAntialias(const DrawingWand *wand)
881</pre>
882
883<p>A description of each parameter follows:</p>
884
885<h5>wand</h5>
886<p>the drawing wand.</p>
887
888 </div>
cristy350dea42011-02-15 17:31:04 +0000889<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeColor">DrawGetStrokeColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000890<div class="doc-section">
891
892<p>DrawGetStrokeColor() returns the color used for stroking object outlines.</p>
893
894<p>The format of the DrawGetStrokeColor method is:</p>
895
896<pre class="code">
897 void DrawGetStrokeColor(const DrawingWand *wand,
898 $ PixelWand *stroke_color)
899</pre>
900
901<p>A description of each parameter follows:</p>
902
903<h5>wand</h5>
904<p>the drawing wand.</p>
905
906<h5>stroke_color</h5>
907<p>Return the stroke color.</p>
908
909 </div>
cristy350dea42011-02-15 17:31:04 +0000910<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeDashArray">DrawGetStrokeDashArray</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000911<div class="doc-section">
912
913<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>
914
915<p>The format of the DrawGetStrokeDashArray method is:</p>
916
917<pre class="code">
918 double *DrawGetStrokeDashArray(const DrawingWand *wand,
919 size_t *number_elements)
920</pre>
921
922<p>A description of each parameter follows:</p>
923
924<h5>wand</h5>
925<p>the drawing wand.</p>
926
927<h5>number_elements</h5>
928<p>address to place number of elements in dash array</p>
929
930 </div>
cristy350dea42011-02-15 17:31:04 +0000931<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000932<div class="doc-section">
933
934<p>DrawGetStrokeDashOffset() returns the offset into the dash pattern to start the dash.</p>
935
936<p>The format of the DrawGetStrokeDashOffset method is:</p>
937
938<pre class="code">
939 double DrawGetStrokeDashOffset(const DrawingWand *wand)
940</pre>
941
942<p>A description of each parameter follows:</p>
943
944<h5>wand</h5>
945<p>the drawing wand.</p>
946
947 </div>
cristy350dea42011-02-15 17:31:04 +0000948<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeLineCap">DrawGetStrokeLineCap</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000949<div class="doc-section">
950
951<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>
952
953<p>The format of the DrawGetStrokeLineCap method is:</p>
954
955<pre class="code">
956 LineCap DrawGetStrokeLineCap(const DrawingWand *wand)
957</pre>
958
959<p>A description of each parameter follows:</p>
960
961<h5>wand</h5>
962<p>the drawing wand.</p>
963
964 </div>
cristy350dea42011-02-15 17:31:04 +0000965<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000966<div class="doc-section">
967
968<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>
969
970<p>The format of the DrawGetStrokeLineJoin method is:</p>
971
972<pre class="code">
973 LineJoin DrawGetStrokeLineJoin(const DrawingWand *wand)
974</pre>
975
976<p>A description of each parameter follows:</p>
977
978<h5>wand</h5>
979<p>the drawing wand.</p>
980
981 </div>
cristy350dea42011-02-15 17:31:04 +0000982<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000983<div class="doc-section">
984
985<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>
986
987<p>The format of the DrawGetStrokeMiterLimit method is:</p>
988
989<pre class="code">
990 size_t DrawGetStrokeMiterLimit(const DrawingWand *wand)
991</pre>
992
993<p>A description of each parameter follows:</p>
994
995<h5>wand</h5>
996<p>the drawing wand.</p>
997
998 </div>
cristy350dea42011-02-15 17:31:04 +0000999<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeOpacity">DrawGetStrokeOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001000<div class="doc-section">
1001
1002<p>DrawGetStrokeOpacity() returns the opacity of stroked object outlines.</p>
1003
1004<p>The format of the DrawGetStrokeOpacity method is:</p>
1005
1006<pre class="code">
1007 double DrawGetStrokeOpacity(const DrawingWand *wand)
1008</pre>
1009
1010<p>A description of each parameter follows:</p>
1011
1012<h5>wand</h5>
1013<p>the drawing wand.</p>
1014
1015 </div>
cristy350dea42011-02-15 17:31:04 +00001016<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeWidth">DrawGetStrokeWidth</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001017<div class="doc-section">
1018
1019<p>DrawGetStrokeWidth() returns the width of the stroke used to draw object outlines.</p>
1020
1021<p>The format of the DrawGetStrokeWidth method is:</p>
1022
1023<pre class="code">
1024 double DrawGetStrokeWidth(const DrawingWand *wand)
1025</pre>
1026
1027<p>A description of each parameter follows:</p>
1028
1029<h5>wand</h5>
1030<p>the drawing wand.</p>
1031
1032 </div>
cristy350dea42011-02-15 17:31:04 +00001033<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextAlignment">DrawGetTextAlignment</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001034<div class="doc-section">
1035
1036<p>DrawGetTextAlignment() returns the alignment applied when annotating with text.</p>
1037
1038<p>The format of the DrawGetTextAlignment method is:</p>
1039
1040<pre class="code">
1041 AlignType DrawGetTextAlignment(DrawingWand *wand)
1042</pre>
1043
1044<p>A description of each parameter follows:</p>
1045
1046<h5>wand</h5>
1047<p>the drawing wand.</p>
1048
1049 </div>
cristy350dea42011-02-15 17:31:04 +00001050<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextAntialias">DrawGetTextAntialias</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001051<div class="doc-section">
1052
1053<p>DrawGetTextAntialias() returns the current text antialias setting, which determines whether text is antialiased. Text is antialiased by default.</p>
1054
1055<p>The format of the DrawGetTextAntialias method is:</p>
1056
1057<pre class="code">
1058 MagickBooleanType DrawGetTextAntialias(const DrawingWand *wand)
1059</pre>
1060
1061<p>A description of each parameter follows:</p>
1062
1063<h5>wand</h5>
1064<p>the drawing wand.</p>
1065
1066 </div>
cristy350dea42011-02-15 17:31:04 +00001067<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextDecoration">DrawGetTextDecoration</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001068<div class="doc-section">
1069
1070<p>DrawGetTextDecoration() returns the decoration applied when annotating with text.</p>
1071
1072<p>The format of the DrawGetTextDecoration method is:</p>
1073
1074<pre class="code">
1075 DecorationType DrawGetTextDecoration(DrawingWand *wand)
1076</pre>
1077
1078<p>A description of each parameter follows:</p>
1079
1080<h5>wand</h5>
1081<p>the drawing wand.</p>
1082
1083 </div>
cristy350dea42011-02-15 17:31:04 +00001084<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextEncoding">DrawGetTextEncoding</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001085<div class="doc-section">
1086
1087<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>
1088
1089<p>The format of the DrawGetTextEncoding method is:</p>
1090
1091<pre class="code">
1092 char *DrawGetTextEncoding(const DrawingWand *wand)
1093</pre>
1094
1095<p>A description of each parameter follows:</p>
1096
1097<h5>wand</h5>
1098<p>the drawing wand.</p>
1099
1100 </div>
cristy350dea42011-02-15 17:31:04 +00001101<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextKerning">DrawGetTextKerning</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001102<div class="doc-section">
1103
1104<p>DrawGetTextKerning() gets the spacing between characters in text.</p>
1105
1106<p>The format of the DrawSetFontKerning method is:</p>
1107
1108<pre class="code">
1109 double DrawGetTextKerning(DrawingWand *wand)
1110</pre>
1111
1112<p>A description of each parameter follows:</p>
1113
1114<h5>wand</h5>
1115<p>the drawing wand.</p>
1116
1117 </div>
cristy350dea42011-02-15 17:31:04 +00001118<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001119<div class="doc-section">
1120
1121<p>DrawGetTextInterwordSpacing() gets the spacing between lines in text.</p>
1122
1123<p>The format of the DrawSetFontKerning method is:</p>
1124
1125<pre class="code">
1126 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1127</pre>
1128
1129<p>A description of each parameter follows:</p>
1130
1131<h5>wand</h5>
1132<p>the drawing wand.</p>
1133
1134 </div>
cristy350dea42011-02-15 17:31:04 +00001135<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001136<div class="doc-section">
1137
1138<p>DrawGetTextInterwordSpacing() gets the spacing between words in text.</p>
1139
1140<p>The format of the DrawSetFontKerning method is:</p>
1141
1142<pre class="code">
1143 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1144</pre>
1145
1146<p>A description of each parameter follows:</p>
1147
1148<h5>wand</h5>
1149<p>the drawing wand.</p>
1150
1151 </div>
cristy350dea42011-02-15 17:31:04 +00001152<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetVectorGraphics">DrawGetVectorGraphics</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001153<div class="doc-section">
1154
1155<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>
1156
1157<p>The format of the DrawGetVectorGraphics method is:</p>
1158
1159<pre class="code">
1160 char *DrawGetVectorGraphics(const DrawingWand *wand)
1161</pre>
1162
1163<p>A description of each parameter follows:</p>
1164
1165<h5>wand</h5>
1166<p>the drawing wand.</p>
1167
1168 </div>
cristy350dea42011-02-15 17:31:04 +00001169<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextUnderColor">DrawGetTextUnderColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001170<div class="doc-section">
1171
1172<p>DrawGetTextUnderColor() returns the color of a background rectangle to place under text annotations.</p>
1173
1174<p>The format of the DrawGetTextUnderColor method is:</p>
1175
1176<pre class="code">
1177 void DrawGetTextUnderColor(const DrawingWand *wand,
1178 PixelWand *under_color)
1179</pre>
1180
1181<p>A description of each parameter follows:</p>
1182
1183<h5>wand</h5>
1184<p>the drawing wand.</p>
1185
1186<h5>under_color</h5>
1187<p>Return the under color.</p>
1188
1189 </div>
cristy350dea42011-02-15 17:31:04 +00001190<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawLine">DrawLine</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001191<div class="doc-section">
1192
1193<p>DrawLine() draws a line on the image using the current stroke color, stroke opacity, and stroke width.</p>
1194
1195<p>The format of the DrawLine method is:</p>
1196
1197<pre class="code">
1198 void DrawLine(DrawingWand *wand,const double sx,const double sy,
1199 const double ex,const double ey)
1200</pre>
1201
1202<p>A description of each parameter follows:</p>
1203
1204<h5>wand</h5>
1205<p>the drawing wand.</p>
1206
1207<h5>sx</h5>
1208<p>starting x ordinate</p>
1209
1210<h5>sy</h5>
1211<p>starting y ordinate</p>
1212
1213<h5>ex</h5>
1214<p>ending x ordinate</p>
1215
1216<h5>ey</h5>
1217<p>ending y ordinate</p>
1218
1219 </div>
cristy350dea42011-02-15 17:31:04 +00001220<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawMatte">DrawMatte</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001221<div class="doc-section">
1222
1223<p>DrawMatte() paints on the image's opacity channel in order to set effected pixels to transparent. to influence the opacity of pixels. The available paint methods are:</p>
1224
1225<pre class="text">
1226 PointMethod: Select the target pixel
1227 ReplaceMethod: Select any pixel that matches the target pixel.
1228 FloodfillMethod: Select the target pixel and matching neighbors.
1229 FillToBorderMethod: Select the target pixel and neighbors not matching
1230 border color.
1231 ResetMethod: Select all pixels.
1232</pre>
1233
1234<p>The format of the DrawMatte method is:</p>
1235
1236<pre class="code">
1237 void DrawMatte(DrawingWand *wand,const double x,const double y,
1238 const PaintMethod paint_method)
1239</pre>
1240
1241<p>A description of each parameter follows:</p>
1242
1243<h5>wand</h5>
1244<p>the drawing wand.</p>
1245
1246<h5>x</h5>
1247<p>x ordinate</p>
1248
1249<h5>y</h5>
1250<p>y ordinate</p>
1251
1252<h5>paint_method</h5>
1253<p>paint method.</p>
1254
1255 </div>
cristy350dea42011-02-15 17:31:04 +00001256<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathClose">DrawPathClose</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001257<div class="doc-section">
1258
1259<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>
1260
1261<p>The format of the DrawPathClose method is:</p>
1262
1263<pre class="code">
1264 void DrawPathClose(DrawingWand *wand)
1265</pre>
1266
1267<p>A description of each parameter follows:</p>
1268
1269<h5>wand</h5>
1270<p>the drawing wand.</p>
1271
1272 </div>
cristy350dea42011-02-15 17:31:04 +00001273<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001274<div class="doc-section">
1275
1276<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>
1277
1278<p>The format of the DrawPathCurveToAbsolute method is:</p>
1279
1280<pre class="code">
1281 void DrawPathCurveToAbsolute(DrawingWand *wand,const double x1,
1282 const double y1,const double x2,const double y2,const double x,
1283 const double y)
1284</pre>
1285
1286<p>A description of each parameter follows:</p>
1287
1288<h5>wand</h5>
1289<p>the drawing wand.</p>
1290
1291<h5>x1</h5>
1292<p>x ordinate of control point for curve beginning</p>
1293
1294<h5>y1</h5>
1295<p>y ordinate of control point for curve beginning</p>
1296
1297<h5>x2</h5>
1298<p>x ordinate of control point for curve ending</p>
1299
1300<h5>y2</h5>
1301<p>y ordinate of control point for curve ending</p>
1302
1303<h5>x</h5>
1304<p>x ordinate of the end of the curve</p>
1305
1306<h5>y</h5>
1307<p>y ordinate of the end of the curve</p>
1308
1309 </div>
cristy350dea42011-02-15 17:31:04 +00001310<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToRelative">DrawPathCurveToRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001311<div class="doc-section">
1312
1313<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>
1314
1315<p>The format of the DrawPathCurveToRelative method is:</p>
1316
1317<pre class="code">
1318 void DrawPathCurveToRelative(DrawingWand *wand,const double x1,
1319 const double y1,const double x2,const double y2,const double x,
1320 const double y)
1321</pre>
1322
1323<p>A description of each parameter follows:</p>
1324
1325<h5>wand</h5>
1326<p>the drawing wand.</p>
1327
1328<h5>x1</h5>
1329<p>x ordinate of control point for curve beginning</p>
1330
1331<h5>y1</h5>
1332<p>y ordinate of control point for curve beginning</p>
1333
1334<h5>x2</h5>
1335<p>x ordinate of control point for curve ending</p>
1336
1337<h5>y2</h5>
1338<p>y ordinate of control point for curve ending</p>
1339
1340<h5>x</h5>
1341<p>x ordinate of the end of the curve</p>
1342
1343<h5>y</h5>
1344<p>y ordinate of the end of the curve</p>
1345
1346 </div>
cristy350dea42011-02-15 17:31:04 +00001347<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001348<div class="doc-section">
1349
1350<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>
1351
1352<p>The format of the DrawPathCurveToQuadraticBezierAbsolute method is:</p>
1353
1354<pre class="code">
1355 void DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *wand,
1356 const double x1,const double y1,onst double x,const double y)
1357</pre>
1358
1359<p>A description of each parameter follows:</p>
1360
1361<h5>wand</h5>
1362<p>the drawing wand.</p>
1363
1364<h5>x1</h5>
1365<p>x ordinate of the control point</p>
1366
1367<h5>y1</h5>
1368<p>y ordinate of the control point</p>
1369
1370<h5>x</h5>
1371<p>x ordinate of final point</p>
1372
1373<h5>y</h5>
1374<p>y ordinate of final point</p>
1375
1376 </div>
cristy350dea42011-02-15 17:31:04 +00001377<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001378<div class="doc-section">
1379
1380<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>
1381
1382<p>The format of the DrawPathCurveToQuadraticBezierRelative method is:</p>
1383
1384<pre class="code">
1385 void DrawPathCurveToQuadraticBezierRelative(DrawingWand *wand,
1386 const double x1,const double y1,const double x,const double y)
1387</pre>
1388
1389<p>A description of each parameter follows:</p>
1390
1391<h5>wand</h5>
1392<p>the drawing wand.</p>
1393
1394<h5>x1</h5>
1395<p>x ordinate of the control point</p>
1396
1397<h5>y1</h5>
1398<p>y ordinate of the control point</p>
1399
1400<h5>x</h5>
1401<p>x ordinate of final point</p>
1402
1403<h5>y</h5>
1404<p>y ordinate of final point</p>
1405
1406 </div>
cristy350dea42011-02-15 17:31:04 +00001407<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001408<div class="doc-section">
1409
1410<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>
1411
1412<p>The format of the DrawPathCurveToQuadraticBezierSmoothAbsolute method is:</p>
1413
1414<pre class="code">
1415 void DrawPathCurveToQuadraticBezierSmoothAbsolute(
1416 DrawingWand *wand,const double x,const double y)
1417</pre>
1418
1419<p>A description of each parameter follows:</p>
1420
1421<h5>wand</h5>
1422<p>the drawing wand.</p>
1423
1424<h5>x</h5>
1425<p>x ordinate of final point</p>
1426
1427<h5>y</h5>
1428<p>y ordinate of final point</p>
1429
1430 </div>
cristy350dea42011-02-15 17:31:04 +00001431<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001432<div class="doc-section">
1433
1434<p>DrawPathCurveToQuadraticBezierSmoothAbsolute() draws a quadratic Bezier curve (using relative coordinates) from the current point to (x,y). The control point is assumed to be the reflection of the control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not a DrawPathCurveToQuadraticBezierAbsolute, DrawPathCurveToQuadraticBezierRelative, DrawPathCurveToQuadraticBezierSmoothAbsolute or DrawPathCurveToQuadraticBezierSmoothRelative, assume the control point is coincident with the current point.). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.</p>
1435
1436<p>The format of the DrawPathCurveToQuadraticBezierSmoothRelative method is:</p>
1437
1438<pre class="code">
1439 void DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *wand,
1440 const double x,const double y)
1441</pre>
1442
1443<p>A description of each parameter follows:</p>
1444
1445<h5>wand</h5>
1446<p>the drawing wand.</p>
1447
1448<h5>x</h5>
1449<p>x ordinate of final point</p>
1450
1451<h5>y</h5>
1452<p>y ordinate of final point</p>
1453
1454 </div>
cristy350dea42011-02-15 17:31:04 +00001455<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001456<div class="doc-section">
1457
1458<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>
1459
1460<p>The format of the DrawPathCurveToSmoothAbsolute method is:</p>
1461
1462<pre class="code">
1463 void DrawPathCurveToSmoothAbsolute(DrawingWand *wand,
1464 const double x2const double y2,const double x,const double y)
1465</pre>
1466
1467<p>A description of each parameter follows:</p>
1468
1469<h5>wand</h5>
1470<p>the drawing wand.</p>
1471
1472<h5>x2</h5>
1473<p>x ordinate of second control point</p>
1474
1475<h5>y2</h5>
1476<p>y ordinate of second control point</p>
1477
1478<h5>x</h5>
1479<p>x ordinate of termination point</p>
1480
1481<h5>y</h5>
1482<p>y ordinate of termination point</p>
1483
1484 </div>
cristy350dea42011-02-15 17:31:04 +00001485<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001486<div class="doc-section">
1487
1488<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>
1489
1490<p>The format of the DrawPathCurveToSmoothRelative method is:</p>
1491
1492<pre class="code">
1493 void DrawPathCurveToSmoothRelative(DrawingWand *wand,
1494 const double x2,const double y2,const double x,const double y)
1495</pre>
1496
1497<p>A description of each parameter follows:</p>
1498
1499<h5>wand</h5>
1500<p>the drawing wand.</p>
1501
1502<h5>x2</h5>
1503<p>x ordinate of second control point</p>
1504
1505<h5>y2</h5>
1506<p>y ordinate of second control point</p>
1507
1508<h5>x</h5>
1509<p>x ordinate of termination point</p>
1510
1511<h5>y</h5>
1512<p>y ordinate of termination point</p>
1513
1514 </div>
cristy350dea42011-02-15 17:31:04 +00001515<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001516<div class="doc-section">
1517
1518<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>
1519
1520<p>The format of the DrawPathEllipticArcAbsolute method is:</p>
1521
1522<pre class="code">
1523 void DrawPathEllipticArcAbsolute(DrawingWand *wand,
1524 const double rx,const double ry,const double x_axis_rotation,
1525 const MagickBooleanType large_arc_flag,
1526 const MagickBooleanType sweep_flag,const double x,const double y)
1527</pre>
1528
1529<p>A description of each parameter follows:</p>
1530
1531<h5>wand</h5>
1532<p>the drawing wand.</p>
1533
1534<h5>rx</h5>
1535<p>x radius</p>
1536
1537<h5>ry</h5>
1538<p>y radius</p>
1539
1540<h5>x_axis_rotation</h5>
1541<p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p>
1542
1543<h5>large_arc_flag</h5>
1544<p>If non-zero (true) then draw the larger of the available arcs</p>
1545
1546<h5>sweep_flag</h5>
1547<p>If non-zero (true) then draw the arc matching a clock-wise rotation</p>
1548
1549
1550 </div>
cristy350dea42011-02-15 17:31:04 +00001551<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001552<div class="doc-section">
1553
1554<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>
1555
1556<p>The format of the DrawPathEllipticArcRelative method is:</p>
1557
1558<pre class="code">
1559 void DrawPathEllipticArcRelative(DrawingWand *wand,
1560 const double rx,const double ry,const double x_axis_rotation,
1561 const MagickBooleanType large_arc_flag,
1562 const MagickBooleanType sweep_flag,const double x,const double y)
1563</pre>
1564
1565<p>A description of each parameter follows:</p>
1566
1567<h5>wand</h5>
1568<p>the drawing wand.</p>
1569
1570<h5>rx</h5>
1571<p>x radius</p>
1572
1573<h5>ry</h5>
1574<p>y radius</p>
1575
1576<h5>x_axis_rotation</h5>
1577<p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p>
1578
1579<h5>large_arc_flag</h5>
1580<p>If non-zero (true) then draw the larger of the available arcs</p>
1581
1582<h5>sweep_flag</h5>
1583<p>If non-zero (true) then draw the arc matching a clock-wise rotation</p>
1584
1585 </div>
cristy350dea42011-02-15 17:31:04 +00001586<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathFinish">DrawPathFinish</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001587<div class="doc-section">
1588
1589<p>DrawPathFinish() terminates the current path.</p>
1590
1591<p>The format of the DrawPathFinish method is:</p>
1592
1593<pre class="code">
1594 void DrawPathFinish(DrawingWand *wand)
1595</pre>
1596
1597<p>A description of each parameter follows:</p>
1598
1599<h5>wand</h5>
1600<p>the drawing wand.</p>
1601
1602 </div>
cristy350dea42011-02-15 17:31:04 +00001603<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToAbsolute">DrawPathLineToAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001604<div class="doc-section">
1605
1606<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>
1607
1608<p>The format of the DrawPathLineToAbsolute method is:</p>
1609
1610<pre class="code">
1611 void DrawPathLineToAbsolute(DrawingWand *wand,const double x,
1612 const double y)
1613</pre>
1614
1615<p>A description of each parameter follows:</p>
1616
1617<h5>wand</h5>
1618<p>the drawing wand.</p>
1619
1620<h5>x</h5>
1621<p>target x ordinate</p>
1622
1623<h5>y</h5>
1624<p>target y ordinate</p>
1625
1626 </div>
cristy350dea42011-02-15 17:31:04 +00001627<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToRelative">DrawPathLineToRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001628<div class="doc-section">
1629
1630<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>
1631
1632<p>The format of the DrawPathLineToRelative method is:</p>
1633
1634<pre class="code">
1635 void DrawPathLineToRelative(DrawingWand *wand,const double x,
1636 const double y)
1637</pre>
1638
1639<p>A description of each parameter follows:</p>
1640
1641<h5>wand</h5>
1642<p>the drawing wand.</p>
1643
1644<h5>x</h5>
1645<p>target x ordinate</p>
1646
1647<h5>y</h5>
1648<p>target y ordinate</p>
1649
1650 </div>
cristy350dea42011-02-15 17:31:04 +00001651<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001652<div class="doc-section">
1653
1654<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>
1655
1656<p>The format of the DrawPathLineToHorizontalAbsolute method is:</p>
1657
1658<pre class="code">
1659 void DrawPathLineToHorizontalAbsolute(DrawingWand *wand,
1660 const PathMode mode,const double x)
1661</pre>
1662
1663<p>A description of each parameter follows:</p>
1664
1665<h5>wand</h5>
1666<p>the drawing wand.</p>
1667
1668<h5>x</h5>
1669<p>target x ordinate</p>
1670
1671 </div>
cristy350dea42011-02-15 17:31:04 +00001672<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001673<div class="doc-section">
1674
1675<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>
1676
1677<p>The format of the DrawPathLineToHorizontalRelative method is:</p>
1678
1679<pre class="code">
1680 void DrawPathLineToHorizontalRelative(DrawingWand *wand,
1681 const double x)
1682</pre>
1683
1684<p>A description of each parameter follows:</p>
1685
1686<h5>wand</h5>
1687<p>the drawing wand.</p>
1688
1689<h5>x</h5>
1690<p>target x ordinate</p>
1691
1692 </div>
cristy350dea42011-02-15 17:31:04 +00001693<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001694<div class="doc-section">
1695
1696<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>
1697
1698<p>The format of the DrawPathLineToVerticalAbsolute method is:</p>
1699
1700<pre class="code">
1701 void DrawPathLineToVerticalAbsolute(DrawingWand *wand,
1702 const double y)
1703</pre>
1704
1705<p>A description of each parameter follows:</p>
1706
1707<h5>wand</h5>
1708<p>the drawing wand.</p>
1709
1710<h5>y</h5>
1711<p>target y ordinate</p>
1712
1713 </div>
cristy350dea42011-02-15 17:31:04 +00001714<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001715<div class="doc-section">
1716
1717<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>
1718
1719<p>The format of the DrawPathLineToVerticalRelative method is:</p>
1720
1721<pre class="code">
1722 void DrawPathLineToVerticalRelative(DrawingWand *wand,
1723 const double y)
1724</pre>
1725
1726<p>A description of each parameter follows:</p>
1727
1728<h5>wand</h5>
1729<p>the drawing wand.</p>
1730
1731<h5>y</h5>
1732<p>target y ordinate</p>
1733
1734 </div>
cristy350dea42011-02-15 17:31:04 +00001735<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001736<div class="doc-section">
1737
1738<p>DrawPathMoveToAbsolute() starts a new sub-path at the given coordinate using absolute coordinates. The current point then becomes the specified coordinate.</p>
1739
1740<p>The format of the DrawPathMoveToAbsolute method is:</p>
1741
1742<pre class="code">
1743 void DrawPathMoveToAbsolute(DrawingWand *wand,const double x,
1744 const double y)
1745</pre>
1746
1747<p>A description of each parameter follows:</p>
1748
1749<h5>wand</h5>
1750<p>the drawing wand.</p>
1751
1752<h5>x</h5>
1753<p>target x ordinate</p>
1754
1755<h5>y</h5>
1756<p>target y ordinate</p>
1757
1758 </div>
cristy350dea42011-02-15 17:31:04 +00001759<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathMoveToRelative">DrawPathMoveToRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001760<div class="doc-section">
1761
1762<p>DrawPathMoveToRelative() starts a new sub-path at the given coordinate using relative coordinates. The current point then becomes the specified coordinate.</p>
1763
1764<p>The format of the DrawPathMoveToRelative method is:</p>
1765
1766<pre class="code">
1767 void DrawPathMoveToRelative(DrawingWand *wand,const double x,
1768 const double y)
1769</pre>
1770
1771<p>A description of each parameter follows:</p>
1772
1773<h5>wand</h5>
1774<p>the drawing wand.</p>
1775
1776<h5>x</h5>
1777<p>target x ordinate</p>
1778
1779<h5>y</h5>
1780<p>target y ordinate</p>
1781
1782 </div>
cristy350dea42011-02-15 17:31:04 +00001783<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathStart">DrawPathStart</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001784<div class="doc-section">
1785
1786<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>
1787
1788<p>The format of the DrawPathStart method is:</p>
1789
1790<pre class="code">
1791 void DrawPathStart(DrawingWand *wand)
1792</pre>
1793
1794<p>A description of each parameter follows:</p>
1795
1796<h5>wand</h5>
1797<p>the drawing wand.</p>
1798
1799 </div>
cristy350dea42011-02-15 17:31:04 +00001800<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPoint">DrawPoint</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001801<div class="doc-section">
1802
1803<p>DrawPoint() draws a point using the current fill color.</p>
1804
1805<p>The format of the DrawPoint method is:</p>
1806
1807<pre class="code">
1808 void DrawPoint(DrawingWand *wand,const double x,const double y)
1809</pre>
1810
1811<p>A description of each parameter follows:</p>
1812
1813<h5>wand</h5>
1814<p>the drawing wand.</p>
1815
1816<h5>x</h5>
1817<p>target x coordinate</p>
1818
1819<h5>y</h5>
1820<p>target y coordinate</p>
1821
1822 </div>
cristy350dea42011-02-15 17:31:04 +00001823<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPolygon">DrawPolygon</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001824<div class="doc-section">
1825
1826<p>DrawPolygon() draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p>
1827
1828<p>The format of the DrawPolygon method is:</p>
1829
1830<pre class="code">
1831 void DrawPolygon(DrawingWand *wand,
1832 const size_t number_coordinates,const PointInfo *coordinates)
1833</pre>
1834
1835<p>A description of each parameter follows:</p>
1836
1837<h5>wand</h5>
1838<p>the drawing wand.</p>
1839
1840<h5>number_coordinates</h5>
1841<p>number of coordinates</p>
1842
1843<h5>coordinates</h5>
1844<p>coordinate array</p>
1845
1846 </div>
cristy350dea42011-02-15 17:31:04 +00001847<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPolyline">DrawPolyline</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001848<div class="doc-section">
1849
1850<p>DrawPolyline() draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p>
1851
1852<p>The format of the DrawPolyline method is:</p>
1853
1854<pre class="code">
1855 void DrawPolyline(DrawingWand *wand,
1856 const size_t number_coordinates,const PointInfo *coordinates)
1857</pre>
1858
1859<p>A description of each parameter follows:</p>
1860
1861<h5>wand</h5>
1862<p>the drawing wand.</p>
1863
1864<h5>number_coordinates</h5>
1865<p>number of coordinates</p>
1866
1867<h5>coordinates</h5>
1868<p>coordinate array</p>
1869
1870 </div>
cristy350dea42011-02-15 17:31:04 +00001871<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPopClipPath">DrawPopClipPath</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001872<div class="doc-section">
1873
1874<p>DrawPopClipPath() terminates a clip path definition.</p>
1875
1876<p>The format of the DrawPopClipPath method is:</p>
1877
1878<pre class="code">
1879 void DrawPopClipPath(DrawingWand *wand)
1880</pre>
1881
1882<p>A description of each parameter follows:</p>
1883
1884<h5>wand</h5>
1885<p>the drawing wand.</p>
1886
1887 </div>
cristy350dea42011-02-15 17:31:04 +00001888<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPopDefs">DrawPopDefs</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001889<div class="doc-section">
1890
1891<p>DrawPopDefs() terminates a definition list.</p>
1892
1893<p>The format of the DrawPopDefs method is:</p>
1894
1895<pre class="code">
1896 void DrawPopDefs(DrawingWand *wand)
1897</pre>
1898
1899<p>A description of each parameter follows:</p>
1900
1901<h5>wand</h5>
1902<p>the drawing wand.</p>
1903
1904 </div>
cristy350dea42011-02-15 17:31:04 +00001905<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPopPattern">DrawPopPattern</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001906<div class="doc-section">
1907
1908<p>DrawPopPattern() terminates a pattern definition.</p>
1909
1910<p>The format of the DrawPopPattern method is:</p>
1911
1912<pre class="code">
1913 MagickBooleanType DrawPopPattern(DrawingWand *wand)
1914</pre>
1915
1916<p>A description of each parameter follows:</p>
1917
1918<h5>wand</h5>
1919<p>the drawing wand.</p>
1920
1921 </div>
cristy350dea42011-02-15 17:31:04 +00001922<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPushClipPath">DrawPushClipPath</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001923<div class="doc-section">
1924
1925<p>DrawPushClipPath() starts a clip path definition which is comprized of any number of drawing commands and terminated by a DrawPopClipPath() command.</p>
1926
1927<p>The format of the DrawPushClipPath method is:</p>
1928
1929<pre class="code">
1930 void DrawPushClipPath(DrawingWand *wand,const char *clip_mask_id)
1931</pre>
1932
1933<p>A description of each parameter follows:</p>
1934
1935<h5>wand</h5>
1936<p>the drawing wand.</p>
1937
1938<h5>clip_mask_id</h5>
1939<p>string identifier to associate with the clip path for later use.</p>
1940
1941 </div>
cristy350dea42011-02-15 17:31:04 +00001942<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPushDefs">DrawPushDefs</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001943<div class="doc-section">
1944
1945<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>
1946
1947<p>The format of the DrawPushDefs method is:</p>
1948
1949<pre class="code">
1950 void DrawPushDefs(DrawingWand *wand)
1951</pre>
1952
1953<p>A description of each parameter follows:</p>
1954
1955<h5>wand</h5>
1956<p>the drawing wand.</p>
1957
1958 </div>
cristy350dea42011-02-15 17:31:04 +00001959<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPushPattern">DrawPushPattern</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001960<div class="doc-section">
1961
1962<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>
1963
1964<p>The format of the DrawPushPattern method is:</p>
1965
1966<pre class="code">
1967 MagickBooleanType DrawPushPattern(DrawingWand *wand,
1968 const char *pattern_id,const double x,const double y,
1969 const double width,const double height)
1970</pre>
1971
1972<p>A description of each parameter follows:</p>
1973
1974<h5>wand</h5>
1975<p>the drawing wand.</p>
1976
1977<h5>pattern_id</h5>
1978<p>pattern identification for later reference</p>
1979
1980<h5>x</h5>
1981<p>x ordinate of top left corner</p>
1982
1983<h5>y</h5>
1984<p>y ordinate of top left corner</p>
1985
1986<h5>width</h5>
1987<p>width of pattern space</p>
1988
1989<h5>height</h5>
1990<p>height of pattern space</p>
1991
1992 </div>
cristy350dea42011-02-15 17:31:04 +00001993<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawRectangle">DrawRectangle</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001994<div class="doc-section">
1995
1996<p>DrawRectangle() draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.</p>
1997
1998<p>The format of the DrawRectangle method is:</p>
1999
2000<pre class="code">
2001 void DrawRectangle(DrawingWand *wand,const double x1,
2002 const double y1,const double x2,const double y2)
2003</pre>
2004
2005<p>A description of each parameter follows:</p>
2006
2007<h5>x1</h5>
2008<p>x ordinate of first coordinate</p>
2009
2010<h5>y1</h5>
2011<p>y ordinate of first coordinate</p>
2012
2013<h5>x2</h5>
2014<p>x ordinate of second coordinate</p>
2015
2016<h5>y2</h5>
2017<p>y ordinate of second coordinate</p>
2018
2019 </div>
cristy350dea42011-02-15 17:31:04 +00002020<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawResetVectorGraphics">DrawResetVectorGraphics</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002021<div class="doc-section">
2022
2023<p>DrawResetVectorGraphics() resets the vector graphics associated with the specified wand.</p>
2024
2025<p>The format of the DrawResetVectorGraphics method is:</p>
2026
2027<pre class="code">
2028 void DrawResetVectorGraphics(DrawingWand *wand)
2029</pre>
2030
2031<p>A description of each parameter follows:</p>
2032
2033<h5>wand</h5>
2034<p>the drawing wand.</p>
2035
2036 </div>
cristy350dea42011-02-15 17:31:04 +00002037<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawRotate">DrawRotate</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002038<div class="doc-section">
2039
2040<p>DrawRotate() applies the specified rotation to the current coordinate space.</p>
2041
2042<p>The format of the DrawRotate method is:</p>
2043
2044<pre class="code">
2045 void DrawRotate(DrawingWand *wand,const double degrees)
2046</pre>
2047
2048<p>A description of each parameter follows:</p>
2049
2050<h5>wand</h5>
2051<p>the drawing wand.</p>
2052
2053<h5>degrees</h5>
2054<p>degrees of rotation</p>
2055
2056 </div>
cristy350dea42011-02-15 17:31:04 +00002057<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawRoundRectangle">DrawRoundRectangle</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002058<div class="doc-section">
2059
2060<p>DrawRoundRectangle() draws a rounted rectangle given two coordinates, x & y corner radiuses and using the current stroke, stroke width, and fill settings.</p>
2061
2062<p>The format of the DrawRoundRectangle method is:</p>
2063
2064<pre class="code">
2065 void DrawRoundRectangle(DrawingWand *wand,double x1,double y1,
2066 double x2,double y2,double rx,double ry)
2067</pre>
2068
2069<p>A description of each parameter follows:</p>
2070
2071<h5>wand</h5>
2072<p>the drawing wand.</p>
2073
2074<h5>x1</h5>
2075<p>x ordinate of first coordinate</p>
2076
2077<h5>y1</h5>
2078<p>y ordinate of first coordinate</p>
2079
2080<h5>x2</h5>
2081<p>x ordinate of second coordinate</p>
2082
2083<h5>y2</h5>
2084<p>y ordinate of second coordinate</p>
2085
2086<h5>rx</h5>
2087<p>radius of corner in horizontal direction</p>
2088
2089<h5>ry</h5>
2090<p>radius of corner in vertical direction</p>
2091
2092 </div>
cristy350dea42011-02-15 17:31:04 +00002093<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawScale">DrawScale</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002094<div class="doc-section">
2095
2096<p>DrawScale() adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space.</p>
2097
2098<p>The format of the DrawScale method is:</p>
2099
2100<pre class="code">
2101 void DrawScale(DrawingWand *wand,const double x,const double y)
2102</pre>
2103
2104<p>A description of each parameter follows:</p>
2105
2106<h5>wand</h5>
2107<p>the drawing wand.</p>
2108
2109<h5>x</h5>
2110<p>horizontal scale factor</p>
2111
2112<h5>y</h5>
2113<p>vertical scale factor</p>
2114
2115 </div>
cristy350dea42011-02-15 17:31:04 +00002116<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetBorderColor">DrawSetBorderColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002117<div class="doc-section">
2118
2119<p>DrawSetBorderColor() sets the border color to be used for drawing bordered objects.</p>
2120
2121<p>The format of the DrawSetBorderColor method is:</p>
2122
2123<pre class="code">
2124 void DrawSetBorderColor(DrawingWand *wand,const PixelWand *border_wand)
2125</pre>
2126
2127<p>A description of each parameter follows:</p>
2128
2129<h5>wand</h5>
2130<p>the drawing wand.</p>
2131
2132<h5>border_wand</h5>
2133<p>border wand.</p>
2134
2135 </div>
cristy350dea42011-02-15 17:31:04 +00002136<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetClipPath">DrawSetClipPath</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002137<div class="doc-section">
2138
2139<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>
2140
2141<p>The format of the DrawSetClipPath method is:</p>
2142
2143<pre class="code">
2144 MagickBooleanType DrawSetClipPath(DrawingWand *wand,
2145 const char *clip_mask)
2146</pre>
2147
2148<p>A description of each parameter follows:</p>
2149
2150<h5>wand</h5>
2151<p>the drawing wand.</p>
2152
2153<h5>clip_mask</h5>
2154<p>name of clipping path to associate with image</p>
2155
2156 </div>
cristy350dea42011-02-15 17:31:04 +00002157<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetClipRule">DrawSetClipRule</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002158<div class="doc-section">
2159
2160<p>DrawSetClipRule() set the polygon fill rule to be used by the clipping path.</p>
2161
2162<p>The format of the DrawSetClipRule method is:</p>
2163
2164<pre class="code">
2165 void DrawSetClipRule(DrawingWand *wand,const FillRule fill_rule)
2166</pre>
2167
2168<p>A description of each parameter follows:</p>
2169
2170<h5>wand</h5>
2171<p>the drawing wand.</p>
2172
2173<h5>fill_rule</h5>
2174<p>fill rule (EvenOddRule or NonZeroRule)</p>
2175
2176 </div>
cristy350dea42011-02-15 17:31:04 +00002177<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetClipUnits">DrawSetClipUnits</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002178<div class="doc-section">
2179
2180<p>DrawSetClipUnits() sets the interpretation of clip path units.</p>
2181
2182<p>The format of the DrawSetClipUnits method is:</p>
2183
2184<pre class="code">
2185 void DrawSetClipUnits(DrawingWand *wand,
2186 const ClipPathUnits clip_units)
2187</pre>
2188
2189<p>A description of each parameter follows:</p>
2190
2191<h5>wand</h5>
2192<p>the drawing wand.</p>
2193
2194<h5>clip_units</h5>
2195<p>units to use (UserSpace, UserSpaceOnUse, or ObjectBoundingBox)</p>
2196
2197 </div>
cristy350dea42011-02-15 17:31:04 +00002198<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillColor">DrawSetFillColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002199<div class="doc-section">
2200
2201<p>DrawSetFillColor() sets the fill color to be used for drawing filled objects.</p>
2202
2203<p>The format of the DrawSetFillColor method is:</p>
2204
2205<pre class="code">
2206 void DrawSetFillColor(DrawingWand *wand,const PixelWand *fill_wand)
2207</pre>
2208
2209<p>A description of each parameter follows:</p>
2210
2211<h5>wand</h5>
2212<p>the drawing wand.</p>
2213
2214<h5>fill_wand</h5>
2215<p>fill wand.</p>
2216
2217 </div>
cristy350dea42011-02-15 17:31:04 +00002218<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillOpacity">DrawSetFillOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002219<div class="doc-section">
2220
2221<p>DrawSetFillOpacity() sets the opacity to use when drawing using the fill color or fill texture. Fully opaque is 1.0.</p>
2222
2223<p>The format of the DrawSetFillOpacity method is:</p>
2224
2225<pre class="code">
2226 void DrawSetFillOpacity(DrawingWand *wand,const double fill_opacity)
2227</pre>
2228
2229<p>A description of each parameter follows:</p>
2230
2231<h5>wand</h5>
2232<p>the drawing wand.</p>
2233
2234<h5>fill_opacity</h5>
2235<p>fill opacity</p>
2236
2237 </div>
cristy350dea42011-02-15 17:31:04 +00002238<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontResolution">DrawSetFontResolution</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002239<div class="doc-section">
2240
2241<p>DrawSetFontResolution() sets the image resolution.</p>
2242
2243<p>The format of the DrawSetFontResolution method is:</p>
2244
2245<pre class="code">
2246 DrawBooleanType DrawSetFontResolution(DrawingWand *wand,
2247 const double x_resolution,const doubtl y_resolution)
2248</pre>
2249
2250<p>A description of each parameter follows:</p>
2251
2252<h5>wand</h5>
2253<p>the magick wand.</p>
2254
2255<h5>x_resolution</h5>
2256<p>the image x resolution.</p>
2257
2258<h5>y_resolution</h5>
2259<p>the image y resolution.</p>
2260
2261 </div>
cristy350dea42011-02-15 17:31:04 +00002262<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetOpacity">DrawSetOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002263<div class="doc-section">
2264
2265<p>DrawSetOpacity() sets the opacity to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0.</p>
2266
2267<p>The format of the DrawSetOpacity method is:</p>
2268
2269<pre class="code">
2270 void DrawSetOpacity(DrawingWand *wand,const double opacity)
2271</pre>
2272
2273<p>A description of each parameter follows:</p>
2274
2275<h5>wand</h5>
2276<p>the drawing wand.</p>
2277
2278<h5>opacity</h5>
2279<p>fill opacity</p>
2280
2281 </div>
cristy350dea42011-02-15 17:31:04 +00002282<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillPatternURL">DrawSetFillPatternURL</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002283<div class="doc-section">
2284
2285<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>
2286
2287<p>The format of the DrawSetFillPatternURL method is:</p>
2288
2289<pre class="code">
2290 MagickBooleanType DrawSetFillPatternURL(DrawingWand *wand,
2291 const char *fill_url)
2292</pre>
2293
2294<p>A description of each parameter follows:</p>
2295
2296<h5>wand</h5>
2297<p>the drawing wand.</p>
2298
2299<h5>fill_url</h5>
2300<p>URL to use to obtain fill pattern.</p>
2301
2302 </div>
cristy350dea42011-02-15 17:31:04 +00002303<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillRule">DrawSetFillRule</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002304<div class="doc-section">
2305
2306<p>DrawSetFillRule() sets the fill rule to use while drawing polygons.</p>
2307
2308<p>The format of the DrawSetFillRule method is:</p>
2309
2310<pre class="code">
2311 void DrawSetFillRule(DrawingWand *wand,const FillRule fill_rule)
2312</pre>
2313
2314<p>A description of each parameter follows:</p>
2315
2316<h5>wand</h5>
2317<p>the drawing wand.</p>
2318
2319<h5>fill_rule</h5>
2320<p>fill rule (EvenOddRule or NonZeroRule)</p>
2321
2322 </div>
cristy350dea42011-02-15 17:31:04 +00002323<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFont">DrawSetFont</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002324<div class="doc-section">
2325
2326<p>DrawSetFont() sets the fully-sepecified font to use when annotating with text.</p>
2327
2328<p>The format of the DrawSetFont method is:</p>
2329
2330<pre class="code">
2331 MagickBooleanType DrawSetFont(DrawingWand *wand,const char *font_name)
2332</pre>
2333
2334<p>A description of each parameter follows:</p>
2335
2336<h5>wand</h5>
2337<p>the drawing wand.</p>
2338
2339<h5>font_name</h5>
2340<p>font name</p>
2341
2342 </div>
cristy350dea42011-02-15 17:31:04 +00002343<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontFamily">DrawSetFontFamily</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002344<div class="doc-section">
2345
2346<p>DrawSetFontFamily() sets the font family to use when annotating with text.</p>
2347
2348<p>The format of the DrawSetFontFamily method is:</p>
2349
2350<pre class="code">
2351 MagickBooleanType DrawSetFontFamily(DrawingWand *wand,
2352 const char *font_family)
2353</pre>
2354
2355<p>A description of each parameter follows:</p>
2356
2357<h5>wand</h5>
2358<p>the drawing wand.</p>
2359
2360<h5>font_family</h5>
2361<p>font family</p>
2362
2363 </div>
cristy350dea42011-02-15 17:31:04 +00002364<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontSize">DrawSetFontSize</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002365<div class="doc-section">
2366
2367<p>DrawSetFontSize() sets the font pointsize to use when annotating with text.</p>
2368
2369<p>The format of the DrawSetFontSize method is:</p>
2370
2371<pre class="code">
2372 void DrawSetFontSize(DrawingWand *wand,const double pointsize)
2373</pre>
2374
2375<p>A description of each parameter follows:</p>
2376
2377<h5>wand</h5>
2378<p>the drawing wand.</p>
2379
2380<h5>pointsize</h5>
2381<p>text pointsize</p>
2382
2383 </div>
cristy350dea42011-02-15 17:31:04 +00002384<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontStretch">DrawSetFontStretch</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002385<div class="doc-section">
2386
2387<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>
2388
2389<p>The format of the DrawSetFontStretch method is:</p>
2390
2391<pre class="code">
2392 void DrawSetFontStretch(DrawingWand *wand,
2393 const StretchType font_stretch)
2394</pre>
2395
2396<p>A description of each parameter follows:</p>
2397
2398<h5>wand</h5>
2399<p>the drawing wand.</p>
2400
2401<h5>font_stretch</h5>
2402<p>font stretch (NormalStretch, UltraCondensedStretch, CondensedStretch, SemiCondensedStretch, SemiExpandedStretch, ExpandedStretch, ExtraExpandedStretch, UltraExpandedStretch, AnyStretch)</p>
2403
2404 </div>
cristy350dea42011-02-15 17:31:04 +00002405<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontStyle">DrawSetFontStyle</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002406<div class="doc-section">
2407
2408<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>
2409
2410<p>The format of the DrawSetFontStyle method is:</p>
2411
2412<pre class="code">
2413 void DrawSetFontStyle(DrawingWand *wand,const StyleType style)
2414</pre>
2415
2416<p>A description of each parameter follows:</p>
2417
2418<h5>wand</h5>
2419<p>the drawing wand.</p>
2420
2421<h5>style</h5>
2422<p>font style (NormalStyle, ItalicStyle, ObliqueStyle, AnyStyle)</p>
2423
2424 </div>
cristy350dea42011-02-15 17:31:04 +00002425<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontWeight">DrawSetFontWeight</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002426<div class="doc-section">
2427
2428<p>DrawSetFontWeight() sets the font weight to use when annotating with text.</p>
2429
2430<p>The format of the DrawSetFontWeight method is:</p>
2431
2432<pre class="code">
2433 void DrawSetFontWeight(DrawingWand *wand,
2434 const size_t font_weight)
2435</pre>
2436
2437<p>A description of each parameter follows:</p>
2438
2439<h5>wand</h5>
2440<p>the drawing wand.</p>
2441
2442<h5>font_weight</h5>
2443<p>font weight (valid range 100-900)</p>
2444
2445 </div>
cristy350dea42011-02-15 17:31:04 +00002446<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetGravity">DrawSetGravity</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002447<div class="doc-section">
2448
2449<p>DrawSetGravity() sets the text placement gravity to use when annotating with text.</p>
2450
2451<p>The format of the DrawSetGravity method is:</p>
2452
2453<pre class="code">
2454 void DrawSetGravity(DrawingWand *wand,const GravityType gravity)
2455</pre>
2456
2457<p>A description of each parameter follows:</p>
2458
2459<h5>wand</h5>
2460<p>the drawing wand.</p>
2461
2462<h5>gravity</h5>
2463<p>positioning gravity (NorthWestGravity, NorthGravity, NorthEastGravity, WestGravity, CenterGravity, EastGravity, SouthWestGravity, SouthGravity, SouthEastGravity)</p>
2464
2465 </div>
cristy350dea42011-02-15 17:31:04 +00002466<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeColor">DrawSetStrokeColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002467<div class="doc-section">
2468
2469<p>DrawSetStrokeColor() sets the color used for stroking object outlines.</p>
2470
2471<p>The format of the DrawSetStrokeColor method is:</p>
2472
2473<pre class="code">
2474 void DrawSetStrokeColor(DrawingWand *wand,
2475 const PixelWand *stroke_wand)
2476</pre>
2477
2478<p>A description of each parameter follows:</p>
2479
2480<h5>wand</h5>
2481<p>the drawing wand.</p>
2482
2483<h5>stroke_wand</h5>
2484<p>stroke wand.</p>
2485
2486 </div>
cristy350dea42011-02-15 17:31:04 +00002487<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokePatternURL">DrawSetStrokePatternURL</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002488<div class="doc-section">
2489
2490<p>DrawSetStrokePatternURL() sets the pattern used for stroking object outlines.</p>
2491
2492<p>The format of the DrawSetStrokePatternURL method is:</p>
2493
2494<pre class="code">
2495 MagickBooleanType DrawSetStrokePatternURL(DrawingWand *wand,
2496 const char *stroke_url)
2497</pre>
2498
2499<p>A description of each parameter follows:</p>
2500
2501<h5>wand</h5>
2502<p>the drawing wand.</p>
2503
2504<h5>stroke_url</h5>
2505<p>URL specifying pattern ID (e.g. "#pattern_id")</p>
2506
2507 </div>
cristy350dea42011-02-15 17:31:04 +00002508<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeAntialias">DrawSetStrokeAntialias</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002509<div class="doc-section">
2510
2511<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>
2512
2513<p>The format of the DrawSetStrokeAntialias method is:</p>
2514
2515<pre class="code">
2516 void DrawSetStrokeAntialias(DrawingWand *wand,
2517 const MagickBooleanType stroke_antialias)
2518</pre>
2519
2520<p>A description of each parameter follows:</p>
2521
2522<h5>wand</h5>
2523<p>the drawing wand.</p>
2524
2525<h5>stroke_antialias</h5>
2526<p>set to false (zero) to disable antialiasing</p>
2527
2528 </div>
cristy350dea42011-02-15 17:31:04 +00002529<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeDashArray">DrawSetStrokeDashArray</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002530<div class="doc-section">
2531
2532<p>DrawSetStrokeDashArray() specifies the pattern of dashes and gaps used to stroke paths. The stroke dash array represents an array of numbers that specify the lengths of alternating dashes and gaps in pixels. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. To remove an existing dash array, pass a zero number_elements argument and null dash_array. A typical stroke dash array might contain the members 5 3 2.</p>
2533
2534<p>The format of the DrawSetStrokeDashArray method is:</p>
2535
2536<pre class="code">
2537 MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand,
2538 const size_t number_elements,const double *dash_array)
2539</pre>
2540
2541<p>A description of each parameter follows:</p>
2542
2543<h5>wand</h5>
2544<p>the drawing wand.</p>
2545
2546<h5>number_elements</h5>
2547<p>number of elements in dash array</p>
2548
2549<h5>dash_array</h5>
2550<p>dash array values</p>
2551
2552 </div>
cristy350dea42011-02-15 17:31:04 +00002553<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002554<div class="doc-section">
2555
2556<p>DrawSetStrokeDashOffset() specifies the offset into the dash pattern to start the dash.</p>
2557
2558<p>The format of the DrawSetStrokeDashOffset method is:</p>
2559
2560<pre class="code">
2561 void DrawSetStrokeDashOffset(DrawingWand *wand,
2562 const double dash_offset)
2563</pre>
2564
2565<p>A description of each parameter follows:</p>
2566
2567<h5>wand</h5>
2568<p>the drawing wand.</p>
2569
2570<h5>dash_offset</h5>
2571<p>dash offset</p>
2572
2573 </div>
cristy350dea42011-02-15 17:31:04 +00002574<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeLineCap">DrawSetStrokeLineCap</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002575<div class="doc-section">
2576
2577<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>
2578
2579<p>The format of the DrawSetStrokeLineCap method is:</p>
2580
2581<pre class="code">
2582 void DrawSetStrokeLineCap(DrawingWand *wand,
2583 const LineCap linecap)
2584</pre>
2585
2586<p>A description of each parameter follows:</p>
2587
2588<h5>wand</h5>
2589<p>the drawing wand.</p>
2590
2591<h5>linecap</h5>
2592<p>linecap style</p>
2593
2594 </div>
cristy350dea42011-02-15 17:31:04 +00002595<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002596<div class="doc-section">
2597
2598<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>
2599
2600<p>The format of the DrawSetStrokeLineJoin method is:</p>
2601
2602<pre class="code">
2603 void DrawSetStrokeLineJoin(DrawingWand *wand,
2604 const LineJoin linejoin)
2605</pre>
2606
2607<p>A description of each parameter follows:</p>
2608
2609<h5>wand</h5>
2610<p>the drawing wand.</p>
2611
2612<h5>linejoin</h5>
2613<p>line join style</p>
2614
2615 </div>
cristy350dea42011-02-15 17:31:04 +00002616<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002617<div class="doc-section">
2618
2619<p>DrawSetStrokeMiterLimit() specifies the miter limit. When two line segments meet at a sharp angle and miter joins have been specified for 'lineJoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The miterLimit' imposes a limit on the ratio of the miter length to the 'lineWidth'.</p>
2620
2621<p>The format of the DrawSetStrokeMiterLimit method is:</p>
2622
2623<pre class="code">
2624 void DrawSetStrokeMiterLimit(DrawingWand *wand,
2625 const size_t miterlimit)
2626</pre>
2627
2628<p>A description of each parameter follows:</p>
2629
2630<h5>wand</h5>
2631<p>the drawing wand.</p>
2632
2633<h5>miterlimit</h5>
2634<p>miter limit</p>
2635
2636 </div>
cristy350dea42011-02-15 17:31:04 +00002637<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeOpacity">DrawSetStrokeOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002638<div class="doc-section">
2639
2640<p>DrawSetStrokeOpacity() specifies the opacity of stroked object outlines.</p>
2641
2642<p>The format of the DrawSetStrokeOpacity method is:</p>
2643
2644<pre class="code">
2645 void DrawSetStrokeOpacity(DrawingWand *wand,
2646 const double stroke_opacity)
2647</pre>
2648
2649<p>A description of each parameter follows:</p>
2650
2651<h5>wand</h5>
2652<p>the drawing wand.</p>
2653
2654<h5>stroke_opacity</h5>
2655<p>stroke opacity. The value 1.0 is opaque.</p>
2656
2657 </div>
cristy350dea42011-02-15 17:31:04 +00002658<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeWidth">DrawSetStrokeWidth</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002659<div class="doc-section">
2660
2661<p>DrawSetStrokeWidth() sets the width of the stroke used to draw object outlines.</p>
2662
2663<p>The format of the DrawSetStrokeWidth method is:</p>
2664
2665<pre class="code">
2666 void DrawSetStrokeWidth(DrawingWand *wand,
2667 const double stroke_width)
2668</pre>
2669
2670<p>A description of each parameter follows:</p>
2671
2672<h5>wand</h5>
2673<p>the drawing wand.</p>
2674
2675<h5>stroke_width</h5>
2676<p>stroke width</p>
2677
2678 </div>
cristy350dea42011-02-15 17:31:04 +00002679<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextAlignment">DrawSetTextAlignment</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002680<div class="doc-section">
2681
2682<p>DrawSetTextAlignment() specifies a text alignment to be applied when annotating with text.</p>
2683
2684<p>The format of the DrawSetTextAlignment method is:</p>
2685
2686<pre class="code">
2687 void DrawSetTextAlignment(DrawingWand *wand,const AlignType alignment)
2688</pre>
2689
2690<p>A description of each parameter follows:</p>
2691
2692<h5>wand</h5>
2693<p>the drawing wand.</p>
2694
2695<h5>alignment</h5>
2696<p>text alignment. One of UndefinedAlign, LeftAlign, CenterAlign, or RightAlign.</p>
2697
2698 </div>
cristy350dea42011-02-15 17:31:04 +00002699<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextAntialias">DrawSetTextAntialias</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002700<div class="doc-section">
2701
2702<p>DrawSetTextAntialias() controls whether text is antialiased. Text is antialiased by default.</p>
2703
2704<p>The format of the DrawSetTextAntialias method is:</p>
2705
2706<pre class="code">
2707 void DrawSetTextAntialias(DrawingWand *wand,
2708 const MagickBooleanType text_antialias)
2709</pre>
2710
2711<p>A description of each parameter follows:</p>
2712
2713<h5>wand</h5>
2714<p>the drawing wand.</p>
2715
2716<h5>text_antialias</h5>
2717<p>antialias boolean. Set to false (0) to disable antialiasing.</p>
2718
2719 </div>
cristy350dea42011-02-15 17:31:04 +00002720<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextDecoration">DrawSetTextDecoration</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002721<div class="doc-section">
2722
2723<p>DrawSetTextDecoration() specifies a decoration to be applied when annotating with text.</p>
2724
2725<p>The format of the DrawSetTextDecoration method is:</p>
2726
2727<pre class="code">
2728 void DrawSetTextDecoration(DrawingWand *wand,
2729 const DecorationType decoration)
2730</pre>
2731
2732<p>A description of each parameter follows:</p>
2733
2734<h5>wand</h5>
2735<p>the drawing wand.</p>
2736
2737<h5>decoration</h5>
2738<p>text decoration. One of NoDecoration, UnderlineDecoration, OverlineDecoration, or LineThroughDecoration</p>
2739
2740 </div>
cristy350dea42011-02-15 17:31:04 +00002741<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextEncoding">DrawSetTextEncoding</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002742<div class="doc-section">
2743
2744<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>
2745
2746<p>The format of the DrawSetTextEncoding method is:</p>
2747
2748<pre class="code">
2749 void DrawSetTextEncoding(DrawingWand *wand,const char *encoding)
2750</pre>
2751
2752<p>A description of each parameter follows:</p>
2753
2754<h5>wand</h5>
2755<p>the drawing wand.</p>
2756
2757<h5>encoding</h5>
2758<p>character string specifying text encoding</p>
2759
2760 </div>
cristy350dea42011-02-15 17:31:04 +00002761<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextKerning">DrawSetTextKerning</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002762<div class="doc-section">
2763
2764<p>DrawSetTextKerning() sets the spacing between characters in text.</p>
2765
2766<p>The format of the DrawSetTextKerning method is:</p>
2767
2768<pre class="code">
2769 void DrawSetTextKerning(DrawingWand *wand,const double kerning)
2770</pre>
2771
2772<p>A description of each parameter follows:</p>
2773
2774<h5>wand</h5>
2775<p>the drawing wand.</p>
2776
2777<h5>kerning</h5>
2778<p>text kerning</p>
2779
2780 </div>
cristy350dea42011-02-15 17:31:04 +00002781<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002782<div class="doc-section">
2783
2784<p>DrawSetTextInterwordSpacing() sets the spacing between line in text.</p>
2785
2786<p>The format of the DrawSetInterwordSpacing method is:</p>
2787
2788<pre class="code">
2789 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2790 const double interline_spacing)
2791</pre>
2792
2793<p>A description of each parameter follows:</p>
2794
2795<h5>wand</h5>
2796<p>the drawing wand.</p>
2797
2798<h5>interline_spacing</h5>
2799<p>text line spacing</p>
2800
2801 </div>
cristy350dea42011-02-15 17:31:04 +00002802<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002803<div class="doc-section">
2804
2805<p>DrawSetTextInterwordSpacing() sets the spacing between words in text.</p>
2806
2807<p>The format of the DrawSetInterwordSpacing method is:</p>
2808
2809<pre class="code">
2810 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2811 const double interword_spacing)
2812</pre>
2813
2814<p>A description of each parameter follows:</p>
2815
2816<h5>wand</h5>
2817<p>the drawing wand.</p>
2818
2819<h5>interword_spacing</h5>
2820<p>text word spacing</p>
2821
2822 </div>
cristy350dea42011-02-15 17:31:04 +00002823<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextUnderColor">DrawSetTextUnderColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002824<div class="doc-section">
2825
2826<p>DrawSetTextUnderColor() specifies the color of a background rectangle to place under text annotations.</p>
2827
2828<p>The format of the DrawSetTextUnderColor method is:</p>
2829
2830<pre class="code">
2831 void DrawSetTextUnderColor(DrawingWand *wand,
2832 const PixelWand *under_wand)
2833</pre>
2834
2835<p>A description of each parameter follows:</p>
2836
2837<h5>wand</h5>
2838<p>the drawing wand.</p>
2839
2840<h5>under_wand</h5>
2841<p>text under wand.</p>
2842
2843 </div>
cristy350dea42011-02-15 17:31:04 +00002844<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetVectorGraphics">DrawSetVectorGraphics</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002845<div class="doc-section">
2846
2847<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>
2848
2849<p>The format of the DrawSetVectorGraphics method is:</p>
2850
2851<pre class="code">
2852 MagickBooleanType DrawSetVectorGraphics(DrawingWand *wand,
2853 const char *xml)
2854</pre>
2855
2856<p>A description of each parameter follows:</p>
2857
2858<h5>wand</h5>
2859<p>the drawing wand.</p>
2860
2861<h5>xml</h5>
2862<p>the drawing wand XML.</p>
2863
2864 </div>
cristy350dea42011-02-15 17:31:04 +00002865<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSkewX">DrawSkewX</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002866<div class="doc-section">
2867
2868<p>DrawSkewX() skews the current coordinate system in the horizontal direction.</p>
2869
2870<p>The format of the DrawSkewX method is:</p>
2871
2872<pre class="code">
2873 void DrawSkewX(DrawingWand *wand,const double degrees)
2874</pre>
2875
2876<p>A description of each parameter follows:</p>
2877
2878<h5>wand</h5>
2879<p>the drawing wand.</p>
2880
2881<h5>degrees</h5>
2882<p>number of degrees to skew the coordinates</p>
2883
2884 </div>
cristy350dea42011-02-15 17:31:04 +00002885<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSkewY">DrawSkewY</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002886<div class="doc-section">
2887
2888<p>DrawSkewY() skews the current coordinate system in the vertical direction.</p>
2889
2890<p>The format of the DrawSkewY method is:</p>
2891
2892<pre class="code">
2893 void DrawSkewY(DrawingWand *wand,const double degrees)
2894</pre>
2895
2896<p>A description of each parameter follows:</p>
2897
2898<h5>wand</h5>
2899<p>the drawing wand.</p>
2900
2901<h5>degrees</h5>
2902<p>number of degrees to skew the coordinates</p>
2903
2904 </div>
cristy350dea42011-02-15 17:31:04 +00002905<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawTranslate">DrawTranslate</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002906<div class="doc-section">
2907
2908<p>DrawTranslate() applies a translation to the current coordinate system which moves the coordinate system origin to the specified coordinate.</p>
2909
2910<p>The format of the DrawTranslate method is:</p>
2911
2912<pre class="code">
2913 void DrawTranslate(DrawingWand *wand,const double x,
2914 const double y)
2915</pre>
2916
2917<p>A description of each parameter follows:</p>
2918
2919<h5>wand</h5>
2920<p>the drawing wand.</p>
2921
2922<h5>x</h5>
2923<p>new x ordinate for coordinate system origin</p>
2924
2925<h5>y</h5>
2926<p>new y ordinate for coordinate system origin</p>
2927
2928 </div>
cristy350dea42011-02-15 17:31:04 +00002929<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetViewbox">DrawSetViewbox</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002930<div class="doc-section">
2931
2932<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>
2933
2934<p>The format of the DrawSetViewbox method is:</p>
2935
2936<pre class="code">
2937 void DrawSetViewbox(DrawingWand *wand,size_t x1,
2938 size_t y1,size_t x2,size_t y2)
2939</pre>
2940
2941<p>A description of each parameter follows:</p>
2942
2943<h5>wand</h5>
2944<p>the drawing wand.</p>
2945
2946<h5>x1</h5>
2947<p>left x ordinate</p>
2948
2949<h5>y1</h5>
2950<p>top y ordinate</p>
2951
2952<h5>x2</h5>
2953<p>right x ordinate</p>
2954
2955<h5>y2</h5>
2956<p>bottom y ordinate</p>
2957
2958 </div>
cristy350dea42011-02-15 17:31:04 +00002959<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="IsDrawingWand">IsDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002960<div class="doc-section">
2961
2962<p>IsDrawingWand() returns MagickTrue if the wand is verified as a drawing wand.</p>
2963
2964<p>The format of the IsDrawingWand method is:</p>
2965
2966<pre class="code">
2967 MagickBooleanType IsDrawingWand(const DrawingWand *wand)
2968</pre>
2969
2970<p>A description of each parameter follows:</p>
2971
2972<h5>wand</h5>
2973<p>the drawing wand.</p>
2974
2975 </div>
cristy350dea42011-02-15 17:31:04 +00002976<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="NewDrawingWand">NewDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002977<div class="doc-section">
2978
2979<p>NewDrawingWand() returns a drawing wand required for all other methods in the API.</p>
2980
2981<p>The format of the NewDrawingWand method is:</p>
2982
2983<pre class="code">
2984 DrawingWand NewDrawingWand(void)
2985</pre>
2986
2987 </div>
cristy350dea42011-02-15 17:31:04 +00002988<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="PeekDrawingWand">PeekDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002989<div class="doc-section">
2990
2991<p>PeekDrawingWand() returns the current drawing wand.</p>
2992
2993<p>The format of the PeekDrawingWand method is:</p>
2994
2995<pre class="code">
2996 DrawInfo *PeekDrawingWand(const DrawingWand *wand)
2997</pre>
2998
2999<p>A description of each parameter follows:</p>
3000
3001<h5>wand</h5>
3002<p>the drawing wand.</p>
3003
3004 </div>
cristy350dea42011-02-15 17:31:04 +00003005<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="PopDrawingWand">PopDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +00003006<div class="doc-section">
3007
3008<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>
3009
3010<p>The format of the PopDrawingWand method is:</p>
3011
3012<pre class="code">
3013 MagickBooleanType PopDrawingWand(DrawingWand *wand)
3014</pre>
3015
3016<p>A description of each parameter follows:</p>
3017
3018<h5>wand</h5>
3019<p>the drawing wand.</p>
3020
3021 </div>
cristy350dea42011-02-15 17:31:04 +00003022<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="PushDrawingWand">PushDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +00003023<div class="doc-section">
3024
3025<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>
3026
3027<p>The format of the PushDrawingWand method is:</p>
3028
3029<pre class="code">
3030 MagickBooleanType PushDrawingWand(DrawingWand *wand)
3031</pre>
3032
3033<p>A description of each parameter follows:</p>
3034
3035<h5>wand</h5>
3036<p>the drawing wand.</p>
3037
3038 </div>
cristy3eaa0ef2010-03-06 20:35:26 +00003039
3040</div>
3041
3042<div id="linkbar">
cristyce69bb02010-07-27 19:49:46 +00003043 <span id="linkbar-west">&nbsp;</span>
cristy3eaa0ef2010-03-06 20:35:26 +00003044 <span id="linkbar-center">
3045 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> &bull;
cristya8902942010-07-30 00:49:52 +00003046 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
cristy3eaa0ef2010-03-06 20:35:26 +00003047 </span>
3048 <span id="linkbar-east">&nbsp;</span>
3049 </div>
3050 <div class="footer">
cristy4103d562010-12-10 01:38:54 +00003051 <span id="footer-west">&copy; 1999-2011 ImageMagick Studio LLC</span>
cristy3eaa0ef2010-03-06 20:35:26 +00003052 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
3053 </div>
3054 <div style="clear: both; margin: 0; width: 100%; "></div>
cristya8902942010-07-30 00:49:52 +00003055 <script type="text/javascript">
3056 var _gaq = _gaq || [];
3057 _gaq.push(['_setAccount', 'UA-17690367-1']);
3058 _gaq.push(['_trackPageview']);
3059
3060 (function() {
3061 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
3062 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
3063 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
3064 })();
3065 </script>
cristy3eaa0ef2010-03-06 20:35:26 +00003066</body>
3067</html>