cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en" xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 3 | <head> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 4 | <meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta> |
| 5 | <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4"></meta> |
cristy | ffb69ed | 2010-12-25 00:06:48 +0000 | [diff] [blame] | 6 | <title>ImageMagick: MagickCore, C API for ImageMagick: Draw on an Image</title> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 7 | <meta http-equiv="content-language" content="en-US"></meta> |
| 8 | <meta http-equiv="content-type" content="text/html; charset=utf-8"></meta> |
| 9 | <meta http-equiv="reply-to" content="magick-users@imagemagick.org"></meta> |
| 10 | <meta name="application-name" content="ImageMagick"></meta> |
| 11 | <meta name="description" content="Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition, resize, rotate, shear, distort or transform images automagically."></meta> |
| 12 | <meta name="application-url" content="http://www.imagemagick.org"></meta> |
| 13 | <meta name="generator" content="PHP"></meta> |
| 14 | <meta name="keywords" content="magickcore, c, api, for, imagemagick:, draw, on, an, image, ImageMagick, PerlMagick, image processing, OpenMP, software development library, image, photo, software, Magick++, MagickWand"></meta> |
| 15 | <meta name="rating" content="GENERAL"></meta> |
| 16 | <meta name="robots" content="INDEX, FOLLOW"></meta> |
| 17 | <meta name="generator" content="ImageMagick Studio LLC"></meta> |
| 18 | <meta name="author" content="ImageMagick Studio LLC"></meta> |
| 19 | <meta name="revisit-after" content="2 DAYS"></meta> |
| 20 | <meta name="resource-type" content="document"></meta> |
| 21 | <meta name="copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC"></meta> |
| 22 | <meta name="distribution" content="Global"></meta> |
| 23 | <link rel="icon" href="../../images/wand.png"></link> |
| 24 | <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"></link> |
| 25 | <link rel="canonical" href="../../index.html"></link> |
| 26 | <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"></link> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 27 | |
| 28 | <!-- Add jQuery library --> |
| 29 | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> |
| 30 | |
| 31 | <!-- Add mousewheel plugin (this is optional) --> |
| 32 | <script type="text/javascript" src="http://www.imagemagick.org/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script> |
| 33 | |
| 34 | <!-- Add fancyBox --> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 35 | <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/jquery.fancybox.css?v=2.0.6" type="text/css" media="screen"></link> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 36 | <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/jquery.fancybox.pack.js?v=2.0.6"></script> |
| 37 | |
| 38 | <!-- Optionally add helpers - button, thumbnail and/or media --> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 39 | <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.2" type="text/css" media="screen"></link> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 40 | <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.2"></script> |
| 41 | <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.0"></script> |
| 42 | |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 43 | <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=2.0.6" type="text/css" media="screen"></link> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 44 | <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=2.0.6"></script> |
| 45 | |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 46 | <script type="text/javascript"> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 47 | $(document).ready(function() { |
| 48 | $(".fancybox").fancybox(); |
| 49 | }); |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 50 | </script> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 51 | |
| 52 | <!-- ImageMagick style --> |
| 53 | <style type="text/css" media="all"> |
| 54 | @import url("../../www/magick.css"); |
| 55 | </style> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 56 | </head> |
| 57 | |
| 58 | <body id="www-imagemagick-org"> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 59 | |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 60 | |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 61 | |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 62 | <div class="titlebar"> |
| 63 | <div style="margin: 17px auto; float: left;"> |
| 64 | <script type="text/javascript"> |
| 65 | <!-- |
| 66 | google_ad_client = "pub-3129977114552745"; |
| 67 | google_ad_slot = "5439289906"; |
| 68 | google_ad_width = 728; |
| 69 | google_ad_height = 90; |
| 70 | //--> |
| 71 | </script> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 72 | |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 73 | </div> |
cristy | 417eeb1 | 2013-07-28 18:48:22 +0000 | [diff] [blame] | 74 | <a href="../../discourse-server"> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 75 | <img src="../../images/logo.jpg" alt="ImageMagick Logo" style="width: 123px; height: 118px; border: 0px; float: right;"></img></a> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 76 | <a href="../../index.html"> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 77 | <img src="../../images/sprite.jpg" alt="ImageMagick Sprite" style="width: 114px; height: 118px; border: 0px; float: right;"></img></a> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 78 | </div> |
| 79 | |
| 80 | <div class="westbar"> |
| 81 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 82 | <div class="menu"> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 83 | <a title="About ImageMagick" href="../../index.html">About ImageMagick</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 84 | </div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 85 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 86 | <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 87 | </div> |
| 88 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 89 | <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 90 | </div> |
| 91 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 92 | <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 93 | </div> |
| 94 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 95 | <a title="Binary Release: iOS" href="../../www/binary-releases.html#iOS">iOS</a> |
cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 96 | </div> |
| 97 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 98 | <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 99 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 100 | <div class="sep"></div> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 101 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 102 | <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 103 | </div> |
| 104 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 105 | <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 106 | </div> |
| 107 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 108 | <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 109 | </div> |
| 110 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 111 | <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 112 | </div> |
| 113 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 114 | <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 115 | </div> |
| 116 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 117 | <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 118 | </div> |
| 119 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 120 | <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 121 | </div> |
| 122 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 123 | <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 124 | </div> |
| 125 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 126 | <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 127 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 128 | <div class="sep"></div> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 129 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 130 | <a title="Install from Source" href="../../www/install-source.html">Install from Source</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 131 | </div> |
| 132 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 133 | <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 134 | </div> |
| 135 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 136 | <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 137 | </div> |
| 138 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 139 | <a title="Resources" href="../../www/resources.html">Resources</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 140 | </div> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 141 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 142 | <a title="Architecture" href="../../www/architecture.html">Architecture</a> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 143 | </div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 144 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 145 | <a title="Download" href="../../www/download.html">Download</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 146 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 147 | <div class="sep"></div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 148 | <div class="menu"> |
cristy | 3dfa219 | 2013-02-24 22:46:05 +0000 | [diff] [blame] | 149 | <a title="Search" href="http://www.imagemagick.org/script/search.php">Search</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 150 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 151 | <div class="sep"></div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 152 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 153 | <a title="Site Map" href="../../www/sitemap.html">Site Map</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 154 | </div> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 155 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame] | 156 | <a title="Site Map: Links" href="../../www/links.html">Links</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 157 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 158 | <div class="sep"></div> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 159 | <div class="menu"> |
| 160 | <a title="Support ImageMagick Development" href="../../www/support.html">Support ImageMagick Development</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 161 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 162 | </div> |
| 163 | |
| 164 | <div class="eastbar"> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 165 | |
cristy | 417eeb1 | 2013-07-28 18:48:22 +0000 | [diff] [blame] | 166 | <div> <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="../../index.html"></a></div> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 167 | <noscript> |
| 168 | <a href="http://flattr.com/thing/947300/Convert-Edit-And-Compose-Images" target="_blank"> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 169 | <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" width="93" height="20" border="0"></img></a> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 170 | </noscript> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 171 | |
| 172 | |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 173 | </div> |
| 174 | |
| 175 | <div class="main"> |
| 176 | |
cristy | 2039843 | 2011-08-11 01:31:50 +0000 | [diff] [blame] | 177 | <h1>Module draw Methods</h1> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 178 | <p class="navigation-index">[<a href="draw.html#AcquireDrawInfo">AcquireDrawInfo</a> • <a href="draw.html#CloneDrawInfo">CloneDrawInfo</a> • <a href="draw.html#DestroyDrawInfo">DestroyDrawInfo</a> • <a href="draw.html#DrawAffineImage">DrawAffineImage</a> • <a href="draw.html#DrawClipPath">DrawClipPath</a> • <a href="draw.html#DrawImage">DrawImage</a> • <a href="draw.html#DrawGradientImage">DrawGradientImage</a> • <a href="draw.html#DrawPatternPath">DrawPatternPath</a> • <a href="draw.html#DrawPrimitive">DrawPrimitive</a> • <a href="draw.html#GetAffineMatrix">GetAffineMatrix</a>]</p> |
cristy | 6f77f69 | 2011-02-15 15:31:39 +0000 | [diff] [blame] | 179 | |
cristy | 2039843 | 2011-08-11 01:31:50 +0000 | [diff] [blame] | 180 | <h2><a href="http://www.imagemagick.org/api/MagickCore/draw_8c.html" id="AcquireDrawInfo">AcquireDrawInfo</a></h2> |
| 181 | <div class="doc-section"> |
| 182 | |
| 183 | <p>AcquireDrawInfo() returns a DrawInfo structure properly initialized.</p> |
| 184 | |
| 185 | <p>The format of the AcquireDrawInfo method is:</p> |
| 186 | |
| 187 | <pre class="code"> |
| 188 | DrawInfo *AcquireDrawInfo(void) |
| 189 | </pre> |
| 190 | |
| 191 | </div> |
| 192 | <h2><a href="http://www.imagemagick.org/api/MagickCore/draw_8c.html" id="CloneDrawInfo">CloneDrawInfo</a></h2> |
| 193 | <div class="doc-section"> |
| 194 | |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 195 | <p>CloneDrawInfo() makes a copy of the given draw_info structure. If NULL is specified, a new DrawInfo structure is created initialized to default values.</p> |
cristy | 2039843 | 2011-08-11 01:31:50 +0000 | [diff] [blame] | 196 | |
| 197 | <p>The format of the CloneDrawInfo method is:</p> |
| 198 | |
| 199 | <pre class="code"> |
| 200 | DrawInfo *CloneDrawInfo(const ImageInfo *image_info, |
| 201 | const DrawInfo *draw_info) |
| 202 | </pre> |
| 203 | |
| 204 | <p>A description of each parameter follows:</p> |
| 205 | |
| 206 | <h5>image_info</h5> |
| 207 | <p>the image info.</p> |
| 208 | |
| 209 | <h5>draw_info</h5> |
| 210 | <p>the draw info.</p> |
| 211 | |
| 212 | </div> |
| 213 | <h2><a href="http://www.imagemagick.org/api/MagickCore/draw_8c.html" id="DestroyDrawInfo">DestroyDrawInfo</a></h2> |
| 214 | <div class="doc-section"> |
| 215 | |
| 216 | <p>DestroyDrawInfo() deallocates memory associated with an DrawInfo structure.</p> |
| 217 | |
| 218 | <p>The format of the DestroyDrawInfo method is:</p> |
| 219 | |
| 220 | <pre class="code"> |
| 221 | DrawInfo *DestroyDrawInfo(DrawInfo *draw_info) |
| 222 | </pre> |
| 223 | |
| 224 | <p>A description of each parameter follows:</p> |
| 225 | |
| 226 | <h5>draw_info</h5> |
| 227 | <p>the draw info.</p> |
| 228 | |
| 229 | </div> |
| 230 | <h2><a href="http://www.imagemagick.org/api/MagickCore/draw_8c.html" id="DrawAffineImage">DrawAffineImage</a></h2> |
| 231 | <div class="doc-section"> |
| 232 | |
| 233 | <p>DrawAffineImage() composites the source over the destination image as dictated by the affine transform.</p> |
| 234 | |
| 235 | <p>The format of the DrawAffineImage method is:</p> |
| 236 | |
| 237 | <pre class="code"> |
| 238 | MagickBooleanType DrawAffineImage(Image *image,const Image *source, |
| 239 | const AffineMatrix *affine) |
| 240 | </pre> |
| 241 | |
| 242 | <p>A description of each parameter follows:</p> |
| 243 | |
| 244 | <h5>image</h5> |
| 245 | <p>the image.</p> |
| 246 | |
| 247 | <h5>source</h5> |
| 248 | <p>the source image.</p> |
| 249 | |
| 250 | <h5>affine</h5> |
| 251 | <p>the affine transform.</p> |
| 252 | |
| 253 | </div> |
| 254 | <h2><a href="http://www.imagemagick.org/api/MagickCore/draw_8c.html" id="DrawClipPath">DrawClipPath</a></h2> |
| 255 | <div class="doc-section"> |
| 256 | |
| 257 | <p>DrawClipPath() draws the clip path on the image mask.</p> |
| 258 | |
| 259 | <p>The format of the DrawClipPath method is:</p> |
| 260 | |
| 261 | <pre class="code"> |
| 262 | MagickBooleanType DrawClipPath(Image *image,const DrawInfo *draw_info, |
| 263 | const char *name) |
| 264 | </pre> |
| 265 | |
| 266 | <p>A description of each parameter follows:</p> |
| 267 | |
| 268 | <h5>image</h5> |
| 269 | <p>the image.</p> |
| 270 | |
| 271 | <h5>draw_info</h5> |
| 272 | <p>the draw info.</p> |
| 273 | |
| 274 | <h5>name</h5> |
| 275 | <p>the name of the clip path.</p> |
| 276 | |
| 277 | </div> |
| 278 | <h2><a href="http://www.imagemagick.org/api/MagickCore/draw_8c.html" id="DrawImage">DrawImage</a></h2> |
| 279 | <div class="doc-section"> |
| 280 | |
| 281 | <p>DrawImage() draws a graphic primitive on your image. The primitive may be represented as a string or filename. Precede the filename with an "at" sign (@) and the contents of the file are drawn on the image. You can affect how text is drawn by setting one or more members of the draw info structure.</p> |
| 282 | |
| 283 | <p>The format of the DrawImage method is:</p> |
| 284 | |
| 285 | <pre class="code"> |
| 286 | MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info) |
| 287 | </pre> |
| 288 | |
| 289 | <p>A description of each parameter follows:</p> |
| 290 | |
| 291 | <h5>image</h5> |
| 292 | <p>the image.</p> |
| 293 | |
| 294 | <h5>draw_info</h5> |
| 295 | <p>the draw info.</p> |
| 296 | |
| 297 | </div> |
| 298 | <h2><a href="http://www.imagemagick.org/api/MagickCore/draw_8c.html" id="DrawGradientImage">DrawGradientImage</a></h2> |
| 299 | <div class="doc-section"> |
| 300 | |
| 301 | <p>DrawGradientImage() draws a linear gradient on the image.</p> |
| 302 | |
| 303 | <p>The format of the DrawGradientImage method is:</p> |
| 304 | |
| 305 | <pre class="code"> |
| 306 | MagickBooleanType DrawGradientImage(Image *image, |
| 307 | const DrawInfo *draw_info) |
| 308 | </pre> |
| 309 | |
| 310 | <p>A description of each parameter follows:</p> |
| 311 | |
| 312 | <h5>image</h5> |
| 313 | <p>the image.</p> |
| 314 | |
| 315 | <h5>_info</h5> |
| 316 | <p>the draw info.</p> |
| 317 | |
| 318 | </div> |
| 319 | <h2><a href="http://www.imagemagick.org/api/MagickCore/draw_8c.html" id="DrawPatternPath">DrawPatternPath</a></h2> |
| 320 | <div class="doc-section"> |
| 321 | |
| 322 | <p>DrawPatternPath() draws a pattern.</p> |
| 323 | |
| 324 | <p>The format of the DrawPatternPath method is:</p> |
| 325 | |
| 326 | <pre class="code"> |
| 327 | MagickBooleanType DrawPatternPath(Image *image,const DrawInfo *draw_info, |
| 328 | const char *name,Image **pattern) |
| 329 | </pre> |
| 330 | |
| 331 | <p>A description of each parameter follows:</p> |
| 332 | |
| 333 | <h5>image</h5> |
| 334 | <p>the image.</p> |
| 335 | |
| 336 | <h5>draw_info</h5> |
| 337 | <p>the draw info.</p> |
| 338 | |
| 339 | <h5>name</h5> |
| 340 | <p>the pattern name.</p> |
| 341 | |
| 342 | <h5>image</h5> |
| 343 | <p>the image.</p> |
| 344 | |
| 345 | </div> |
| 346 | <h2><a href="http://www.imagemagick.org/api/MagickCore/draw_8c.html" id="DrawPrimitive">DrawPrimitive</a></h2> |
| 347 | <div class="doc-section"> |
| 348 | |
| 349 | <p>DrawPrimitive() draws a primitive (line, rectangle, ellipse) on the image.</p> |
| 350 | |
| 351 | <p>The format of the DrawPrimitive method is:</p> |
| 352 | |
| 353 | <pre class="code"> |
| 354 | MagickBooleanType DrawPrimitive(Image *image,const DrawInfo *draw_info, |
| 355 | PrimitiveInfo *primitive_info) |
| 356 | </pre> |
| 357 | |
| 358 | <p>A description of each parameter follows:</p> |
| 359 | |
| 360 | <h5>image</h5> |
| 361 | <p>the image.</p> |
| 362 | |
| 363 | <h5>draw_info</h5> |
| 364 | <p>the draw info.</p> |
| 365 | |
| 366 | <h5>primitive_info</h5> |
| 367 | <p>Specifies a pointer to a PrimitiveInfo structure.</p> |
| 368 | |
| 369 | </div> |
| 370 | <h2><a href="http://www.imagemagick.org/api/MagickCore/draw_8c.html" id="GetAffineMatrix">GetAffineMatrix</a></h2> |
| 371 | <div class="doc-section"> |
| 372 | |
| 373 | <p>GetAffineMatrix() returns an AffineMatrix initialized to the identity matrix.</p> |
| 374 | |
| 375 | <p>The format of the GetAffineMatrix method is:</p> |
| 376 | |
| 377 | <pre class="code"> |
| 378 | void GetAffineMatrix(AffineMatrix *affine_matrix) |
| 379 | </pre> |
| 380 | |
| 381 | <p>A description of each parameter follows:</p> |
| 382 | |
| 383 | <h5>affine_matrix</h5> |
| 384 | <p>the affine matrix.</p> |
| 385 | |
| 386 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 387 | |
| 388 | </div> |
| 389 | |
| 390 | <div id="linkbar"> |
cristy | ac1b432 | 2013-07-28 13:58:06 +0000 | [diff] [blame] | 391 | <span id="linkbar-west"> </span> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 392 | |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 393 | <span id="linkbar-center"> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 394 | <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> • |
| 395 | <a href="../../discourse-server">Discourse Server</a> • |
| 396 | <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a> • |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 397 | <a href="http://jqmagick.imagemagick.org/">JqMagick</a> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 398 | </span> |
cristy | ac1b432 | 2013-07-28 13:58:06 +0000 | [diff] [blame] | 399 | <span id="linkbar-east"> </span> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame^] | 400 | </div> |
| 401 | <div class="footer"> |
| 402 | <span id="footer-west">© 1999-2013 ImageMagick Studio LLC</span> |
| 403 | <span id="footer-east"> <a href="../../www/contact.html">Contact the Wizards</a></span> |
| 404 | </div> |
| 405 | <div style="clear: both; margin: 0; width: 100%; "></div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 406 | </body> |
| 407 | </html> |