blob: 6dfbca89e32c8659816a0643500868a2a29f5cdd [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">
cristyba1758d2011-06-03 01:29:12 +0000163 <a rel="follow" title="Sponsor: Web Hosting Deals" href="http://www.webhostingdeals.org">Web Hosting Deals</a><!-- 201111010270 chee.hoa darin -->
164</div>
165<div class="sponsor">
166 <a rel="follow" title="Sponsor: Web Hosting Reviews" href="http://www.webhostingsecretrevealed.com">Web Hosting Secret Revealed</a><!-- 201204010540 iamchee jerry -->
167</div>
168<div class="sponsor">
169 <a rel="follow" title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
170</div>
171<div class="sponsor">
cristy4bf6e232011-05-21 01:43:33 +0000172 <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 +0000173</div>
174<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000175 <a rel="follow" title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201303011500 r.leo -->
cristy4c54bbb2011-03-17 13:53:13 +0000176</div>
177<div class="sponsor">
cristy575d5ee2011-05-24 01:59:01 +0000178 <a rel="follow" title="Sponsor: Website Hosting" href="http://www.hostreviewgeeks.com">Website Hosting</a><!-- 201110010090 alexanian media -->
cristy4bf6e232011-05-21 01:43:33 +0000179</div>
180<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000181 <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 +0000182</div>
183<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000184 <a rel="follow" title="Sponsor: Best Web Hosting" href="http://webhostinggeeks.com">Best Web Hosting</a><!-- 201110010720 -->
cristy7d52cd62010-10-01 17:26:59 +0000185</div>
186<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000187 <a rel="follow" title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
cristyee742642011-02-26 02:49:59 +0000188</div>
189<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000190 <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 +0000191</div>
cristyec6b4752011-01-08 03:16:23 +0000192<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000193 <a rel="follow" title="Sponsor: Web Hosting Ratings" href="http://webhostingrating.com">Web Hosting Ratings</a><!-- 201110010720 -->
cristybaacd172011-04-30 23:11:03 +0000194</div>
195<div class="sponsor">
cristye6e84152011-06-06 14:16:49 +0000196 <a rel="follow" title="Sponsor: Kaffeemaschinen reparatur" href="http://www.kaffeemaschinen-reparatur.de">Kaffeemaschinen reparatur</a><!-- 2011090100060 Temurbas atlas.multimedia-->
cristyec6b4752011-01-08 03:16:23 +0000197</div>
cristy3ed852e2009-09-05 21:47:34 +0000198</div>
199</div>
cristyce69bb02010-07-27 19:49:46 +0000200</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000201
cristyce69bb02010-07-27 19:49:46 +0000202<div class="eastbar">
cristyb52981c2011-03-19 17:09:31 +0000203
cristy3eaa0ef2010-03-06 20:35:26 +0000204</div>
205
206<div class="main">
207
cristy350dea42011-02-15 17:31:04 +0000208<h1>Module drawing-wand Methods</h1>
cristy6f77f692011-02-15 15:31:39 +0000209<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 +0000210
cristy350dea42011-02-15 17:31:04 +0000211<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="ClearDrawingWand">ClearDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000212<div class="doc-section">
213
cristyacc04882011-05-04 23:03:43 +0000214<p>ClearDrawingWand() clears resources associated with the drawing wand.</p>
cristy6f77f692011-02-15 15:31:39 +0000215
216<p>The format of the ClearDrawingWand method is:</p>
217
218<pre class="code">
cristyacc04882011-05-04 23:03:43 +0000219 void ClearDrawingWand(DrawingWand *wand)
cristy6f77f692011-02-15 15:31:39 +0000220</pre>
221
222<p>A description of each parameter follows:</p>
223
224<h5>wand</h5>
cristyacc04882011-05-04 23:03:43 +0000225<p>the drawing wand to clear.</p>
cristy6f77f692011-02-15 15:31:39 +0000226
227 </div>
cristy350dea42011-02-15 17:31:04 +0000228<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="CloneDrawingWand">CloneDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000229<div class="doc-section">
230
231<p>CloneDrawingWand() makes an exact copy of the specified wand.</p>
232
233<p>The format of the CloneDrawingWand method is:</p>
234
235<pre class="code">
236 DrawingWand *CloneDrawingWand(const DrawingWand *wand)
237</pre>
238
239<p>A description of each parameter follows:</p>
240
241<h5>wand</h5>
242<p>the magick wand.</p>
243
244 </div>
cristy350dea42011-02-15 17:31:04 +0000245<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DestroyDrawingWand">DestroyDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000246<div class="doc-section">
247
248<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>
249
250<p>The format of the DestroyDrawingWand method is:</p>
251
252<pre class="code">
253 DrawingWand *DestroyDrawingWand(DrawingWand *wand)
254</pre>
255
256<p>A description of each parameter follows:</p>
257
258<h5>wand</h5>
cristyacc04882011-05-04 23:03:43 +0000259<p>the drawing wand to destroy.</p>
cristy6f77f692011-02-15 15:31:39 +0000260
261 </div>
cristy350dea42011-02-15 17:31:04 +0000262<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawAffine">DrawAffine</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000263<div class="doc-section">
264
265<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>
266
267<p>The format of the DrawAffine method is:</p>
268
269<pre class="code">
270 void DrawAffine(DrawingWand *wand,const AffineMatrix *affine)
271</pre>
272
273<p>A description of each parameter follows:</p>
274
275<h5>wand</h5>
276<p>Drawing wand</p>
277
278<h5>affine</h5>
279<p>Affine matrix parameters</p>
280
281 </div>
cristy350dea42011-02-15 17:31:04 +0000282<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawAnnotation">DrawAnnotation</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000283<div class="doc-section">
284
285<p>DrawAnnotation() draws text on the image.</p>
286
287<p>The format of the DrawAnnotation method is:</p>
288
289<pre class="code">
290 void DrawAnnotation(DrawingWand *wand,const double x,
291 const double y,const unsigned char *text)
292</pre>
293
294<p>A description of each parameter follows:</p>
295
296<h5>wand</h5>
297<p>the drawing wand.</p>
298
299<h5>x</h5>
300<p>x ordinate to left of text</p>
301
302<h5>y</h5>
303<p>y ordinate to text baseline</p>
304
305<h5>text</h5>
306<p>text to draw</p>
307
308 </div>
cristy350dea42011-02-15 17:31:04 +0000309<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawArc">DrawArc</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000310<div class="doc-section">
311
312<p>DrawArc() draws an arc falling within a specified bounding rectangle on the image.</p>
313
314<p>The format of the DrawArc method is:</p>
315
316<pre class="code">
317 void DrawArc(DrawingWand *wand,const double sx,const double sy,
318 const double ex,const double ey,const double sd,const double ed)
319</pre>
320
321<p>A description of each parameter follows:</p>
322
323<h5>wand</h5>
324<p>the drawing wand.</p>
325
326<h5>sx</h5>
327<p>starting x ordinate of bounding rectangle</p>
328
329<h5>sy</h5>
330<p>starting y ordinate of bounding rectangle</p>
331
332<h5>ex</h5>
333<p>ending x ordinate of bounding rectangle</p>
334
335<h5>ey</h5>
336<p>ending y ordinate of bounding rectangle</p>
337
338<h5>sd</h5>
339<p>starting degrees of rotation</p>
340
341<h5>ed</h5>
342<p>ending degrees of rotation</p>
343
344 </div>
cristy350dea42011-02-15 17:31:04 +0000345<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawBezier">DrawBezier</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000346<div class="doc-section">
347
348<p>DrawBezier() draws a bezier curve through a set of points on the image.</p>
349
350<p>The format of the DrawBezier method is:</p>
351
352<pre class="code">
353 void DrawBezier(DrawingWand *wand,
354 const size_t number_coordinates,const PointInfo *coordinates)
355</pre>
356
357<p>A description of each parameter follows:</p>
358
359<h5>wand</h5>
360<p>the drawing wand.</p>
361
362<h5>number_coordinates</h5>
363<p>number of coordinates</p>
364
365<h5>coordinates</h5>
366<p>coordinates</p>
367
368 </div>
cristy350dea42011-02-15 17:31:04 +0000369<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawCircle">DrawCircle</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000370<div class="doc-section">
371
372<p>DrawCircle() draws a circle on the image.</p>
373
374<p>The format of the DrawCircle method is:</p>
375
376<pre class="code">
377 void DrawCircle(DrawingWand *wand,const double ox,
378 const double oy,const double px, const double py)
379</pre>
380
381<p>A description of each parameter follows:</p>
382
383<h5>wand</h5>
384<p>the drawing wand.</p>
385
386<h5>ox</h5>
387<p>origin x ordinate</p>
388
389<h5>oy</h5>
390<p>origin y ordinate</p>
391
392<h5>px</h5>
393<p>perimeter x ordinate</p>
394
395<h5>py</h5>
396<p>perimeter y ordinate</p>
397
398 </div>
cristy350dea42011-02-15 17:31:04 +0000399<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawClearException">DrawClearException</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000400<div class="doc-section">
401
402<p>DrawClearException() clear any exceptions associated with the wand.</p>
403
404<p>The format of the DrawClearException method is:</p>
405
406<pre class="code">
407 MagickBooleanType DrawClearException(DrawWand *wand)
408</pre>
409
410<p>A description of each parameter follows:</p>
411
412<h5>wand</h5>
413<p>the drawing wand.</p>
414
415 </div>
cristy350dea42011-02-15 17:31:04 +0000416<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawComposite">DrawComposite</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000417<div class="doc-section">
418
419<p>DrawComposite() composites an image onto the current image, using the specified composition operator, specified position, and at the specified size.</p>
420
421<p>The format of the DrawComposite method is:</p>
422
423<pre class="code">
424 MagickBooleanType DrawComposite(DrawingWand *wand,
425 const CompositeOperator compose,const double x,
426 const double y,const double width,const double height,
427 MagickWand *magick_wand)
428</pre>
429
430<p>A description of each parameter follows:</p>
431
432<h5>wand</h5>
433<p>the drawing wand.</p>
434
435<h5>compose</h5>
436<p>composition operator</p>
437
438<h5>x</h5>
439<p>x ordinate of top left corner</p>
440
441<h5>y</h5>
442<p>y ordinate of top left corner</p>
443
444<h5>width</h5>
445<p>Width to resize image to prior to compositing. Specify zero to use existing width.</p>
446
447<h5>height</h5>
448<p>Height to resize image to prior to compositing. Specify zero to use existing height.</p>
449
450<h5>magick_wand</h5>
451<p>Image to composite is obtained from this wand.</p>
452
453 </div>
cristy350dea42011-02-15 17:31:04 +0000454<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawColor">DrawColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000455<div class="doc-section">
456
457<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>
458
459<pre class="text">
460 PointMethod: Recolors the target pixel
461 ReplaceMethod: Recolor any pixel that matches the target pixel.
462 FloodfillMethod: Recolors target pixels and matching neighbors.
463 ResetMethod: Recolor all pixels.
464</pre>
465
466<p>The format of the DrawColor method is:</p>
467
468<pre class="code">
469 void DrawColor(DrawingWand *wand,const double x,const double y,
470 const PaintMethod paint_method)
471</pre>
472
473<p>A description of each parameter follows:</p>
474
475<h5>wand</h5>
476<p>the drawing wand.</p>
477
478<h5>x</h5>
479<p>x ordinate.</p>
480
481<h5>y</h5>
482<p>y ordinate.</p>
483
484<h5>paint_method</h5>
485<p>paint method.</p>
486
487 </div>
cristy350dea42011-02-15 17:31:04 +0000488<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawComment">DrawComment</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000489<div class="doc-section">
490
491<p>DrawComment() adds a comment to a vector output stream.</p>
492
493<p>The format of the DrawComment method is:</p>
494
495<pre class="code">
496 void DrawComment(DrawingWand *wand,const char *comment)
497</pre>
498
499<p>A description of each parameter follows:</p>
500
501<h5>wand</h5>
502<p>the drawing wand.</p>
503
504<h5>comment</h5>
505<p>comment text</p>
506
507 </div>
cristy350dea42011-02-15 17:31:04 +0000508<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawEllipse">DrawEllipse</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000509<div class="doc-section">
510
511<p>DrawEllipse() draws an ellipse on the image.</p>
512
513<p>The format of the DrawEllipse method is:</p>
514
515<pre class="code">
516 void DrawEllipse(DrawingWand *wand,const double ox,const double oy,
517 const double rx,const double ry,const double start,const double end)
518</pre>
519
520<p>A description of each parameter follows:</p>
521
522<h5>wand</h5>
523<p>the drawing wand.</p>
524
525<h5>ox</h5>
526<p>origin x ordinate</p>
527
528<h5>oy</h5>
529<p>origin y ordinate</p>
530
531<h5>rx</h5>
532<p>radius in x</p>
533
534<h5>ry</h5>
535<p>radius in y</p>
536
537<h5>start</h5>
538<p>starting rotation in degrees</p>
539
540<h5>end</h5>
541<p>ending rotation in degrees</p>
542
543 </div>
cristy350dea42011-02-15 17:31:04 +0000544<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetBorderColor">DrawGetBorderColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000545<div class="doc-section">
546
547<p>DrawGetBorderColor() returns the border color used for drawing bordered objects.</p>
548
549<p>The format of the DrawGetBorderColor method is:</p>
550
551<pre class="code">
552 void DrawGetBorderColor(const DrawingWand *wand,
553 PixelWand *border_color)
554</pre>
555
556<p>A description of each parameter follows:</p>
557
558<h5>wand</h5>
559<p>the drawing wand.</p>
560
561<h5>border_color</h5>
562<p>Return the border color.</p>
563
564 </div>
cristy350dea42011-02-15 17:31:04 +0000565<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipPath">DrawGetClipPath</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000566<div class="doc-section">
567
568<p>DrawGetClipPath() obtains the current clipping path ID. The value returned must be deallocated by the user when it is no longer needed.</p>
569
570<p>The format of the DrawGetClipPath method is:</p>
571
572<pre class="code">
573 char *DrawGetClipPath(const DrawingWand *wand)
574</pre>
575
576<p>A description of each parameter follows:</p>
577
578<h5>wand</h5>
579<p>the drawing wand.</p>
580
581 </div>
cristy350dea42011-02-15 17:31:04 +0000582<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipRule">DrawGetClipRule</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000583<div class="doc-section">
584
585<p>DrawGetClipRule() returns the current polygon fill rule to be used by the clipping path.</p>
586
587<p>The format of the DrawGetClipRule method is:</p>
588
589<pre class="code">
590 FillRule DrawGetClipRule(const DrawingWand *wand)
591</pre>
592
593<p>A description of each parameter follows:</p>
594
595<h5>wand</h5>
596<p>the drawing wand.</p>
597
598 </div>
cristy350dea42011-02-15 17:31:04 +0000599<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipUnits">DrawGetClipUnits</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000600<div class="doc-section">
601
602<p>DrawGetClipUnits() returns the interpretation of clip path units.</p>
603
604<p>The format of the DrawGetClipUnits method is:</p>
605
606<pre class="code">
607 ClipPathUnits DrawGetClipUnits(const DrawingWand *wand)
608</pre>
609
610<p>A description of each parameter follows:</p>
611
612<h5>wand</h5>
613<p>the drawing wand.</p>
614
615 </div>
cristy350dea42011-02-15 17:31:04 +0000616<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetException">DrawGetException</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000617<div class="doc-section">
618
619<p>DrawGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>
620
621<p>The format of the DrawGetException method is:</p>
622
623<pre class="code">
624 char *DrawGetException(const DrawWand *wand,
625 ExceptionType *severity)
626</pre>
627
628<p>A description of each parameter follows:</p>
629
630<h5>wand</h5>
631<p>the drawing wand.</p>
632
633<h5>severity</h5>
634<p>the severity of the error is returned here.</p>
635
636 </div>
cristy350dea42011-02-15 17:31:04 +0000637<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetExceptionType">DrawGetExceptionType</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000638<div class="doc-section">
639
640<p>DrawGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p>
641
642<p>The format of the DrawGetExceptionType method is:</p>
643
644<pre class="code">
645 ExceptionType DrawGetExceptionType(const DrawWand *wand)
646</pre>
647
648<p>A description of each parameter follows:</p>
649
650<h5>wand</h5>
651<p>the magick wand.</p>
652
653 </div>
cristy350dea42011-02-15 17:31:04 +0000654<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillColor">DrawGetFillColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000655<div class="doc-section">
656
657<p>DrawGetFillColor() returns the fill color used for drawing filled objects.</p>
658
659<p>The format of the DrawGetFillColor method is:</p>
660
661<pre class="code">
662 void DrawGetFillColor(const DrawingWand *wand,
663 PixelWand *fill_color)
664</pre>
665
666<p>A description of each parameter follows:</p>
667
668<h5>wand</h5>
669<p>the drawing wand.</p>
670
671<h5>fill_color</h5>
672<p>Return the fill color.</p>
673
674 </div>
cristy350dea42011-02-15 17:31:04 +0000675<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillOpacity">DrawGetFillOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000676<div class="doc-section">
677
678<p>DrawGetFillOpacity() returns the opacity used when drawing using the fill color or fill texture. Fully opaque is 1.0.</p>
679
680<p>The format of the DrawGetFillOpacity method is:</p>
681
682<pre class="code">
683 double DrawGetFillOpacity(const DrawingWand *wand)
684</pre>
685
686<p>A description of each parameter follows:</p>
687
688<h5>wand</h5>
689<p>the drawing wand.</p>
690
691 </div>
cristy350dea42011-02-15 17:31:04 +0000692<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillRule">DrawGetFillRule</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000693<div class="doc-section">
694
695<p>DrawGetFillRule() returns the fill rule used while drawing polygons.</p>
696
697<p>The format of the DrawGetFillRule method is:</p>
698
699<pre class="code">
700 FillRule DrawGetFillRule(const DrawingWand *wand)
701</pre>
702
703<p>A description of each parameter follows:</p>
704
705<h5>wand</h5>
706<p>the drawing wand.</p>
707
708 </div>
cristy350dea42011-02-15 17:31:04 +0000709<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFont">DrawGetFont</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000710<div class="doc-section">
711
712<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>
713
714<p>The format of the DrawGetFont method is:</p>
715
716<pre class="code">
717 char *DrawGetFont(const DrawingWand *wand)
718</pre>
719
720<p>A description of each parameter follows:</p>
721
722<h5>wand</h5>
723<p>the drawing wand.</p>
724
725 </div>
cristy350dea42011-02-15 17:31:04 +0000726<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontFamily">DrawGetFontFamily</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000727<div class="doc-section">
728
729<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>
730
731<p>The format of the DrawGetFontFamily method is:</p>
732
733<pre class="code">
734 char *DrawGetFontFamily(const DrawingWand *wand)
735</pre>
736
737<p>A description of each parameter follows:</p>
738
739<h5>wand</h5>
740<p>the drawing wand.</p>
741
742 </div>
cristy350dea42011-02-15 17:31:04 +0000743<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontResolution">DrawGetFontResolution</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000744<div class="doc-section">
745
746<p>DrawGetFontResolution() gets the image X and Y resolution.</p>
747
748<p>The format of the DrawGetFontResolution method is:</p>
749
750<pre class="code">
751 DrawBooleanType DrawGetFontResolution(const DrawingWand *wand,
752 double *x,double *y)
753</pre>
754
755<p>A description of each parameter follows:</p>
756
757<h5>wand</h5>
758<p>the magick wand.</p>
759
760<h5>x</h5>
761<p>the x-resolution.</p>
762
763<h5>y</h5>
764<p>the y-resolution.</p>
765
766 </div>
cristy350dea42011-02-15 17:31:04 +0000767<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontSize">DrawGetFontSize</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000768<div class="doc-section">
769
770<p>DrawGetFontSize() returns the font pointsize used when annotating with text.</p>
771
772<p>The format of the DrawGetFontSize method is:</p>
773
774<pre class="code">
775 double DrawGetFontSize(const DrawingWand *wand)
776</pre>
777
778<p>A description of each parameter follows:</p>
779
780<h5>wand</h5>
781<p>the drawing wand.</p>
782
783 </div>
cristy350dea42011-02-15 17:31:04 +0000784<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontStretch">DrawGetFontStretch</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000785<div class="doc-section">
786
787<p>DrawGetFontStretch() returns the font stretch used when annotating with text.</p>
788
789<p>The format of the DrawGetFontStretch method is:</p>
790
791<pre class="code">
792 StretchType DrawGetFontStretch(const DrawingWand *wand)
793</pre>
794
795<p>A description of each parameter follows:</p>
796
797<h5>wand</h5>
798<p>the drawing wand.</p>
799
800 </div>
cristy350dea42011-02-15 17:31:04 +0000801<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontStyle">DrawGetFontStyle</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000802<div class="doc-section">
803
804<p>DrawGetFontStyle() returns the font style used when annotating with text.</p>
805
806<p>The format of the DrawGetFontStyle method is:</p>
807
808<pre class="code">
809 StyleType DrawGetFontStyle(const DrawingWand *wand)
810</pre>
811
812<p>A description of each parameter follows:</p>
813
814<h5>wand</h5>
815<p>the drawing wand.</p>
816
817 </div>
cristy350dea42011-02-15 17:31:04 +0000818<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontWeight">DrawGetFontWeight</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000819<div class="doc-section">
820
821<p>DrawGetFontWeight() returns the font weight used when annotating with text.</p>
822
823<p>The format of the DrawGetFontWeight method is:</p>
824
825<pre class="code">
826 size_t DrawGetFontWeight(const DrawingWand *wand)
827</pre>
828
829<p>A description of each parameter follows:</p>
830
831<h5>wand</h5>
832<p>the drawing wand.</p>
833
834 </div>
cristy350dea42011-02-15 17:31:04 +0000835<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetGravity">DrawGetGravity</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000836<div class="doc-section">
837
838<p>DrawGetGravity() returns the text placement gravity used when annotating with text.</p>
839
840<p>The format of the DrawGetGravity method is:</p>
841
842<pre class="code">
843 GravityType DrawGetGravity(const DrawingWand *wand)
844</pre>
845
846<p>A description of each parameter follows:</p>
847
848<h5>wand</h5>
849<p>the drawing wand.</p>
850
851 </div>
cristy350dea42011-02-15 17:31:04 +0000852<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetOpacity">DrawGetOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000853<div class="doc-section">
854
855<p>DrawGetOpacity() returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.</p>
856
857<p>The format of the DrawGetOpacity method is:</p>
858
859<pre class="code">
860 double DrawGetOpacity(const DrawingWand *wand)
861</pre>
862
863<p>A description of each parameter follows:</p>
864
865<h5>wand</h5>
866<p>the drawing wand.</p>
867
868 </div>
cristy350dea42011-02-15 17:31:04 +0000869<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeAntialias">DrawGetStrokeAntialias</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000870<div class="doc-section">
871
872<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>
873
874<p>The format of the DrawGetStrokeAntialias method is:</p>
875
876<pre class="code">
877 MagickBooleanType DrawGetStrokeAntialias(const DrawingWand *wand)
878</pre>
879
880<p>A description of each parameter follows:</p>
881
882<h5>wand</h5>
883<p>the drawing wand.</p>
884
885 </div>
cristy350dea42011-02-15 17:31:04 +0000886<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeColor">DrawGetStrokeColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000887<div class="doc-section">
888
889<p>DrawGetStrokeColor() returns the color used for stroking object outlines.</p>
890
891<p>The format of the DrawGetStrokeColor method is:</p>
892
893<pre class="code">
894 void DrawGetStrokeColor(const DrawingWand *wand,
895 $ PixelWand *stroke_color)
896</pre>
897
898<p>A description of each parameter follows:</p>
899
900<h5>wand</h5>
901<p>the drawing wand.</p>
902
903<h5>stroke_color</h5>
904<p>Return the stroke color.</p>
905
906 </div>
cristy350dea42011-02-15 17:31:04 +0000907<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeDashArray">DrawGetStrokeDashArray</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000908<div class="doc-section">
909
910<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>
911
912<p>The format of the DrawGetStrokeDashArray method is:</p>
913
914<pre class="code">
915 double *DrawGetStrokeDashArray(const DrawingWand *wand,
916 size_t *number_elements)
917</pre>
918
919<p>A description of each parameter follows:</p>
920
921<h5>wand</h5>
922<p>the drawing wand.</p>
923
924<h5>number_elements</h5>
925<p>address to place number of elements in dash array</p>
926
927 </div>
cristy350dea42011-02-15 17:31:04 +0000928<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000929<div class="doc-section">
930
931<p>DrawGetStrokeDashOffset() returns the offset into the dash pattern to start the dash.</p>
932
933<p>The format of the DrawGetStrokeDashOffset method is:</p>
934
935<pre class="code">
936 double DrawGetStrokeDashOffset(const DrawingWand *wand)
937</pre>
938
939<p>A description of each parameter follows:</p>
940
941<h5>wand</h5>
942<p>the drawing wand.</p>
943
944 </div>
cristy350dea42011-02-15 17:31:04 +0000945<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeLineCap">DrawGetStrokeLineCap</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000946<div class="doc-section">
947
948<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>
949
950<p>The format of the DrawGetStrokeLineCap method is:</p>
951
952<pre class="code">
953 LineCap DrawGetStrokeLineCap(const DrawingWand *wand)
954</pre>
955
956<p>A description of each parameter follows:</p>
957
958<h5>wand</h5>
959<p>the drawing wand.</p>
960
961 </div>
cristy350dea42011-02-15 17:31:04 +0000962<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000963<div class="doc-section">
964
965<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>
966
967<p>The format of the DrawGetStrokeLineJoin method is:</p>
968
969<pre class="code">
970 LineJoin DrawGetStrokeLineJoin(const DrawingWand *wand)
971</pre>
972
973<p>A description of each parameter follows:</p>
974
975<h5>wand</h5>
976<p>the drawing wand.</p>
977
978 </div>
cristy350dea42011-02-15 17:31:04 +0000979<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000980<div class="doc-section">
981
982<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>
983
984<p>The format of the DrawGetStrokeMiterLimit method is:</p>
985
986<pre class="code">
987 size_t DrawGetStrokeMiterLimit(const DrawingWand *wand)
988</pre>
989
990<p>A description of each parameter follows:</p>
991
992<h5>wand</h5>
993<p>the drawing wand.</p>
994
995 </div>
cristy350dea42011-02-15 17:31:04 +0000996<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeOpacity">DrawGetStrokeOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000997<div class="doc-section">
998
999<p>DrawGetStrokeOpacity() returns the opacity of stroked object outlines.</p>
1000
1001<p>The format of the DrawGetStrokeOpacity method is:</p>
1002
1003<pre class="code">
1004 double DrawGetStrokeOpacity(const DrawingWand *wand)
1005</pre>
1006
1007<p>A description of each parameter follows:</p>
1008
1009<h5>wand</h5>
1010<p>the drawing wand.</p>
1011
1012 </div>
cristy350dea42011-02-15 17:31:04 +00001013<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeWidth">DrawGetStrokeWidth</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001014<div class="doc-section">
1015
1016<p>DrawGetStrokeWidth() returns the width of the stroke used to draw object outlines.</p>
1017
1018<p>The format of the DrawGetStrokeWidth method is:</p>
1019
1020<pre class="code">
1021 double DrawGetStrokeWidth(const DrawingWand *wand)
1022</pre>
1023
1024<p>A description of each parameter follows:</p>
1025
1026<h5>wand</h5>
1027<p>the drawing wand.</p>
1028
1029 </div>
cristy350dea42011-02-15 17:31:04 +00001030<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextAlignment">DrawGetTextAlignment</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001031<div class="doc-section">
1032
1033<p>DrawGetTextAlignment() returns the alignment applied when annotating with text.</p>
1034
1035<p>The format of the DrawGetTextAlignment method is:</p>
1036
1037<pre class="code">
1038 AlignType DrawGetTextAlignment(DrawingWand *wand)
1039</pre>
1040
1041<p>A description of each parameter follows:</p>
1042
1043<h5>wand</h5>
1044<p>the drawing wand.</p>
1045
1046 </div>
cristy350dea42011-02-15 17:31:04 +00001047<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextAntialias">DrawGetTextAntialias</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001048<div class="doc-section">
1049
1050<p>DrawGetTextAntialias() returns the current text antialias setting, which determines whether text is antialiased. Text is antialiased by default.</p>
1051
1052<p>The format of the DrawGetTextAntialias method is:</p>
1053
1054<pre class="code">
1055 MagickBooleanType DrawGetTextAntialias(const DrawingWand *wand)
1056</pre>
1057
1058<p>A description of each parameter follows:</p>
1059
1060<h5>wand</h5>
1061<p>the drawing wand.</p>
1062
1063 </div>
cristy350dea42011-02-15 17:31:04 +00001064<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextDecoration">DrawGetTextDecoration</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001065<div class="doc-section">
1066
1067<p>DrawGetTextDecoration() returns the decoration applied when annotating with text.</p>
1068
1069<p>The format of the DrawGetTextDecoration method is:</p>
1070
1071<pre class="code">
1072 DecorationType DrawGetTextDecoration(DrawingWand *wand)
1073</pre>
1074
1075<p>A description of each parameter follows:</p>
1076
1077<h5>wand</h5>
1078<p>the drawing wand.</p>
1079
1080 </div>
cristy350dea42011-02-15 17:31:04 +00001081<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextEncoding">DrawGetTextEncoding</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001082<div class="doc-section">
1083
1084<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>
1085
1086<p>The format of the DrawGetTextEncoding method is:</p>
1087
1088<pre class="code">
1089 char *DrawGetTextEncoding(const DrawingWand *wand)
1090</pre>
1091
1092<p>A description of each parameter follows:</p>
1093
1094<h5>wand</h5>
1095<p>the drawing wand.</p>
1096
1097 </div>
cristy350dea42011-02-15 17:31:04 +00001098<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextKerning">DrawGetTextKerning</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001099<div class="doc-section">
1100
1101<p>DrawGetTextKerning() gets the spacing between characters in text.</p>
1102
1103<p>The format of the DrawSetFontKerning method is:</p>
1104
1105<pre class="code">
1106 double DrawGetTextKerning(DrawingWand *wand)
1107</pre>
1108
1109<p>A description of each parameter follows:</p>
1110
1111<h5>wand</h5>
1112<p>the drawing wand.</p>
1113
1114 </div>
cristy350dea42011-02-15 17:31:04 +00001115<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001116<div class="doc-section">
1117
1118<p>DrawGetTextInterwordSpacing() gets the spacing between lines in text.</p>
1119
1120<p>The format of the DrawSetFontKerning method is:</p>
1121
1122<pre class="code">
1123 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1124</pre>
1125
1126<p>A description of each parameter follows:</p>
1127
1128<h5>wand</h5>
1129<p>the drawing wand.</p>
1130
1131 </div>
cristy350dea42011-02-15 17:31:04 +00001132<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001133<div class="doc-section">
1134
1135<p>DrawGetTextInterwordSpacing() gets the spacing between words in text.</p>
1136
1137<p>The format of the DrawSetFontKerning method is:</p>
1138
1139<pre class="code">
1140 double DrawGetTextInterwordSpacing(DrawingWand *wand)
1141</pre>
1142
1143<p>A description of each parameter follows:</p>
1144
1145<h5>wand</h5>
1146<p>the drawing wand.</p>
1147
1148 </div>
cristy350dea42011-02-15 17:31:04 +00001149<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetVectorGraphics">DrawGetVectorGraphics</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001150<div class="doc-section">
1151
1152<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>
1153
1154<p>The format of the DrawGetVectorGraphics method is:</p>
1155
1156<pre class="code">
1157 char *DrawGetVectorGraphics(const DrawingWand *wand)
1158</pre>
1159
1160<p>A description of each parameter follows:</p>
1161
1162<h5>wand</h5>
1163<p>the drawing wand.</p>
1164
1165 </div>
cristy350dea42011-02-15 17:31:04 +00001166<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetTextUnderColor">DrawGetTextUnderColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001167<div class="doc-section">
1168
1169<p>DrawGetTextUnderColor() returns the color of a background rectangle to place under text annotations.</p>
1170
1171<p>The format of the DrawGetTextUnderColor method is:</p>
1172
1173<pre class="code">
1174 void DrawGetTextUnderColor(const DrawingWand *wand,
1175 PixelWand *under_color)
1176</pre>
1177
1178<p>A description of each parameter follows:</p>
1179
1180<h5>wand</h5>
1181<p>the drawing wand.</p>
1182
1183<h5>under_color</h5>
1184<p>Return the under color.</p>
1185
1186 </div>
cristy350dea42011-02-15 17:31:04 +00001187<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawLine">DrawLine</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001188<div class="doc-section">
1189
1190<p>DrawLine() draws a line on the image using the current stroke color, stroke opacity, and stroke width.</p>
1191
1192<p>The format of the DrawLine method is:</p>
1193
1194<pre class="code">
1195 void DrawLine(DrawingWand *wand,const double sx,const double sy,
1196 const double ex,const double ey)
1197</pre>
1198
1199<p>A description of each parameter follows:</p>
1200
1201<h5>wand</h5>
1202<p>the drawing wand.</p>
1203
1204<h5>sx</h5>
1205<p>starting x ordinate</p>
1206
1207<h5>sy</h5>
1208<p>starting y ordinate</p>
1209
1210<h5>ex</h5>
1211<p>ending x ordinate</p>
1212
1213<h5>ey</h5>
1214<p>ending y ordinate</p>
1215
1216 </div>
cristy350dea42011-02-15 17:31:04 +00001217<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawMatte">DrawMatte</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001218<div class="doc-section">
1219
1220<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>
1221
1222<pre class="text">
1223 PointMethod: Select the target pixel
1224 ReplaceMethod: Select any pixel that matches the target pixel.
1225 FloodfillMethod: Select the target pixel and matching neighbors.
1226 FillToBorderMethod: Select the target pixel and neighbors not matching
1227 border color.
1228 ResetMethod: Select all pixels.
1229</pre>
1230
1231<p>The format of the DrawMatte method is:</p>
1232
1233<pre class="code">
1234 void DrawMatte(DrawingWand *wand,const double x,const double y,
1235 const PaintMethod paint_method)
1236</pre>
1237
1238<p>A description of each parameter follows:</p>
1239
1240<h5>wand</h5>
1241<p>the drawing wand.</p>
1242
1243<h5>x</h5>
1244<p>x ordinate</p>
1245
1246<h5>y</h5>
1247<p>y ordinate</p>
1248
1249<h5>paint_method</h5>
1250<p>paint method.</p>
1251
1252 </div>
cristy350dea42011-02-15 17:31:04 +00001253<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathClose">DrawPathClose</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001254<div class="doc-section">
1255
1256<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>
1257
1258<p>The format of the DrawPathClose method is:</p>
1259
1260<pre class="code">
1261 void DrawPathClose(DrawingWand *wand)
1262</pre>
1263
1264<p>A description of each parameter follows:</p>
1265
1266<h5>wand</h5>
1267<p>the drawing wand.</p>
1268
1269 </div>
cristy350dea42011-02-15 17:31:04 +00001270<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001271<div class="doc-section">
1272
1273<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>
1274
1275<p>The format of the DrawPathCurveToAbsolute method is:</p>
1276
1277<pre class="code">
1278 void DrawPathCurveToAbsolute(DrawingWand *wand,const double x1,
1279 const double y1,const double x2,const double y2,const double x,
1280 const double y)
1281</pre>
1282
1283<p>A description of each parameter follows:</p>
1284
1285<h5>wand</h5>
1286<p>the drawing wand.</p>
1287
1288<h5>x1</h5>
1289<p>x ordinate of control point for curve beginning</p>
1290
1291<h5>y1</h5>
1292<p>y ordinate of control point for curve beginning</p>
1293
1294<h5>x2</h5>
1295<p>x ordinate of control point for curve ending</p>
1296
1297<h5>y2</h5>
1298<p>y ordinate of control point for curve ending</p>
1299
1300<h5>x</h5>
1301<p>x ordinate of the end of the curve</p>
1302
1303<h5>y</h5>
1304<p>y ordinate of the end of the curve</p>
1305
1306 </div>
cristy350dea42011-02-15 17:31:04 +00001307<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToRelative">DrawPathCurveToRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001308<div class="doc-section">
1309
1310<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>
1311
1312<p>The format of the DrawPathCurveToRelative method is:</p>
1313
1314<pre class="code">
1315 void DrawPathCurveToRelative(DrawingWand *wand,const double x1,
1316 const double y1,const double x2,const double y2,const double x,
1317 const double y)
1318</pre>
1319
1320<p>A description of each parameter follows:</p>
1321
1322<h5>wand</h5>
1323<p>the drawing wand.</p>
1324
1325<h5>x1</h5>
1326<p>x ordinate of control point for curve beginning</p>
1327
1328<h5>y1</h5>
1329<p>y ordinate of control point for curve beginning</p>
1330
1331<h5>x2</h5>
1332<p>x ordinate of control point for curve ending</p>
1333
1334<h5>y2</h5>
1335<p>y ordinate of control point for curve ending</p>
1336
1337<h5>x</h5>
1338<p>x ordinate of the end of the curve</p>
1339
1340<h5>y</h5>
1341<p>y ordinate of the end of the curve</p>
1342
1343 </div>
cristy350dea42011-02-15 17:31:04 +00001344<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001345<div class="doc-section">
1346
1347<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>
1348
1349<p>The format of the DrawPathCurveToQuadraticBezierAbsolute method is:</p>
1350
1351<pre class="code">
1352 void DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *wand,
1353 const double x1,const double y1,onst double x,const double y)
1354</pre>
1355
1356<p>A description of each parameter follows:</p>
1357
1358<h5>wand</h5>
1359<p>the drawing wand.</p>
1360
1361<h5>x1</h5>
1362<p>x ordinate of the control point</p>
1363
1364<h5>y1</h5>
1365<p>y ordinate of the control point</p>
1366
1367<h5>x</h5>
1368<p>x ordinate of final point</p>
1369
1370<h5>y</h5>
1371<p>y ordinate of final point</p>
1372
1373 </div>
cristy350dea42011-02-15 17:31:04 +00001374<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001375<div class="doc-section">
1376
1377<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>
1378
1379<p>The format of the DrawPathCurveToQuadraticBezierRelative method is:</p>
1380
1381<pre class="code">
1382 void DrawPathCurveToQuadraticBezierRelative(DrawingWand *wand,
1383 const double x1,const double y1,const double x,const double y)
1384</pre>
1385
1386<p>A description of each parameter follows:</p>
1387
1388<h5>wand</h5>
1389<p>the drawing wand.</p>
1390
1391<h5>x1</h5>
1392<p>x ordinate of the control point</p>
1393
1394<h5>y1</h5>
1395<p>y ordinate of the control point</p>
1396
1397<h5>x</h5>
1398<p>x ordinate of final point</p>
1399
1400<h5>y</h5>
1401<p>y ordinate of final point</p>
1402
1403 </div>
cristy350dea42011-02-15 17:31:04 +00001404<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001405<div class="doc-section">
1406
1407<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>
1408
1409<p>The format of the DrawPathCurveToQuadraticBezierSmoothAbsolute method is:</p>
1410
1411<pre class="code">
1412 void DrawPathCurveToQuadraticBezierSmoothAbsolute(
1413 DrawingWand *wand,const double x,const double y)
1414</pre>
1415
1416<p>A description of each parameter follows:</p>
1417
1418<h5>wand</h5>
1419<p>the drawing wand.</p>
1420
1421<h5>x</h5>
1422<p>x ordinate of final point</p>
1423
1424<h5>y</h5>
1425<p>y ordinate of final point</p>
1426
1427 </div>
cristy350dea42011-02-15 17:31:04 +00001428<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001429<div class="doc-section">
1430
1431<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>
1432
1433<p>The format of the DrawPathCurveToQuadraticBezierSmoothRelative method is:</p>
1434
1435<pre class="code">
1436 void DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *wand,
1437 const double x,const double y)
1438</pre>
1439
1440<p>A description of each parameter follows:</p>
1441
1442<h5>wand</h5>
1443<p>the drawing wand.</p>
1444
1445<h5>x</h5>
1446<p>x ordinate of final point</p>
1447
1448<h5>y</h5>
1449<p>y ordinate of final point</p>
1450
1451 </div>
cristy350dea42011-02-15 17:31:04 +00001452<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001453<div class="doc-section">
1454
1455<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>
1456
1457<p>The format of the DrawPathCurveToSmoothAbsolute method is:</p>
1458
1459<pre class="code">
1460 void DrawPathCurveToSmoothAbsolute(DrawingWand *wand,
1461 const double x2const double y2,const double x,const double y)
1462</pre>
1463
1464<p>A description of each parameter follows:</p>
1465
1466<h5>wand</h5>
1467<p>the drawing wand.</p>
1468
1469<h5>x2</h5>
1470<p>x ordinate of second control point</p>
1471
1472<h5>y2</h5>
1473<p>y ordinate of second control point</p>
1474
1475<h5>x</h5>
1476<p>x ordinate of termination point</p>
1477
1478<h5>y</h5>
1479<p>y ordinate of termination point</p>
1480
1481 </div>
cristy350dea42011-02-15 17:31:04 +00001482<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001483<div class="doc-section">
1484
1485<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>
1486
1487<p>The format of the DrawPathCurveToSmoothRelative method is:</p>
1488
1489<pre class="code">
1490 void DrawPathCurveToSmoothRelative(DrawingWand *wand,
1491 const double x2,const double y2,const double x,const double y)
1492</pre>
1493
1494<p>A description of each parameter follows:</p>
1495
1496<h5>wand</h5>
1497<p>the drawing wand.</p>
1498
1499<h5>x2</h5>
1500<p>x ordinate of second control point</p>
1501
1502<h5>y2</h5>
1503<p>y ordinate of second control point</p>
1504
1505<h5>x</h5>
1506<p>x ordinate of termination point</p>
1507
1508<h5>y</h5>
1509<p>y ordinate of termination point</p>
1510
1511 </div>
cristy350dea42011-02-15 17:31:04 +00001512<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001513<div class="doc-section">
1514
1515<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>
1516
1517<p>The format of the DrawPathEllipticArcAbsolute method is:</p>
1518
1519<pre class="code">
1520 void DrawPathEllipticArcAbsolute(DrawingWand *wand,
1521 const double rx,const double ry,const double x_axis_rotation,
1522 const MagickBooleanType large_arc_flag,
1523 const MagickBooleanType sweep_flag,const double x,const double y)
1524</pre>
1525
1526<p>A description of each parameter follows:</p>
1527
1528<h5>wand</h5>
1529<p>the drawing wand.</p>
1530
1531<h5>rx</h5>
1532<p>x radius</p>
1533
1534<h5>ry</h5>
1535<p>y radius</p>
1536
1537<h5>x_axis_rotation</h5>
1538<p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p>
1539
1540<h5>large_arc_flag</h5>
1541<p>If non-zero (true) then draw the larger of the available arcs</p>
1542
1543<h5>sweep_flag</h5>
1544<p>If non-zero (true) then draw the arc matching a clock-wise rotation</p>
1545
1546
1547 </div>
cristy350dea42011-02-15 17:31:04 +00001548<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001549<div class="doc-section">
1550
1551<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>
1552
1553<p>The format of the DrawPathEllipticArcRelative method is:</p>
1554
1555<pre class="code">
1556 void DrawPathEllipticArcRelative(DrawingWand *wand,
1557 const double rx,const double ry,const double x_axis_rotation,
1558 const MagickBooleanType large_arc_flag,
1559 const MagickBooleanType sweep_flag,const double x,const double y)
1560</pre>
1561
1562<p>A description of each parameter follows:</p>
1563
1564<h5>wand</h5>
1565<p>the drawing wand.</p>
1566
1567<h5>rx</h5>
1568<p>x radius</p>
1569
1570<h5>ry</h5>
1571<p>y radius</p>
1572
1573<h5>x_axis_rotation</h5>
1574<p>indicates how the ellipse as a whole is rotated relative to the current coordinate system</p>
1575
1576<h5>large_arc_flag</h5>
1577<p>If non-zero (true) then draw the larger of the available arcs</p>
1578
1579<h5>sweep_flag</h5>
1580<p>If non-zero (true) then draw the arc matching a clock-wise rotation</p>
1581
1582 </div>
cristy350dea42011-02-15 17:31:04 +00001583<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathFinish">DrawPathFinish</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001584<div class="doc-section">
1585
1586<p>DrawPathFinish() terminates the current path.</p>
1587
1588<p>The format of the DrawPathFinish method is:</p>
1589
1590<pre class="code">
1591 void DrawPathFinish(DrawingWand *wand)
1592</pre>
1593
1594<p>A description of each parameter follows:</p>
1595
1596<h5>wand</h5>
1597<p>the drawing wand.</p>
1598
1599 </div>
cristy350dea42011-02-15 17:31:04 +00001600<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToAbsolute">DrawPathLineToAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001601<div class="doc-section">
1602
1603<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>
1604
1605<p>The format of the DrawPathLineToAbsolute method is:</p>
1606
1607<pre class="code">
1608 void DrawPathLineToAbsolute(DrawingWand *wand,const double x,
1609 const double y)
1610</pre>
1611
1612<p>A description of each parameter follows:</p>
1613
1614<h5>wand</h5>
1615<p>the drawing wand.</p>
1616
1617<h5>x</h5>
1618<p>target x ordinate</p>
1619
1620<h5>y</h5>
1621<p>target y ordinate</p>
1622
1623 </div>
cristy350dea42011-02-15 17:31:04 +00001624<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToRelative">DrawPathLineToRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001625<div class="doc-section">
1626
1627<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>
1628
1629<p>The format of the DrawPathLineToRelative method is:</p>
1630
1631<pre class="code">
1632 void DrawPathLineToRelative(DrawingWand *wand,const double x,
1633 const double y)
1634</pre>
1635
1636<p>A description of each parameter follows:</p>
1637
1638<h5>wand</h5>
1639<p>the drawing wand.</p>
1640
1641<h5>x</h5>
1642<p>target x ordinate</p>
1643
1644<h5>y</h5>
1645<p>target y ordinate</p>
1646
1647 </div>
cristy350dea42011-02-15 17:31:04 +00001648<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001649<div class="doc-section">
1650
1651<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>
1652
1653<p>The format of the DrawPathLineToHorizontalAbsolute method is:</p>
1654
1655<pre class="code">
1656 void DrawPathLineToHorizontalAbsolute(DrawingWand *wand,
1657 const PathMode mode,const double x)
1658</pre>
1659
1660<p>A description of each parameter follows:</p>
1661
1662<h5>wand</h5>
1663<p>the drawing wand.</p>
1664
1665<h5>x</h5>
1666<p>target x ordinate</p>
1667
1668 </div>
cristy350dea42011-02-15 17:31:04 +00001669<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001670<div class="doc-section">
1671
1672<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>
1673
1674<p>The format of the DrawPathLineToHorizontalRelative method is:</p>
1675
1676<pre class="code">
1677 void DrawPathLineToHorizontalRelative(DrawingWand *wand,
1678 const double x)
1679</pre>
1680
1681<p>A description of each parameter follows:</p>
1682
1683<h5>wand</h5>
1684<p>the drawing wand.</p>
1685
1686<h5>x</h5>
1687<p>target x ordinate</p>
1688
1689 </div>
cristy350dea42011-02-15 17:31:04 +00001690<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001691<div class="doc-section">
1692
1693<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>
1694
1695<p>The format of the DrawPathLineToVerticalAbsolute method is:</p>
1696
1697<pre class="code">
1698 void DrawPathLineToVerticalAbsolute(DrawingWand *wand,
1699 const double y)
1700</pre>
1701
1702<p>A description of each parameter follows:</p>
1703
1704<h5>wand</h5>
1705<p>the drawing wand.</p>
1706
1707<h5>y</h5>
1708<p>target y ordinate</p>
1709
1710 </div>
cristy350dea42011-02-15 17:31:04 +00001711<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001712<div class="doc-section">
1713
1714<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>
1715
1716<p>The format of the DrawPathLineToVerticalRelative method is:</p>
1717
1718<pre class="code">
1719 void DrawPathLineToVerticalRelative(DrawingWand *wand,
1720 const double y)
1721</pre>
1722
1723<p>A description of each parameter follows:</p>
1724
1725<h5>wand</h5>
1726<p>the drawing wand.</p>
1727
1728<h5>y</h5>
1729<p>target y ordinate</p>
1730
1731 </div>
cristy350dea42011-02-15 17:31:04 +00001732<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001733<div class="doc-section">
1734
1735<p>DrawPathMoveToAbsolute() starts a new sub-path at the given coordinate using absolute coordinates. The current point then becomes the specified coordinate.</p>
1736
1737<p>The format of the DrawPathMoveToAbsolute method is:</p>
1738
1739<pre class="code">
1740 void DrawPathMoveToAbsolute(DrawingWand *wand,const double x,
1741 const double y)
1742</pre>
1743
1744<p>A description of each parameter follows:</p>
1745
1746<h5>wand</h5>
1747<p>the drawing wand.</p>
1748
1749<h5>x</h5>
1750<p>target x ordinate</p>
1751
1752<h5>y</h5>
1753<p>target y ordinate</p>
1754
1755 </div>
cristy350dea42011-02-15 17:31:04 +00001756<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathMoveToRelative">DrawPathMoveToRelative</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001757<div class="doc-section">
1758
1759<p>DrawPathMoveToRelative() starts a new sub-path at the given coordinate using relative coordinates. The current point then becomes the specified coordinate.</p>
1760
1761<p>The format of the DrawPathMoveToRelative method is:</p>
1762
1763<pre class="code">
1764 void DrawPathMoveToRelative(DrawingWand *wand,const double x,
1765 const double y)
1766</pre>
1767
1768<p>A description of each parameter follows:</p>
1769
1770<h5>wand</h5>
1771<p>the drawing wand.</p>
1772
1773<h5>x</h5>
1774<p>target x ordinate</p>
1775
1776<h5>y</h5>
1777<p>target y ordinate</p>
1778
1779 </div>
cristy350dea42011-02-15 17:31:04 +00001780<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPathStart">DrawPathStart</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001781<div class="doc-section">
1782
1783<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>
1784
1785<p>The format of the DrawPathStart method is:</p>
1786
1787<pre class="code">
1788 void DrawPathStart(DrawingWand *wand)
1789</pre>
1790
1791<p>A description of each parameter follows:</p>
1792
1793<h5>wand</h5>
1794<p>the drawing wand.</p>
1795
1796 </div>
cristy350dea42011-02-15 17:31:04 +00001797<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPoint">DrawPoint</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001798<div class="doc-section">
1799
1800<p>DrawPoint() draws a point using the current fill color.</p>
1801
1802<p>The format of the DrawPoint method is:</p>
1803
1804<pre class="code">
1805 void DrawPoint(DrawingWand *wand,const double x,const double y)
1806</pre>
1807
1808<p>A description of each parameter follows:</p>
1809
1810<h5>wand</h5>
1811<p>the drawing wand.</p>
1812
1813<h5>x</h5>
1814<p>target x coordinate</p>
1815
1816<h5>y</h5>
1817<p>target y coordinate</p>
1818
1819 </div>
cristy350dea42011-02-15 17:31:04 +00001820<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPolygon">DrawPolygon</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001821<div class="doc-section">
1822
1823<p>DrawPolygon() draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p>
1824
1825<p>The format of the DrawPolygon method is:</p>
1826
1827<pre class="code">
1828 void DrawPolygon(DrawingWand *wand,
1829 const size_t number_coordinates,const PointInfo *coordinates)
1830</pre>
1831
1832<p>A description of each parameter follows:</p>
1833
1834<h5>wand</h5>
1835<p>the drawing wand.</p>
1836
1837<h5>number_coordinates</h5>
1838<p>number of coordinates</p>
1839
1840<h5>coordinates</h5>
1841<p>coordinate array</p>
1842
1843 </div>
cristy350dea42011-02-15 17:31:04 +00001844<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPolyline">DrawPolyline</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001845<div class="doc-section">
1846
1847<p>DrawPolyline() draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.</p>
1848
1849<p>The format of the DrawPolyline method is:</p>
1850
1851<pre class="code">
1852 void DrawPolyline(DrawingWand *wand,
1853 const size_t number_coordinates,const PointInfo *coordinates)
1854</pre>
1855
1856<p>A description of each parameter follows:</p>
1857
1858<h5>wand</h5>
1859<p>the drawing wand.</p>
1860
1861<h5>number_coordinates</h5>
1862<p>number of coordinates</p>
1863
1864<h5>coordinates</h5>
1865<p>coordinate array</p>
1866
1867 </div>
cristy350dea42011-02-15 17:31:04 +00001868<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPopClipPath">DrawPopClipPath</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001869<div class="doc-section">
1870
1871<p>DrawPopClipPath() terminates a clip path definition.</p>
1872
1873<p>The format of the DrawPopClipPath method is:</p>
1874
1875<pre class="code">
1876 void DrawPopClipPath(DrawingWand *wand)
1877</pre>
1878
1879<p>A description of each parameter follows:</p>
1880
1881<h5>wand</h5>
1882<p>the drawing wand.</p>
1883
1884 </div>
cristy350dea42011-02-15 17:31:04 +00001885<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPopDefs">DrawPopDefs</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001886<div class="doc-section">
1887
1888<p>DrawPopDefs() terminates a definition list.</p>
1889
1890<p>The format of the DrawPopDefs method is:</p>
1891
1892<pre class="code">
1893 void DrawPopDefs(DrawingWand *wand)
1894</pre>
1895
1896<p>A description of each parameter follows:</p>
1897
1898<h5>wand</h5>
1899<p>the drawing wand.</p>
1900
1901 </div>
cristy350dea42011-02-15 17:31:04 +00001902<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPopPattern">DrawPopPattern</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001903<div class="doc-section">
1904
1905<p>DrawPopPattern() terminates a pattern definition.</p>
1906
1907<p>The format of the DrawPopPattern method is:</p>
1908
1909<pre class="code">
1910 MagickBooleanType DrawPopPattern(DrawingWand *wand)
1911</pre>
1912
1913<p>A description of each parameter follows:</p>
1914
1915<h5>wand</h5>
1916<p>the drawing wand.</p>
1917
1918 </div>
cristy350dea42011-02-15 17:31:04 +00001919<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPushClipPath">DrawPushClipPath</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001920<div class="doc-section">
1921
1922<p>DrawPushClipPath() starts a clip path definition which is comprized of any number of drawing commands and terminated by a DrawPopClipPath() command.</p>
1923
1924<p>The format of the DrawPushClipPath method is:</p>
1925
1926<pre class="code">
1927 void DrawPushClipPath(DrawingWand *wand,const char *clip_mask_id)
1928</pre>
1929
1930<p>A description of each parameter follows:</p>
1931
1932<h5>wand</h5>
1933<p>the drawing wand.</p>
1934
1935<h5>clip_mask_id</h5>
1936<p>string identifier to associate with the clip path for later use.</p>
1937
1938 </div>
cristy350dea42011-02-15 17:31:04 +00001939<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPushDefs">DrawPushDefs</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001940<div class="doc-section">
1941
1942<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>
1943
1944<p>The format of the DrawPushDefs method is:</p>
1945
1946<pre class="code">
1947 void DrawPushDefs(DrawingWand *wand)
1948</pre>
1949
1950<p>A description of each parameter follows:</p>
1951
1952<h5>wand</h5>
1953<p>the drawing wand.</p>
1954
1955 </div>
cristy350dea42011-02-15 17:31:04 +00001956<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawPushPattern">DrawPushPattern</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001957<div class="doc-section">
1958
1959<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>
1960
1961<p>The format of the DrawPushPattern method is:</p>
1962
1963<pre class="code">
1964 MagickBooleanType DrawPushPattern(DrawingWand *wand,
1965 const char *pattern_id,const double x,const double y,
1966 const double width,const double height)
1967</pre>
1968
1969<p>A description of each parameter follows:</p>
1970
1971<h5>wand</h5>
1972<p>the drawing wand.</p>
1973
1974<h5>pattern_id</h5>
1975<p>pattern identification for later reference</p>
1976
1977<h5>x</h5>
1978<p>x ordinate of top left corner</p>
1979
1980<h5>y</h5>
1981<p>y ordinate of top left corner</p>
1982
1983<h5>width</h5>
1984<p>width of pattern space</p>
1985
1986<h5>height</h5>
1987<p>height of pattern space</p>
1988
1989 </div>
cristy350dea42011-02-15 17:31:04 +00001990<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawRectangle">DrawRectangle</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001991<div class="doc-section">
1992
1993<p>DrawRectangle() draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.</p>
1994
1995<p>The format of the DrawRectangle method is:</p>
1996
1997<pre class="code">
1998 void DrawRectangle(DrawingWand *wand,const double x1,
1999 const double y1,const double x2,const double y2)
2000</pre>
2001
2002<p>A description of each parameter follows:</p>
2003
2004<h5>x1</h5>
2005<p>x ordinate of first coordinate</p>
2006
2007<h5>y1</h5>
2008<p>y ordinate of first coordinate</p>
2009
2010<h5>x2</h5>
2011<p>x ordinate of second coordinate</p>
2012
2013<h5>y2</h5>
2014<p>y ordinate of second coordinate</p>
2015
2016 </div>
cristy350dea42011-02-15 17:31:04 +00002017<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawResetVectorGraphics">DrawResetVectorGraphics</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002018<div class="doc-section">
2019
2020<p>DrawResetVectorGraphics() resets the vector graphics associated with the specified wand.</p>
2021
2022<p>The format of the DrawResetVectorGraphics method is:</p>
2023
2024<pre class="code">
2025 void DrawResetVectorGraphics(DrawingWand *wand)
2026</pre>
2027
2028<p>A description of each parameter follows:</p>
2029
2030<h5>wand</h5>
2031<p>the drawing wand.</p>
2032
2033 </div>
cristy350dea42011-02-15 17:31:04 +00002034<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawRotate">DrawRotate</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002035<div class="doc-section">
2036
2037<p>DrawRotate() applies the specified rotation to the current coordinate space.</p>
2038
2039<p>The format of the DrawRotate method is:</p>
2040
2041<pre class="code">
2042 void DrawRotate(DrawingWand *wand,const double degrees)
2043</pre>
2044
2045<p>A description of each parameter follows:</p>
2046
2047<h5>wand</h5>
2048<p>the drawing wand.</p>
2049
2050<h5>degrees</h5>
2051<p>degrees of rotation</p>
2052
2053 </div>
cristy350dea42011-02-15 17:31:04 +00002054<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawRoundRectangle">DrawRoundRectangle</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002055<div class="doc-section">
2056
2057<p>DrawRoundRectangle() draws a rounted rectangle given two coordinates, x & y corner radiuses and using the current stroke, stroke width, and fill settings.</p>
2058
2059<p>The format of the DrawRoundRectangle method is:</p>
2060
2061<pre class="code">
2062 void DrawRoundRectangle(DrawingWand *wand,double x1,double y1,
2063 double x2,double y2,double rx,double ry)
2064</pre>
2065
2066<p>A description of each parameter follows:</p>
2067
2068<h5>wand</h5>
2069<p>the drawing wand.</p>
2070
2071<h5>x1</h5>
2072<p>x ordinate of first coordinate</p>
2073
2074<h5>y1</h5>
2075<p>y ordinate of first coordinate</p>
2076
2077<h5>x2</h5>
2078<p>x ordinate of second coordinate</p>
2079
2080<h5>y2</h5>
2081<p>y ordinate of second coordinate</p>
2082
2083<h5>rx</h5>
2084<p>radius of corner in horizontal direction</p>
2085
2086<h5>ry</h5>
2087<p>radius of corner in vertical direction</p>
2088
2089 </div>
cristy350dea42011-02-15 17:31:04 +00002090<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawScale">DrawScale</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002091<div class="doc-section">
2092
2093<p>DrawScale() adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space.</p>
2094
2095<p>The format of the DrawScale method is:</p>
2096
2097<pre class="code">
2098 void DrawScale(DrawingWand *wand,const double x,const double y)
2099</pre>
2100
2101<p>A description of each parameter follows:</p>
2102
2103<h5>wand</h5>
2104<p>the drawing wand.</p>
2105
2106<h5>x</h5>
2107<p>horizontal scale factor</p>
2108
2109<h5>y</h5>
2110<p>vertical scale factor</p>
2111
2112 </div>
cristy350dea42011-02-15 17:31:04 +00002113<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetBorderColor">DrawSetBorderColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002114<div class="doc-section">
2115
2116<p>DrawSetBorderColor() sets the border color to be used for drawing bordered objects.</p>
2117
2118<p>The format of the DrawSetBorderColor method is:</p>
2119
2120<pre class="code">
2121 void DrawSetBorderColor(DrawingWand *wand,const PixelWand *border_wand)
2122</pre>
2123
2124<p>A description of each parameter follows:</p>
2125
2126<h5>wand</h5>
2127<p>the drawing wand.</p>
2128
2129<h5>border_wand</h5>
2130<p>border wand.</p>
2131
2132 </div>
cristy350dea42011-02-15 17:31:04 +00002133<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetClipPath">DrawSetClipPath</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002134<div class="doc-section">
2135
2136<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>
2137
2138<p>The format of the DrawSetClipPath method is:</p>
2139
2140<pre class="code">
2141 MagickBooleanType DrawSetClipPath(DrawingWand *wand,
2142 const char *clip_mask)
2143</pre>
2144
2145<p>A description of each parameter follows:</p>
2146
2147<h5>wand</h5>
2148<p>the drawing wand.</p>
2149
2150<h5>clip_mask</h5>
2151<p>name of clipping path to associate with image</p>
2152
2153 </div>
cristy350dea42011-02-15 17:31:04 +00002154<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetClipRule">DrawSetClipRule</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002155<div class="doc-section">
2156
2157<p>DrawSetClipRule() set the polygon fill rule to be used by the clipping path.</p>
2158
2159<p>The format of the DrawSetClipRule method is:</p>
2160
2161<pre class="code">
2162 void DrawSetClipRule(DrawingWand *wand,const FillRule fill_rule)
2163</pre>
2164
2165<p>A description of each parameter follows:</p>
2166
2167<h5>wand</h5>
2168<p>the drawing wand.</p>
2169
2170<h5>fill_rule</h5>
2171<p>fill rule (EvenOddRule or NonZeroRule)</p>
2172
2173 </div>
cristy350dea42011-02-15 17:31:04 +00002174<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetClipUnits">DrawSetClipUnits</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002175<div class="doc-section">
2176
2177<p>DrawSetClipUnits() sets the interpretation of clip path units.</p>
2178
2179<p>The format of the DrawSetClipUnits method is:</p>
2180
2181<pre class="code">
2182 void DrawSetClipUnits(DrawingWand *wand,
2183 const ClipPathUnits clip_units)
2184</pre>
2185
2186<p>A description of each parameter follows:</p>
2187
2188<h5>wand</h5>
2189<p>the drawing wand.</p>
2190
2191<h5>clip_units</h5>
2192<p>units to use (UserSpace, UserSpaceOnUse, or ObjectBoundingBox)</p>
2193
2194 </div>
cristy350dea42011-02-15 17:31:04 +00002195<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillColor">DrawSetFillColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002196<div class="doc-section">
2197
2198<p>DrawSetFillColor() sets the fill color to be used for drawing filled objects.</p>
2199
2200<p>The format of the DrawSetFillColor method is:</p>
2201
2202<pre class="code">
2203 void DrawSetFillColor(DrawingWand *wand,const PixelWand *fill_wand)
2204</pre>
2205
2206<p>A description of each parameter follows:</p>
2207
2208<h5>wand</h5>
2209<p>the drawing wand.</p>
2210
2211<h5>fill_wand</h5>
2212<p>fill wand.</p>
2213
2214 </div>
cristy350dea42011-02-15 17:31:04 +00002215<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillOpacity">DrawSetFillOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002216<div class="doc-section">
2217
2218<p>DrawSetFillOpacity() sets the opacity to use when drawing using the fill color or fill texture. Fully opaque is 1.0.</p>
2219
2220<p>The format of the DrawSetFillOpacity method is:</p>
2221
2222<pre class="code">
2223 void DrawSetFillOpacity(DrawingWand *wand,const double fill_opacity)
2224</pre>
2225
2226<p>A description of each parameter follows:</p>
2227
2228<h5>wand</h5>
2229<p>the drawing wand.</p>
2230
2231<h5>fill_opacity</h5>
2232<p>fill opacity</p>
2233
2234 </div>
cristy350dea42011-02-15 17:31:04 +00002235<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontResolution">DrawSetFontResolution</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002236<div class="doc-section">
2237
2238<p>DrawSetFontResolution() sets the image resolution.</p>
2239
2240<p>The format of the DrawSetFontResolution method is:</p>
2241
2242<pre class="code">
2243 DrawBooleanType DrawSetFontResolution(DrawingWand *wand,
2244 const double x_resolution,const doubtl y_resolution)
2245</pre>
2246
2247<p>A description of each parameter follows:</p>
2248
2249<h5>wand</h5>
2250<p>the magick wand.</p>
2251
2252<h5>x_resolution</h5>
2253<p>the image x resolution.</p>
2254
2255<h5>y_resolution</h5>
2256<p>the image y resolution.</p>
2257
2258 </div>
cristy350dea42011-02-15 17:31:04 +00002259<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetOpacity">DrawSetOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002260<div class="doc-section">
2261
2262<p>DrawSetOpacity() sets the opacity to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0.</p>
2263
2264<p>The format of the DrawSetOpacity method is:</p>
2265
2266<pre class="code">
2267 void DrawSetOpacity(DrawingWand *wand,const double opacity)
2268</pre>
2269
2270<p>A description of each parameter follows:</p>
2271
2272<h5>wand</h5>
2273<p>the drawing wand.</p>
2274
2275<h5>opacity</h5>
2276<p>fill opacity</p>
2277
2278 </div>
cristy350dea42011-02-15 17:31:04 +00002279<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillPatternURL">DrawSetFillPatternURL</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002280<div class="doc-section">
2281
2282<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>
2283
2284<p>The format of the DrawSetFillPatternURL method is:</p>
2285
2286<pre class="code">
2287 MagickBooleanType DrawSetFillPatternURL(DrawingWand *wand,
2288 const char *fill_url)
2289</pre>
2290
2291<p>A description of each parameter follows:</p>
2292
2293<h5>wand</h5>
2294<p>the drawing wand.</p>
2295
2296<h5>fill_url</h5>
2297<p>URL to use to obtain fill pattern.</p>
2298
2299 </div>
cristy350dea42011-02-15 17:31:04 +00002300<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFillRule">DrawSetFillRule</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002301<div class="doc-section">
2302
2303<p>DrawSetFillRule() sets the fill rule to use while drawing polygons.</p>
2304
2305<p>The format of the DrawSetFillRule method is:</p>
2306
2307<pre class="code">
2308 void DrawSetFillRule(DrawingWand *wand,const FillRule fill_rule)
2309</pre>
2310
2311<p>A description of each parameter follows:</p>
2312
2313<h5>wand</h5>
2314<p>the drawing wand.</p>
2315
2316<h5>fill_rule</h5>
2317<p>fill rule (EvenOddRule or NonZeroRule)</p>
2318
2319 </div>
cristy350dea42011-02-15 17:31:04 +00002320<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFont">DrawSetFont</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002321<div class="doc-section">
2322
2323<p>DrawSetFont() sets the fully-sepecified font to use when annotating with text.</p>
2324
2325<p>The format of the DrawSetFont method is:</p>
2326
2327<pre class="code">
2328 MagickBooleanType DrawSetFont(DrawingWand *wand,const char *font_name)
2329</pre>
2330
2331<p>A description of each parameter follows:</p>
2332
2333<h5>wand</h5>
2334<p>the drawing wand.</p>
2335
2336<h5>font_name</h5>
2337<p>font name</p>
2338
2339 </div>
cristy350dea42011-02-15 17:31:04 +00002340<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontFamily">DrawSetFontFamily</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002341<div class="doc-section">
2342
2343<p>DrawSetFontFamily() sets the font family to use when annotating with text.</p>
2344
2345<p>The format of the DrawSetFontFamily method is:</p>
2346
2347<pre class="code">
2348 MagickBooleanType DrawSetFontFamily(DrawingWand *wand,
2349 const char *font_family)
2350</pre>
2351
2352<p>A description of each parameter follows:</p>
2353
2354<h5>wand</h5>
2355<p>the drawing wand.</p>
2356
2357<h5>font_family</h5>
2358<p>font family</p>
2359
2360 </div>
cristy350dea42011-02-15 17:31:04 +00002361<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontSize">DrawSetFontSize</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002362<div class="doc-section">
2363
2364<p>DrawSetFontSize() sets the font pointsize to use when annotating with text.</p>
2365
2366<p>The format of the DrawSetFontSize method is:</p>
2367
2368<pre class="code">
2369 void DrawSetFontSize(DrawingWand *wand,const double pointsize)
2370</pre>
2371
2372<p>A description of each parameter follows:</p>
2373
2374<h5>wand</h5>
2375<p>the drawing wand.</p>
2376
2377<h5>pointsize</h5>
2378<p>text pointsize</p>
2379
2380 </div>
cristy350dea42011-02-15 17:31:04 +00002381<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontStretch">DrawSetFontStretch</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002382<div class="doc-section">
2383
2384<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>
2385
2386<p>The format of the DrawSetFontStretch method is:</p>
2387
2388<pre class="code">
2389 void DrawSetFontStretch(DrawingWand *wand,
2390 const StretchType font_stretch)
2391</pre>
2392
2393<p>A description of each parameter follows:</p>
2394
2395<h5>wand</h5>
2396<p>the drawing wand.</p>
2397
2398<h5>font_stretch</h5>
2399<p>font stretch (NormalStretch, UltraCondensedStretch, CondensedStretch, SemiCondensedStretch, SemiExpandedStretch, ExpandedStretch, ExtraExpandedStretch, UltraExpandedStretch, AnyStretch)</p>
2400
2401 </div>
cristy350dea42011-02-15 17:31:04 +00002402<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontStyle">DrawSetFontStyle</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002403<div class="doc-section">
2404
2405<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>
2406
2407<p>The format of the DrawSetFontStyle method is:</p>
2408
2409<pre class="code">
2410 void DrawSetFontStyle(DrawingWand *wand,const StyleType style)
2411</pre>
2412
2413<p>A description of each parameter follows:</p>
2414
2415<h5>wand</h5>
2416<p>the drawing wand.</p>
2417
2418<h5>style</h5>
2419<p>font style (NormalStyle, ItalicStyle, ObliqueStyle, AnyStyle)</p>
2420
2421 </div>
cristy350dea42011-02-15 17:31:04 +00002422<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetFontWeight">DrawSetFontWeight</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002423<div class="doc-section">
2424
2425<p>DrawSetFontWeight() sets the font weight to use when annotating with text.</p>
2426
2427<p>The format of the DrawSetFontWeight method is:</p>
2428
2429<pre class="code">
2430 void DrawSetFontWeight(DrawingWand *wand,
2431 const size_t font_weight)
2432</pre>
2433
2434<p>A description of each parameter follows:</p>
2435
2436<h5>wand</h5>
2437<p>the drawing wand.</p>
2438
2439<h5>font_weight</h5>
2440<p>font weight (valid range 100-900)</p>
2441
2442 </div>
cristy350dea42011-02-15 17:31:04 +00002443<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetGravity">DrawSetGravity</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002444<div class="doc-section">
2445
2446<p>DrawSetGravity() sets the text placement gravity to use when annotating with text.</p>
2447
2448<p>The format of the DrawSetGravity method is:</p>
2449
2450<pre class="code">
2451 void DrawSetGravity(DrawingWand *wand,const GravityType gravity)
2452</pre>
2453
2454<p>A description of each parameter follows:</p>
2455
2456<h5>wand</h5>
2457<p>the drawing wand.</p>
2458
2459<h5>gravity</h5>
2460<p>positioning gravity (NorthWestGravity, NorthGravity, NorthEastGravity, WestGravity, CenterGravity, EastGravity, SouthWestGravity, SouthGravity, SouthEastGravity)</p>
2461
2462 </div>
cristy350dea42011-02-15 17:31:04 +00002463<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeColor">DrawSetStrokeColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002464<div class="doc-section">
2465
2466<p>DrawSetStrokeColor() sets the color used for stroking object outlines.</p>
2467
2468<p>The format of the DrawSetStrokeColor method is:</p>
2469
2470<pre class="code">
2471 void DrawSetStrokeColor(DrawingWand *wand,
2472 const PixelWand *stroke_wand)
2473</pre>
2474
2475<p>A description of each parameter follows:</p>
2476
2477<h5>wand</h5>
2478<p>the drawing wand.</p>
2479
2480<h5>stroke_wand</h5>
2481<p>stroke wand.</p>
2482
2483 </div>
cristy350dea42011-02-15 17:31:04 +00002484<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokePatternURL">DrawSetStrokePatternURL</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002485<div class="doc-section">
2486
2487<p>DrawSetStrokePatternURL() sets the pattern used for stroking object outlines.</p>
2488
2489<p>The format of the DrawSetStrokePatternURL method is:</p>
2490
2491<pre class="code">
2492 MagickBooleanType DrawSetStrokePatternURL(DrawingWand *wand,
2493 const char *stroke_url)
2494</pre>
2495
2496<p>A description of each parameter follows:</p>
2497
2498<h5>wand</h5>
2499<p>the drawing wand.</p>
2500
2501<h5>stroke_url</h5>
2502<p>URL specifying pattern ID (e.g. "#pattern_id")</p>
2503
2504 </div>
cristy350dea42011-02-15 17:31:04 +00002505<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeAntialias">DrawSetStrokeAntialias</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002506<div class="doc-section">
2507
2508<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>
2509
2510<p>The format of the DrawSetStrokeAntialias method is:</p>
2511
2512<pre class="code">
2513 void DrawSetStrokeAntialias(DrawingWand *wand,
2514 const MagickBooleanType stroke_antialias)
2515</pre>
2516
2517<p>A description of each parameter follows:</p>
2518
2519<h5>wand</h5>
2520<p>the drawing wand.</p>
2521
2522<h5>stroke_antialias</h5>
2523<p>set to false (zero) to disable antialiasing</p>
2524
2525 </div>
cristy350dea42011-02-15 17:31:04 +00002526<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeDashArray">DrawSetStrokeDashArray</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002527<div class="doc-section">
2528
2529<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>
2530
2531<p>The format of the DrawSetStrokeDashArray method is:</p>
2532
2533<pre class="code">
2534 MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand,
2535 const size_t number_elements,const double *dash_array)
2536</pre>
2537
2538<p>A description of each parameter follows:</p>
2539
2540<h5>wand</h5>
2541<p>the drawing wand.</p>
2542
2543<h5>number_elements</h5>
2544<p>number of elements in dash array</p>
2545
2546<h5>dash_array</h5>
2547<p>dash array values</p>
2548
2549 </div>
cristy350dea42011-02-15 17:31:04 +00002550<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002551<div class="doc-section">
2552
2553<p>DrawSetStrokeDashOffset() specifies the offset into the dash pattern to start the dash.</p>
2554
2555<p>The format of the DrawSetStrokeDashOffset method is:</p>
2556
2557<pre class="code">
2558 void DrawSetStrokeDashOffset(DrawingWand *wand,
2559 const double dash_offset)
2560</pre>
2561
2562<p>A description of each parameter follows:</p>
2563
2564<h5>wand</h5>
2565<p>the drawing wand.</p>
2566
2567<h5>dash_offset</h5>
2568<p>dash offset</p>
2569
2570 </div>
cristy350dea42011-02-15 17:31:04 +00002571<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeLineCap">DrawSetStrokeLineCap</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002572<div class="doc-section">
2573
2574<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>
2575
2576<p>The format of the DrawSetStrokeLineCap method is:</p>
2577
2578<pre class="code">
2579 void DrawSetStrokeLineCap(DrawingWand *wand,
2580 const LineCap linecap)
2581</pre>
2582
2583<p>A description of each parameter follows:</p>
2584
2585<h5>wand</h5>
2586<p>the drawing wand.</p>
2587
2588<h5>linecap</h5>
2589<p>linecap style</p>
2590
2591 </div>
cristy350dea42011-02-15 17:31:04 +00002592<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002593<div class="doc-section">
2594
2595<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>
2596
2597<p>The format of the DrawSetStrokeLineJoin method is:</p>
2598
2599<pre class="code">
2600 void DrawSetStrokeLineJoin(DrawingWand *wand,
2601 const LineJoin linejoin)
2602</pre>
2603
2604<p>A description of each parameter follows:</p>
2605
2606<h5>wand</h5>
2607<p>the drawing wand.</p>
2608
2609<h5>linejoin</h5>
2610<p>line join style</p>
2611
2612 </div>
cristy350dea42011-02-15 17:31:04 +00002613<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002614<div class="doc-section">
2615
2616<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>
2617
2618<p>The format of the DrawSetStrokeMiterLimit method is:</p>
2619
2620<pre class="code">
2621 void DrawSetStrokeMiterLimit(DrawingWand *wand,
2622 const size_t miterlimit)
2623</pre>
2624
2625<p>A description of each parameter follows:</p>
2626
2627<h5>wand</h5>
2628<p>the drawing wand.</p>
2629
2630<h5>miterlimit</h5>
2631<p>miter limit</p>
2632
2633 </div>
cristy350dea42011-02-15 17:31:04 +00002634<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeOpacity">DrawSetStrokeOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002635<div class="doc-section">
2636
2637<p>DrawSetStrokeOpacity() specifies the opacity of stroked object outlines.</p>
2638
2639<p>The format of the DrawSetStrokeOpacity method is:</p>
2640
2641<pre class="code">
2642 void DrawSetStrokeOpacity(DrawingWand *wand,
2643 const double stroke_opacity)
2644</pre>
2645
2646<p>A description of each parameter follows:</p>
2647
2648<h5>wand</h5>
2649<p>the drawing wand.</p>
2650
2651<h5>stroke_opacity</h5>
2652<p>stroke opacity. The value 1.0 is opaque.</p>
2653
2654 </div>
cristy350dea42011-02-15 17:31:04 +00002655<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetStrokeWidth">DrawSetStrokeWidth</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002656<div class="doc-section">
2657
2658<p>DrawSetStrokeWidth() sets the width of the stroke used to draw object outlines.</p>
2659
2660<p>The format of the DrawSetStrokeWidth method is:</p>
2661
2662<pre class="code">
2663 void DrawSetStrokeWidth(DrawingWand *wand,
2664 const double stroke_width)
2665</pre>
2666
2667<p>A description of each parameter follows:</p>
2668
2669<h5>wand</h5>
2670<p>the drawing wand.</p>
2671
2672<h5>stroke_width</h5>
2673<p>stroke width</p>
2674
2675 </div>
cristy350dea42011-02-15 17:31:04 +00002676<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextAlignment">DrawSetTextAlignment</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002677<div class="doc-section">
2678
2679<p>DrawSetTextAlignment() specifies a text alignment to be applied when annotating with text.</p>
2680
2681<p>The format of the DrawSetTextAlignment method is:</p>
2682
2683<pre class="code">
2684 void DrawSetTextAlignment(DrawingWand *wand,const AlignType alignment)
2685</pre>
2686
2687<p>A description of each parameter follows:</p>
2688
2689<h5>wand</h5>
2690<p>the drawing wand.</p>
2691
2692<h5>alignment</h5>
2693<p>text alignment. One of UndefinedAlign, LeftAlign, CenterAlign, or RightAlign.</p>
2694
2695 </div>
cristy350dea42011-02-15 17:31:04 +00002696<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextAntialias">DrawSetTextAntialias</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002697<div class="doc-section">
2698
2699<p>DrawSetTextAntialias() controls whether text is antialiased. Text is antialiased by default.</p>
2700
2701<p>The format of the DrawSetTextAntialias method is:</p>
2702
2703<pre class="code">
2704 void DrawSetTextAntialias(DrawingWand *wand,
2705 const MagickBooleanType text_antialias)
2706</pre>
2707
2708<p>A description of each parameter follows:</p>
2709
2710<h5>wand</h5>
2711<p>the drawing wand.</p>
2712
2713<h5>text_antialias</h5>
2714<p>antialias boolean. Set to false (0) to disable antialiasing.</p>
2715
2716 </div>
cristy350dea42011-02-15 17:31:04 +00002717<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextDecoration">DrawSetTextDecoration</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002718<div class="doc-section">
2719
2720<p>DrawSetTextDecoration() specifies a decoration to be applied when annotating with text.</p>
2721
2722<p>The format of the DrawSetTextDecoration method is:</p>
2723
2724<pre class="code">
2725 void DrawSetTextDecoration(DrawingWand *wand,
2726 const DecorationType decoration)
2727</pre>
2728
2729<p>A description of each parameter follows:</p>
2730
2731<h5>wand</h5>
2732<p>the drawing wand.</p>
2733
2734<h5>decoration</h5>
2735<p>text decoration. One of NoDecoration, UnderlineDecoration, OverlineDecoration, or LineThroughDecoration</p>
2736
2737 </div>
cristy350dea42011-02-15 17:31:04 +00002738<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextEncoding">DrawSetTextEncoding</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002739<div class="doc-section">
2740
2741<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>
2742
2743<p>The format of the DrawSetTextEncoding method is:</p>
2744
2745<pre class="code">
2746 void DrawSetTextEncoding(DrawingWand *wand,const char *encoding)
2747</pre>
2748
2749<p>A description of each parameter follows:</p>
2750
2751<h5>wand</h5>
2752<p>the drawing wand.</p>
2753
2754<h5>encoding</h5>
2755<p>character string specifying text encoding</p>
2756
2757 </div>
cristy350dea42011-02-15 17:31:04 +00002758<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextKerning">DrawSetTextKerning</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002759<div class="doc-section">
2760
2761<p>DrawSetTextKerning() sets the spacing between characters in text.</p>
2762
2763<p>The format of the DrawSetTextKerning method is:</p>
2764
2765<pre class="code">
2766 void DrawSetTextKerning(DrawingWand *wand,const double kerning)
2767</pre>
2768
2769<p>A description of each parameter follows:</p>
2770
2771<h5>wand</h5>
2772<p>the drawing wand.</p>
2773
2774<h5>kerning</h5>
2775<p>text kerning</p>
2776
2777 </div>
cristy350dea42011-02-15 17:31:04 +00002778<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002779<div class="doc-section">
2780
2781<p>DrawSetTextInterwordSpacing() sets the spacing between line in text.</p>
2782
2783<p>The format of the DrawSetInterwordSpacing method is:</p>
2784
2785<pre class="code">
2786 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2787 const double interline_spacing)
2788</pre>
2789
2790<p>A description of each parameter follows:</p>
2791
2792<h5>wand</h5>
2793<p>the drawing wand.</p>
2794
2795<h5>interline_spacing</h5>
2796<p>text line spacing</p>
2797
2798 </div>
cristy350dea42011-02-15 17:31:04 +00002799<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002800<div class="doc-section">
2801
2802<p>DrawSetTextInterwordSpacing() sets the spacing between words in text.</p>
2803
2804<p>The format of the DrawSetInterwordSpacing method is:</p>
2805
2806<pre class="code">
2807 void DrawSetTextInterwordSpacing(DrawingWand *wand,
2808 const double interword_spacing)
2809</pre>
2810
2811<p>A description of each parameter follows:</p>
2812
2813<h5>wand</h5>
2814<p>the drawing wand.</p>
2815
2816<h5>interword_spacing</h5>
2817<p>text word spacing</p>
2818
2819 </div>
cristy350dea42011-02-15 17:31:04 +00002820<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetTextUnderColor">DrawSetTextUnderColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002821<div class="doc-section">
2822
2823<p>DrawSetTextUnderColor() specifies the color of a background rectangle to place under text annotations.</p>
2824
2825<p>The format of the DrawSetTextUnderColor method is:</p>
2826
2827<pre class="code">
2828 void DrawSetTextUnderColor(DrawingWand *wand,
2829 const PixelWand *under_wand)
2830</pre>
2831
2832<p>A description of each parameter follows:</p>
2833
2834<h5>wand</h5>
2835<p>the drawing wand.</p>
2836
2837<h5>under_wand</h5>
2838<p>text under wand.</p>
2839
2840 </div>
cristy350dea42011-02-15 17:31:04 +00002841<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetVectorGraphics">DrawSetVectorGraphics</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002842<div class="doc-section">
2843
2844<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>
2845
2846<p>The format of the DrawSetVectorGraphics method is:</p>
2847
2848<pre class="code">
2849 MagickBooleanType DrawSetVectorGraphics(DrawingWand *wand,
2850 const char *xml)
2851</pre>
2852
2853<p>A description of each parameter follows:</p>
2854
2855<h5>wand</h5>
2856<p>the drawing wand.</p>
2857
2858<h5>xml</h5>
2859<p>the drawing wand XML.</p>
2860
2861 </div>
cristy350dea42011-02-15 17:31:04 +00002862<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSkewX">DrawSkewX</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002863<div class="doc-section">
2864
2865<p>DrawSkewX() skews the current coordinate system in the horizontal direction.</p>
2866
2867<p>The format of the DrawSkewX method is:</p>
2868
2869<pre class="code">
2870 void DrawSkewX(DrawingWand *wand,const double degrees)
2871</pre>
2872
2873<p>A description of each parameter follows:</p>
2874
2875<h5>wand</h5>
2876<p>the drawing wand.</p>
2877
2878<h5>degrees</h5>
2879<p>number of degrees to skew the coordinates</p>
2880
2881 </div>
cristy350dea42011-02-15 17:31:04 +00002882<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSkewY">DrawSkewY</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002883<div class="doc-section">
2884
2885<p>DrawSkewY() skews the current coordinate system in the vertical direction.</p>
2886
2887<p>The format of the DrawSkewY method is:</p>
2888
2889<pre class="code">
2890 void DrawSkewY(DrawingWand *wand,const double degrees)
2891</pre>
2892
2893<p>A description of each parameter follows:</p>
2894
2895<h5>wand</h5>
2896<p>the drawing wand.</p>
2897
2898<h5>degrees</h5>
2899<p>number of degrees to skew the coordinates</p>
2900
2901 </div>
cristy350dea42011-02-15 17:31:04 +00002902<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawTranslate">DrawTranslate</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002903<div class="doc-section">
2904
2905<p>DrawTranslate() applies a translation to the current coordinate system which moves the coordinate system origin to the specified coordinate.</p>
2906
2907<p>The format of the DrawTranslate method is:</p>
2908
2909<pre class="code">
2910 void DrawTranslate(DrawingWand *wand,const double x,
2911 const double y)
2912</pre>
2913
2914<p>A description of each parameter follows:</p>
2915
2916<h5>wand</h5>
2917<p>the drawing wand.</p>
2918
2919<h5>x</h5>
2920<p>new x ordinate for coordinate system origin</p>
2921
2922<h5>y</h5>
2923<p>new y ordinate for coordinate system origin</p>
2924
2925 </div>
cristy350dea42011-02-15 17:31:04 +00002926<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawSetViewbox">DrawSetViewbox</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002927<div class="doc-section">
2928
2929<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>
2930
2931<p>The format of the DrawSetViewbox method is:</p>
2932
2933<pre class="code">
2934 void DrawSetViewbox(DrawingWand *wand,size_t x1,
2935 size_t y1,size_t x2,size_t y2)
2936</pre>
2937
2938<p>A description of each parameter follows:</p>
2939
2940<h5>wand</h5>
2941<p>the drawing wand.</p>
2942
2943<h5>x1</h5>
2944<p>left x ordinate</p>
2945
2946<h5>y1</h5>
2947<p>top y ordinate</p>
2948
2949<h5>x2</h5>
2950<p>right x ordinate</p>
2951
2952<h5>y2</h5>
2953<p>bottom y ordinate</p>
2954
2955 </div>
cristy350dea42011-02-15 17:31:04 +00002956<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="IsDrawingWand">IsDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002957<div class="doc-section">
2958
2959<p>IsDrawingWand() returns MagickTrue if the wand is verified as a drawing wand.</p>
2960
2961<p>The format of the IsDrawingWand method is:</p>
2962
2963<pre class="code">
2964 MagickBooleanType IsDrawingWand(const DrawingWand *wand)
2965</pre>
2966
2967<p>A description of each parameter follows:</p>
2968
2969<h5>wand</h5>
2970<p>the drawing wand.</p>
2971
2972 </div>
cristy350dea42011-02-15 17:31:04 +00002973<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="NewDrawingWand">NewDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002974<div class="doc-section">
2975
2976<p>NewDrawingWand() returns a drawing wand required for all other methods in the API.</p>
2977
2978<p>The format of the NewDrawingWand method is:</p>
2979
2980<pre class="code">
2981 DrawingWand NewDrawingWand(void)
2982</pre>
2983
2984 </div>
cristy350dea42011-02-15 17:31:04 +00002985<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="PeekDrawingWand">PeekDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +00002986<div class="doc-section">
2987
2988<p>PeekDrawingWand() returns the current drawing wand.</p>
2989
2990<p>The format of the PeekDrawingWand method is:</p>
2991
2992<pre class="code">
2993 DrawInfo *PeekDrawingWand(const DrawingWand *wand)
2994</pre>
2995
2996<p>A description of each parameter follows:</p>
2997
2998<h5>wand</h5>
2999<p>the drawing wand.</p>
3000
3001 </div>
cristy350dea42011-02-15 17:31:04 +00003002<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="PopDrawingWand">PopDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +00003003<div class="doc-section">
3004
3005<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>
3006
3007<p>The format of the PopDrawingWand method is:</p>
3008
3009<pre class="code">
3010 MagickBooleanType PopDrawingWand(DrawingWand *wand)
3011</pre>
3012
3013<p>A description of each parameter follows:</p>
3014
3015<h5>wand</h5>
3016<p>the drawing wand.</p>
3017
3018 </div>
cristy350dea42011-02-15 17:31:04 +00003019<h2><a href="http://www.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="PushDrawingWand">PushDrawingWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +00003020<div class="doc-section">
3021
3022<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>
3023
3024<p>The format of the PushDrawingWand method is:</p>
3025
3026<pre class="code">
3027 MagickBooleanType PushDrawingWand(DrawingWand *wand)
3028</pre>
3029
3030<p>A description of each parameter follows:</p>
3031
3032<h5>wand</h5>
3033<p>the drawing wand.</p>
3034
3035 </div>
cristy3eaa0ef2010-03-06 20:35:26 +00003036
3037</div>
3038
3039<div id="linkbar">
cristyce69bb02010-07-27 19:49:46 +00003040 <span id="linkbar-west">&nbsp;</span>
cristy3eaa0ef2010-03-06 20:35:26 +00003041 <span id="linkbar-center">
3042 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> &bull;
cristya8902942010-07-30 00:49:52 +00003043 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
cristy3eaa0ef2010-03-06 20:35:26 +00003044 </span>
3045 <span id="linkbar-east">&nbsp;</span>
3046 </div>
3047 <div class="footer">
cristy4103d562010-12-10 01:38:54 +00003048 <span id="footer-west">&copy; 1999-2011 ImageMagick Studio LLC</span>
cristy3eaa0ef2010-03-06 20:35:26 +00003049 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
3050 </div>
3051 <div style="clear: both; margin: 0; width: 100%; "></div>
cristya8902942010-07-30 00:49:52 +00003052 <script type="text/javascript">
3053 var _gaq = _gaq || [];
3054 _gaq.push(['_setAccount', 'UA-17690367-1']);
3055 _gaq.push(['_trackPageview']);
3056
3057 (function() {
3058 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
3059 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
3060 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
3061 })();
3062 </script>
cristy3eaa0ef2010-03-06 20:35:26 +00003063</body>
3064</html>