cristy | dcca3fa | 2010-12-29 21:50:07 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
| 2 | "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
| 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr">
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 4 | <head>
|
cristy | 3c98a4f | 2010-08-13 20:09:41 +0000 | [diff] [blame] | 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
| 6 | <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>
|
cristy | ffb69ed | 2010-12-25 00:06:48 +0000 | [diff] [blame] | 7 | <title>ImageMagick: MagickCore, C API for ImageMagick: Image Methods</title> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8 | <meta http-equiv="Content-Language" content="en-US"/> |
| 9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 10 | <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/> |
cristy | 3c98a4f | 2010-08-13 20:09:41 +0000 | [diff] [blame] | 11 | <meta name="Application-name" content="ImageMagick"/> |
cristy | dcca3fa | 2010-12-29 21:50:07 +0000 | [diff] [blame] | 12 | <meta name="Description" content="ImageMagick is a software suite to create, edit, compose, or convert bitmap images in a variety of formats. Use ImageMagick to scale, rotate, shear, distort and transform images."/> |
cristy | 3c98a4f | 2010-08-13 20:09:41 +0000 | [diff] [blame] | 13 | <meta name="Application-url" content="http://www.imagemagick.org"/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14 | <meta name="Generator" content="PHP"/> |
| 15 | <meta name="Keywords" content="magickcore, c, api, for, imagemagick:, image, methods, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing"/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16 | <meta name="Rating" content="GENERAL"/> |
| 17 | <meta name="Robots" content="INDEX, FOLLOW"/> |
| 18 | <meta name="Generator" content="ImageMagick Studio LLC"/> |
| 19 | <meta name="Author" content="ImageMagick Studio LLC"/> |
| 20 | <meta name="Revisit-after" content="2 DAYS"/> |
| 21 | <meta name="Resource-type" content="document"/> |
cristy | 4103d56 | 2010-12-10 01:38:54 +0000 | [diff] [blame] | 22 | <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23 | <meta name="Distribution" content="Global"/> |
cristy | dcca3fa | 2010-12-29 21:50:07 +0000 | [diff] [blame] | 24 | <link rel="icon" href="../../images/wand.png"/> |
cristy | 3c98a4f | 2010-08-13 20:09:41 +0000 | [diff] [blame] | 25 | <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/> |
| 26 | <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
|
| 27 | <style type="text/css" media="all">
|
| 28 | @import url("../../www/magick.css");
|
| 29 | </style>
|
cristy | dcca3fa | 2010-12-29 21:50:07 +0000 | [diff] [blame] | 30 | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
|
cristy | 361f466 | 2010-12-31 23:02:52 +0000 | [diff] [blame] | 31 | <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
| 32 | <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />
|
| 33 | <script type="text/javascript">
|
| 34 | $(document).ready(function() {
|
| 35 | $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
|
| 36 | 'transitionIn' : 'elastic',
|
| 37 | 'transitionOut' : 'elastic',
|
| 38 | 'overlayShow' : false,
|
| 39 | 'opacity' : true
|
| 40 | });
|
| 41 | });
|
| 42 | </script>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 43 | </head>
|
| 44 |
|
| 45 | <body id="www-imagemagick-org">
|
| 46 | <div class="titlebar">
|
| 47 | <a href="../../index.html">
|
| 48 | <img src="../../images/script.png" alt="[ImageMagick]"
|
| 49 | style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
|
| 50 | <a href="http://www.networkredux.com">
|
| 51 | <img src="../../images/networkredux.png" alt="[sponsor]"
|
| 52 | style="margin: 45px auto; border: 0px; float: left;" /></a>
|
| 53 | <a href="http://www.imagemagick.org/discourse-server/">
|
| 54 | <img src="../../images/logo.jpg" alt=""
|
| 55 | style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
|
| 56 | <a href="../../index.html">
|
| 57 | <img src="../../images/sprite.jpg" alt=""
|
| 58 | style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
|
| 59 | </div>
|
| 60 |
|
cristy | ce69bb0 | 2010-07-27 19:49:46 +0000 | [diff] [blame] | 61 | <div class="westbar">
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 62 |
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 63 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 64 | <a title="About ImageMagick" href="../../index.html">About ImageMagick</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 65 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 66 | <div class="sep"></div>
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 67 | <div class="menu"> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 68 | <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a> |
| 69 | </div> |
| 70 | <div class="sub"> |
| 71 | <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a> |
| 72 | </div> |
| 73 | <div class="sub"> |
| 74 | <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a> |
| 75 | </div> |
| 76 | <div class="sub"> |
| 77 | <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a> |
| 78 | </div> |
| 79 | <div class="sep"></div>
|
| 80 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 81 | <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] | 82 | </div> |
| 83 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 84 | <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] | 85 | </div> |
| 86 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 87 | <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] | 88 | </div> |
| 89 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 90 | <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] | 91 | </div> |
| 92 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 93 | <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 94 | </div> |
| 95 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 96 | <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 97 | </div> |
| 98 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 99 | <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 100 | </div> |
| 101 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 102 | <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 103 | </div> |
| 104 | <div class="sub"> |
cristy | dcca3fa | 2010-12-29 21:50:07 +0000 | [diff] [blame] | 105 | <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 106 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 107 | <div class="sep"></div>
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 108 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 109 | <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] | 110 | </div> |
| 111 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 112 | <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] | 113 | </div> |
| 114 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 115 | <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] | 116 | </div> |
| 117 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 118 | <a title="Resources" href="../../www/resources.html">Resources</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 119 | </div> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 120 | <div class="menu"> |
| 121 | <a title="Architecture" href="../../www/architecture.html">Architecture</a> |
| 122 | </div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 123 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 124 | <a title="Download" href="../../www/download.html">Download</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 125 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 126 | <div class="sep"></div>
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 127 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 128 | <a title="Search" href="../http://www.imagemagick.org/script/search.php">Search</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 129 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 130 | <div class="sep"></div>
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 131 | <div class="menu"> |
cristy | ffb69ed | 2010-12-25 00:06:48 +0000 | [diff] [blame] | 132 | <a title="Site Map" href="../../www/sitemap.html">Site Map</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 133 | </div> |
| 134 | <div class="sub"> |
cristy | ffb69ed | 2010-12-25 00:06:48 +0000 | [diff] [blame] | 135 | <a title="Site Map: Links" href="../../www/links.html">Links</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 136 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 137 | <div class="sep"></div>
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 138 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 139 | <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 140 | |
| 141 | <div class="sponsbox"> |
cristy | ec6b475 | 2011-01-08 03:16:23 +0000 | [diff] [blame^] | 142 | <div class="sponsor"> |
| 143 | <a title="Sponsor: Web Hosting" href="http://www.bodhost.com/hosting.html">Web Hosting</a><!-- 201104010090 --> |
cristy | 5c4585b | 2010-11-11 00:13:57 +0000 | [diff] [blame] | 144 | </div> |
| 145 | <div class="sponsor"> |
cristy | 7d52cd6 | 2010-10-01 17:26:59 +0000 | [diff] [blame] | 146 | <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 --> |
cristy | 73fd1cd | 2010-09-12 19:14:25 +0000 | [diff] [blame] | 147 | </div> |
| 148 | <div class="sponsor"> |
cristy | c5baf4f | 2010-08-31 15:05:33 +0000 | [diff] [blame] | 149 | <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee--> |
| 150 | </div> |
| 151 | <div class="sponsor"> |
cristy | 851dbce | 2010-08-06 21:40:00 +0000 | [diff] [blame] | 152 | <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter--> |
| 153 | </div> |
cristy | ec6b475 | 2011-01-08 03:16:23 +0000 | [diff] [blame^] | 154 | <div class="sponsor"> |
| 155 | <a title="Sponsor: alaTest.com" href="http://alatest.com">alaTest.com</a><!-- 20110801000300 --> |
| 156 | </div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 157 | </div> |
| 158 | </div> |
cristy | ce69bb0 | 2010-07-27 19:49:46 +0000 | [diff] [blame] | 159 | </div>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 160 |
|
cristy | ce69bb0 | 2010-07-27 19:49:46 +0000 | [diff] [blame] | 161 | <div class="eastbar">
|
| 162 | <script type="text/javascript">
|
| 163 | <!--
|
| 164 | google_ad_client = "pub-3129977114552745";
|
cristy | ce69bb0 | 2010-07-27 19:49:46 +0000 | [diff] [blame] | 165 | google_ad_slot = "0574824969";
|
| 166 | google_ad_width = 160;
|
| 167 | google_ad_height = 600;
|
| 168 | //-->
|
| 169 | </script>
|
| 170 | <script type="text/javascript"
|
| 171 | src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
| 172 | </script>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 173 | </div>
|
| 174 |
|
| 175 | <div class="main">
|
| 176 |
|
cristy | 307ba18 | 2010-12-25 01:00:34 +0000 | [diff] [blame] | 177 | <h1>Module image |
| 178 | Methods</h1> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 179 | <p class="navigation-index">[<a href="#AcquireImage">AcquireImage</a> • <a href="#AcquireImageInfo">AcquireImageInfo</a> • <a href="#AcquireNextImage">AcquireNextImage</a> • <a href="#AppendImages">AppendImages</a> • <a href="#CatchImageException">CatchImageException</a> • <a href="#ClipImagePath">ClipImagePath</a> • <a href="#CloneImage">CloneImage</a> • <a href="#CloneImageInfo">CloneImageInfo</a> • <a href="#CombineImages">CombineImages</a> • <a href="#DestroyImage">DestroyImage</a> • <a href="#DestroyImageInfo">DestroyImageInfo</a> • <a href="#GetImageAlphaChannel">GetImageAlphaChannel</a> • <a href="#GetImageClipMask">GetImageClipMask</a> • <a href="#GetImageException">GetImageException</a> • <a href="#GetImageInfo">GetImageInfo</a> • <a href="#GetImageInfoFile">GetImageInfoFile</a> • <a href="#GetImageMask">GetImageMask</a> • <a href="#GetImageVirtualPixelMethod">GetImageVirtualPixelMethod</a> • <a href="#InterpretImageFilename">InterpretImageFilename</a> • <a href="#IsHighDynamicRangeImage">IsHighDynamicRangeImage</a> • <a href="#IsImageObject">IsImageObject</a> • <a href="#IsTaintImage">IsTaintImage</a> • <a href="#ModifyImage">ModifyImage</a> • <a href="#NewMagickImage">NewMagickImage</a> • <a href="#ReferenceImage">ReferenceImage</a> • <a href="#ResetImagePage">ResetImagePage</a> • <a href="#SeparateImageChannel">SeparateImageChannel</a> • <a href="#SeparateImages">SeparateImages</a> • <a href="#SetImageAlphaChannel">SetImageAlphaChannel</a> • <a href="#SetImageBackgroundColor">SetImageBackgroundColor</a> • <a href="#SetImageColor">SetImageColor</a> • <a href="#SetImageStorageClass">SetImageStorageClass</a> • <a href="#SetImageClipMask">SetImageClipMask</a> • <a href="#SetImageExtent">SetImageExtent</a> • <a href="#SetImageInfoBlob">SetImageInfoBlob</a> • <a href="#SetImageInfoFile">SetImageInfoFile</a> • <a href="#SetImageMask">SetImageMask</a> • <a href="#SetImageOpacity">SetImageOpacity</a> • <a href="#SetImageType">SetImageType</a> • <a href="#SetImageVirtualPixelMethod">SetImageVirtualPixelMethod</a> • <a href="#StripImage">StripImage</a> • <a href="#SyncImageSettings">SyncImageSettings</a>]</p> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 180 | |
| 181 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 182 | _8c.html" target="source" name="AcquireImage">AcquireImage</a></h2> |
| 183 | <div class="doc-section"> |
| 184 | |
| 185 | <p>AcquireImage() returns a pointer to an image structure initialized to default values.</p></ol> |
| 186 | |
| 187 | <p>The format of the AcquireImage method is:</p> |
| 188 | |
| 189 | <pre class="code"> |
| 190 | Image *AcquireImage(const ImageInfo *image_info) |
| 191 | </pre> |
| 192 | |
| 193 | <p>A description of each parameter follows:</p></ol> |
| 194 | |
| 195 | <h5>image_info</h5> |
| 196 | <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol> |
| 197 | |
| 198 | </div> |
| 199 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 200 | _8c.html" target="source" name="AcquireImageInfo">AcquireImageInfo</a></h2> |
| 201 | <div class="doc-section"> |
| 202 | |
| 203 | <p>AcquireImageInfo() allocates the ImageInfo structure.</p></ol> |
| 204 | |
| 205 | <p>The format of the AcquireImageInfo method is:</p> |
| 206 | |
| 207 | <pre class="code"> |
| 208 | ImageInfo *AcquireImageInfo(void) |
| 209 | </pre> |
| 210 | |
| 211 | </div> |
| 212 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 213 | _8c.html" target="source" name="AcquireNextImage">AcquireNextImage</a></h2> |
| 214 | <div class="doc-section"> |
| 215 | |
| 216 | <p>AcquireNextImage() initializes the next image in a sequence to default values. The next member of image points to the newly allocated image. If there is a memory shortage, next is assigned NULL.</p></ol> |
| 217 | |
| 218 | <p>The format of the AcquireNextImage method is:</p> |
| 219 | |
| 220 | <pre class="code"> |
| 221 | void AcquireNextImage(const ImageInfo *image_info,Image *image) |
| 222 | </pre> |
| 223 | |
| 224 | <p>A description of each parameter follows:</p></ol> |
| 225 | |
| 226 | <h5>image_info</h5> |
| 227 | <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol> |
| 228 | |
| 229 | <h5>image</h5> |
| 230 | <ol><p>the image.</p></ol> |
| 231 | |
| 232 | </div> |
| 233 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 234 | _8c.html" target="source" name="AppendImages">AppendImages</a></h2> |
| 235 | <div class="doc-section"> |
| 236 | |
| 237 | <p>AppendImages() takes all images from the current image pointer to the end of the image list and appends them to each other top-to-bottom if the stack parameter is true, otherwise left-to-right.</p></ol> |
| 238 | |
| 239 | <p>The current gravity setting now effects how the image is justified in the final image.</p></ol> |
| 240 | |
| 241 | <p>The format of the AppendImages method is:</p> |
| 242 | |
| 243 | <pre class="code"> |
| 244 | Image *AppendImages(const Image *image,const MagickBooleanType stack, |
| 245 | ExceptionInfo *exception) |
| 246 | </pre> |
| 247 | |
| 248 | <p>A description of each parameter follows:</p></ol> |
| 249 | |
| 250 | <h5>image</h5> |
| 251 | <ol><p>the image sequence.</p></ol> |
| 252 | |
| 253 | <h5>stack</h5> |
| 254 | <ol><p>A value other than 0 stacks the images top-to-bottom.</p></ol> |
| 255 | |
| 256 | <h5>exception</h5> |
| 257 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 258 | |
| 259 | </div> |
| 260 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 261 | _8c.html" target="source" name="CatchImageException">CatchImageException</a></h2> |
| 262 | <div class="doc-section"> |
| 263 | |
| 264 | <p>CatchImageException() returns if no exceptions are found in the image sequence, otherwise it determines the most severe exception and reports it as a warning or error depending on the severity.</p></ol> |
| 265 | |
| 266 | <p>The format of the CatchImageException method is:</p> |
| 267 | |
| 268 | <pre class="code"> |
| 269 | ExceptionType CatchImageException(Image *image) |
| 270 | </pre> |
| 271 | |
| 272 | <p>A description of each parameter follows:</p></ol> |
| 273 | |
| 274 | <h5>image</h5> |
| 275 | <ol><p>An image sequence.</p></ol> |
| 276 | |
| 277 | </div> |
| 278 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 279 | _8c.html" target="source" name="ClipImagePath">ClipImagePath</a></h2> |
| 280 | <div class="doc-section"> |
| 281 | |
| 282 | <p>ClipImagePath() sets the image clip mask based any clipping path information if it exists.</p></ol> |
| 283 | |
| 284 | <p>The format of the ClipImagePath method is:</p> |
| 285 | |
| 286 | <pre class="code"> |
| 287 | MagickBooleanType ClipImagePath(Image *image,const char *pathname, |
| 288 | const MagickBooleanType inside) |
| 289 | </pre> |
| 290 | |
| 291 | <p>A description of each parameter follows:</p></ol> |
| 292 | |
| 293 | <h5>image</h5> |
| 294 | <ol><p>the image.</p></ol> |
| 295 | |
| 296 | <h5>pathname</h5> |
| 297 | <ol><p>name of clipping path resource. If name is preceded by #, use clipping path numbered by name.</p></ol> |
| 298 | |
| 299 | <h5>inside</h5> |
| 300 | <ol><p>if non-zero, later operations take effect inside clipping path. Otherwise later operations take effect outside clipping path.</p></ol> |
| 301 | |
| 302 | </div> |
| 303 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 304 | _8c.html" target="source" name="CloneImage">CloneImage</a></h2> |
| 305 | <div class="doc-section"> |
| 306 | |
| 307 | <p>CloneImage() copies an image and returns the copy as a new image object. If the specified columns and rows is 0, an exact copy of the image is returned, otherwise the pixel data is undefined and must be initialized with the QueueAuthenticPixels() and SyncAuthenticPixels() methods. On failure, a NULL image is returned and exception describes the reason for the failure.</p></ol> |
| 308 | |
| 309 | <p>The format of the CloneImage method is:</p> |
| 310 | |
| 311 | <pre class="code"> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 312 | Image *CloneImage(const Image *image,const size_t columns, |
| 313 | const size_t rows,const MagickBooleanType orphan, |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 314 | ExceptionInfo *exception) |
| 315 | </pre> |
| 316 | |
| 317 | <p>A description of each parameter follows:</p></ol> |
| 318 | |
| 319 | <h5>image</h5> |
| 320 | <ol><p>the image.</p></ol> |
| 321 | |
| 322 | <h5>columns</h5> |
| 323 | <ol><p>the number of columns in the cloned image.</p></ol> |
| 324 | |
| 325 | <h5>rows</h5> |
| 326 | <ol><p>the number of rows in the cloned image.</p></ol> |
| 327 | |
| 328 | <h5>detach</h5> |
| 329 | <ol><p>With a value other than 0, the cloned image is detached from its parent I/O stream.</p></ol> |
| 330 | |
| 331 | <h5>exception</h5> |
| 332 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 333 | |
| 334 | </div> |
| 335 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 336 | _8c.html" target="source" name="CloneImageInfo">CloneImageInfo</a></h2> |
| 337 | <div class="doc-section"> |
| 338 | |
| 339 | <p>CloneImageInfo() makes a copy of the given image info structure. If NULL is specified, a new image info structure is created initialized to default values.</p></ol> |
| 340 | |
| 341 | <p>The format of the CloneImageInfo method is:</p> |
| 342 | |
| 343 | <pre class="code"> |
| 344 | ImageInfo *CloneImageInfo(const ImageInfo *image_info) |
| 345 | </pre> |
| 346 | |
| 347 | <p>A description of each parameter follows:</p></ol> |
| 348 | |
| 349 | <h5>image_info</h5> |
| 350 | <ol><p>the image info.</p></ol> |
| 351 | |
| 352 | </div> |
| 353 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 354 | _8c.html" target="source" name="CombineImages">CombineImages</a></h2> |
| 355 | <div class="doc-section"> |
| 356 | |
| 357 | <p>CombineImages() combines one or more images into a single image. The grayscale value of the pixels of each image in the sequence is assigned in order to the specified channels of the combined image. The typical ordering would be image 1 => Red, 2 => Green, 3 => Blue, etc.</p></ol> |
| 358 | |
| 359 | <p>The format of the CombineImages method is:</p> |
| 360 | |
| 361 | <pre class="code"> |
| 362 | Image *CombineImages(const Image *image,const ChannelType channel, |
| 363 | ExceptionInfo *exception) |
| 364 | </pre> |
| 365 | |
| 366 | <p>A description of each parameter follows:</p></ol> |
| 367 | |
| 368 | <h5>image</h5> |
| 369 | <ol><p>the image.</p></ol> |
| 370 | |
| 371 | <h5>exception</h5> |
| 372 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 373 | |
| 374 | </div> |
| 375 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 376 | _8c.html" target="source" name="DestroyImage">DestroyImage</a></h2> |
| 377 | <div class="doc-section"> |
| 378 | |
| 379 | <p>DestroyImage() dereferences an image, deallocating memory associated with the image if the reference count becomes zero.</p></ol> |
| 380 | |
| 381 | <p>The format of the DestroyImage method is:</p> |
| 382 | |
| 383 | <pre class="code"> |
| 384 | Image *DestroyImage(Image *image) |
| 385 | </pre> |
| 386 | |
| 387 | <p>A description of each parameter follows:</p></ol> |
| 388 | |
| 389 | <h5>image</h5> |
| 390 | <ol><p>the image.</p></ol> |
| 391 | |
| 392 | </div> |
| 393 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 394 | _8c.html" target="source" name="DestroyImageInfo">DestroyImageInfo</a></h2> |
| 395 | <div class="doc-section"> |
| 396 | |
| 397 | <p>DestroyImageInfo() deallocates memory associated with an ImageInfo structure.</p></ol> |
| 398 | |
| 399 | <p>The format of the DestroyImageInfo method is:</p> |
| 400 | |
| 401 | <pre class="code"> |
| 402 | ImageInfo *DestroyImageInfo(ImageInfo *image_info) |
| 403 | </pre> |
| 404 | |
| 405 | <p>A description of each parameter follows:</p></ol> |
| 406 | |
| 407 | <h5>image_info</h5> |
| 408 | <ol><p>the image info.</p></ol> |
| 409 | |
| 410 | </div> |
| 411 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 412 | _8c.html" target="source" name="GetImageAlphaChannel">GetImageAlphaChannel</a></h2> |
| 413 | <div class="doc-section"> |
| 414 | |
| 415 | <p>GetImageAlphaChannel() returns MagickFalse if the image alpha channel is not activated. That is, the image is RGB rather than RGBA or CMYK rather than CMYKA.</p></ol> |
| 416 | |
| 417 | <p>The format of the GetImageAlphaChannel method is:</p> |
| 418 | |
| 419 | <pre class="code"> |
| 420 | MagickBooleanType GetImageAlphaChannel(const Image *image) |
| 421 | </pre> |
| 422 | |
| 423 | <p>A description of each parameter follows:</p></ol> |
| 424 | |
| 425 | <h5>image</h5> |
| 426 | <ol><p>the image.</p></ol> |
| 427 | |
| 428 | </div> |
| 429 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 430 | _8c.html" target="source" name="GetImageClipMask">GetImageClipMask</a></h2> |
| 431 | <div class="doc-section"> |
| 432 | |
| 433 | <p>GetImageClipMask() returns the clip path associated with the image.</p></ol> |
| 434 | |
| 435 | <p>The format of the GetImageClipMask method is:</p> |
| 436 | |
| 437 | <pre class="code"> |
| 438 | Image *GetImageClipMask(const Image *image,ExceptionInfo *exception) |
| 439 | </pre> |
| 440 | |
| 441 | <p>A description of each parameter follows:</p></ol> |
| 442 | |
| 443 | <h5>image</h5> |
| 444 | <ol><p>the image.</p></ol> |
| 445 | |
| 446 | </div> |
| 447 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 448 | _8c.html" target="source" name="GetImageException">GetImageException</a></h2> |
| 449 | <div class="doc-section"> |
| 450 | |
| 451 | <p>GetImageException() traverses an image sequence and returns any error more severe than noted by the exception parameter.</p></ol> |
| 452 | |
| 453 | <p>The format of the GetImageException method is:</p> |
| 454 | |
| 455 | <pre class="code"> |
| 456 | void GetImageException(Image *image,ExceptionInfo *exception) |
| 457 | </pre> |
| 458 | |
| 459 | <p>A description of each parameter follows:</p></ol> |
| 460 | |
| 461 | <h5>image</h5> |
| 462 | <ol><p>Specifies a pointer to a list of one or more images.</p></ol> |
| 463 | |
| 464 | <h5>exception</h5> |
| 465 | <ol><p>return the highest severity exception.</p></ol> |
| 466 | |
| 467 | </div> |
| 468 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 469 | _8c.html" target="source" name="GetImageInfo">GetImageInfo</a></h2> |
| 470 | <div class="doc-section"> |
| 471 | |
| 472 | <p>GetImageInfo() initializes image_info to default values.</p></ol> |
| 473 | |
| 474 | <p>The format of the GetImageInfo method is:</p> |
| 475 | |
| 476 | <pre class="code"> |
| 477 | void GetImageInfo(ImageInfo *image_info) |
| 478 | </pre> |
| 479 | |
| 480 | <p>A description of each parameter follows:</p></ol> |
| 481 | |
| 482 | <h5>image_info</h5> |
| 483 | <ol><p>the image info.</p></ol> |
| 484 | |
| 485 | </div> |
| 486 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
cristy | a13871a | 2009-12-06 19:01:22 +0000 | [diff] [blame] | 487 | _8c.html" target="source" name="GetImageInfoFile">GetImageInfoFile</a></h2> |
| 488 | <div class="doc-section"> |
| 489 | |
| 490 | <p>GetImageInfoFile() returns the image info file member.</p></ol> |
| 491 | |
| 492 | <p>The format of the GetImageInfoFile method is:</p> |
| 493 | |
| 494 | <pre class="code"> |
| 495 | FILE *GetImageInfoFile(const ImageInfo *image_info) |
| 496 | </pre> |
| 497 | |
| 498 | <p>A description of each parameter follows:</p></ol> |
| 499 | |
| 500 | <h5>image_info</h5> |
| 501 | <ol><p>the image info.</p></ol> |
| 502 | |
| 503 | </div> |
| 504 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 505 | _8c.html" target="source" name="GetImageMask">GetImageMask</a></h2> |
| 506 | <div class="doc-section"> |
| 507 | |
| 508 | <p>GetImageMask() returns the mask associated with the image.</p></ol> |
| 509 | |
| 510 | <p>The format of the GetImageMask method is:</p> |
| 511 | |
| 512 | <pre class="code"> |
| 513 | Image *GetImageMask(const Image *image,ExceptionInfo *exception) |
| 514 | </pre> |
| 515 | |
| 516 | <p>A description of each parameter follows:</p></ol> |
| 517 | |
| 518 | <h5>image</h5> |
| 519 | <ol><p>the image.</p></ol> |
| 520 | |
| 521 | </div> |
| 522 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 523 | _8c.html" target="source" name="GetImageVirtualPixelMethod">GetImageVirtualPixelMethod</a></h2> |
| 524 | <div class="doc-section"> |
| 525 | |
| 526 | <p>GetImageVirtualPixelMethod() gets the "virtual pixels" method for the image. A virtual pixel is any pixel access that is outside the boundaries of the image cache.</p></ol> |
| 527 | |
| 528 | <p>The format of the GetImageVirtualPixelMethod() method is:</p> |
| 529 | |
| 530 | <pre class="code"> |
| 531 | VirtualPixelMethod GetImageVirtualPixelMethod(const Image *image) |
| 532 | </pre> |
| 533 | |
| 534 | <p>A description of each parameter follows:</p></ol> |
| 535 | |
| 536 | <h5>image</h5> |
| 537 | <ol><p>the image.</p></ol> |
| 538 | |
| 539 | </div> |
| 540 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 541 | _8c.html" target="source" name="InterpretImageFilename">InterpretImageFilename</a></h2> |
| 542 | <div class="doc-section"> |
| 543 | |
| 544 | <p>InterpretImageFilename() interprets embedded characters in an image filename. The filename length is returned.</p></ol> |
| 545 | |
| 546 | <p>The format of the InterpretImageFilename method is:</p> |
| 547 | |
| 548 | <pre class="code"> |
| 549 | size_t InterpretImageFilename(const ImageInfo *image_info, |
| 550 | Image *image,const char *format,int value,char *filename) |
| 551 | </pre> |
| 552 | |
| 553 | <p>A description of each parameter follows.</p></ol> |
| 554 | |
| 555 | <h5>image_info</h5> |
| 556 | <ol><p>the image info..</p></ol> |
| 557 | |
| 558 | <h5>image</h5> |
| 559 | <ol><p>the image.</p></ol> |
| 560 | |
| 561 | <h5>format</h5> |
| 562 | <ol><p>A filename describing the format to use to write the numeric argument. Only the first numeric format identifier is replaced.</p></ol> |
| 563 | |
| 564 | <h5>value</h5> |
| 565 | <ol><p>Numeric value to substitute into format filename.</p></ol> |
| 566 | |
| 567 | <h5>filename</h5> |
| 568 | <ol><p>return the formatted filename in this character buffer.</p></ol> |
| 569 | |
| 570 | </div> |
| 571 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 572 | _8c.html" target="source" name="IsHighDynamicRangeImage">IsHighDynamicRangeImage</a></h2> |
| 573 | <div class="doc-section"> |
| 574 | |
| 575 | <p>IsHighDynamicRangeImage() returns MagickTrue if any pixel component is non-integer or exceeds the bounds of the quantum depth (e.g. for Q16 0..65535.</p></ol> |
| 576 | |
| 577 | <p>The format of the IsHighDynamicRangeImage method is:</p> |
| 578 | |
| 579 | <pre class="code"> |
| 580 | MagickBooleanType IsHighDynamicRangeImage(const Image *image, |
| 581 | ExceptionInfo *exception) |
| 582 | </pre> |
| 583 | |
| 584 | <p>A description of each parameter follows:</p></ol> |
| 585 | |
| 586 | <h5>image</h5> |
| 587 | <ol><p>the image.</p></ol> |
| 588 | |
| 589 | <h5>exception</h5> |
| 590 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 591 | |
| 592 | </div> |
| 593 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 594 | _8c.html" target="source" name="IsImageObject">IsImageObject</a></h2> |
| 595 | <div class="doc-section"> |
| 596 | |
| 597 | <p>IsImageObject() returns MagickTrue if the image sequence contains a valid set of image objects.</p></ol> |
| 598 | |
| 599 | <p>The format of the IsImageObject method is:</p> |
| 600 | |
| 601 | <pre class="code"> |
| 602 | MagickBooleanType IsImageObject(const Image *image) |
| 603 | </pre> |
| 604 | |
| 605 | <p>A description of each parameter follows:</p></ol> |
| 606 | |
| 607 | <h5>image</h5> |
| 608 | <ol><p>the image.</p></ol> |
| 609 | |
| 610 | </div> |
| 611 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 612 | _8c.html" target="source" name="IsTaintImage">IsTaintImage</a></h2> |
| 613 | <div class="doc-section"> |
| 614 | |
| 615 | <p>IsTaintImage() returns MagickTrue any pixel in the image has been altered since it was first constituted.</p></ol> |
| 616 | |
| 617 | <p>The format of the IsTaintImage method is:</p> |
| 618 | |
| 619 | <pre class="code"> |
| 620 | MagickBooleanType IsTaintImage(const Image *image) |
| 621 | </pre> |
| 622 | |
| 623 | <p>A description of each parameter follows:</p></ol> |
| 624 | |
| 625 | <h5>image</h5> |
| 626 | <ol><p>the image.</p></ol> |
| 627 | |
| 628 | </div> |
| 629 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 630 | _8c.html" target="source" name="ModifyImage">ModifyImage</a></h2> |
| 631 | <div class="doc-section"> |
| 632 | |
| 633 | <p>ModifyImage() ensures that there is only a single reference to the image to be modified, updating the provided image pointer to point to a clone of the original image if necessary.</p></ol> |
| 634 | |
| 635 | <p>The format of the ModifyImage method is:</p> |
| 636 | |
| 637 | <pre class="code"> |
| 638 | MagickBooleanType ModifyImage(Image *image,ExceptionInfo *exception) |
| 639 | </pre> |
| 640 | |
| 641 | <p>A description of each parameter follows:</p></ol> |
| 642 | |
| 643 | <h5>image</h5> |
| 644 | <ol><p>the image.</p></ol> |
| 645 | |
| 646 | <h5>exception</h5> |
| 647 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 648 | |
| 649 | </div> |
| 650 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 651 | _8c.html" target="source" name="NewMagickImage">NewMagickImage</a></h2> |
| 652 | <div class="doc-section"> |
| 653 | |
| 654 | <p>NewMagickImage() creates a blank image canvas of the specified size and background color.</p></ol> |
| 655 | |
| 656 | <p>The format of the NewMagickImage method is:</p> |
| 657 | |
| 658 | <pre class="code"> |
| 659 | Image *NewMagickImage(const ImageInfo *image_info, |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 660 | const size_t width,const size_t height, |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 661 | const MagickPixelPacket *background) |
| 662 | </pre> |
| 663 | |
| 664 | <p>A description of each parameter follows:</p></ol> |
| 665 | |
| 666 | <h5>image</h5> |
| 667 | <ol><p>the image.</p></ol> |
| 668 | |
| 669 | <h5>width</h5> |
| 670 | <ol><p>the image width.</p></ol> |
| 671 | |
| 672 | <h5>height</h5> |
| 673 | <ol><p>the image height.</p></ol> |
| 674 | |
| 675 | <h5>background</h5> |
| 676 | <ol><p>the image color.</p></ol> |
| 677 | |
| 678 | </div> |
| 679 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 680 | _8c.html" target="source" name="ReferenceImage">ReferenceImage</a></h2> |
| 681 | <div class="doc-section"> |
| 682 | |
| 683 | <p>ReferenceImage() increments the reference count associated with an image returning a pointer to the image.</p></ol> |
| 684 | |
| 685 | <p>The format of the ReferenceImage method is:</p> |
| 686 | |
| 687 | <pre class="code"> |
| 688 | Image *ReferenceImage(Image *image) |
| 689 | </pre> |
| 690 | |
| 691 | <p>A description of each parameter follows:</p></ol> |
| 692 | |
| 693 | <h5>image</h5> |
| 694 | <ol><p>the image.</p></ol> |
| 695 | |
| 696 | </div> |
| 697 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 698 | _8c.html" target="source" name="ResetImagePage">ResetImagePage</a></h2> |
| 699 | <div class="doc-section"> |
| 700 | |
| 701 | <p>ResetImagePage() resets the image page canvas and position.</p></ol> |
| 702 | |
| 703 | <p>The format of the ResetImagePage method is:</p> |
| 704 | |
| 705 | <pre class="code"> |
| 706 | MagickBooleanType ResetImagePage(Image *image,const char *page) |
| 707 | </pre> |
| 708 | |
| 709 | <p>A description of each parameter follows:</p></ol> |
| 710 | |
| 711 | <h5>image</h5> |
| 712 | <ol><p>the image.</p></ol> |
| 713 | |
| 714 | <h5>page</h5> |
| 715 | <ol><p>the relative page specification.</p></ol> |
| 716 | |
| 717 | </div> |
| 718 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 719 | _8c.html" target="source" name="SeparateImageChannel">SeparateImageChannel</a></h2> |
| 720 | <div class="doc-section"> |
| 721 | |
| 722 | <p>SeparateImageChannel() separates a channel from the image and returns it as a grayscale image. A channel is a particular color component of each pixel in the image.</p></ol> |
| 723 | |
| 724 | <p>The format of the SeparateImageChannel method is:</p> |
| 725 | |
| 726 | <pre class="code"> |
| 727 | MagickBooleanType SeparateImageChannel(Image *image, |
| 728 | const ChannelType channel) |
| 729 | </pre> |
| 730 | |
| 731 | <p>A description of each parameter follows:</p></ol> |
| 732 | |
| 733 | <h5>image</h5> |
| 734 | <ol><p>the image.</p></ol> |
| 735 | |
| 736 | <h5>channel</h5> |
| 737 | <ol><p>Identify which channel to extract: RedChannel, GreenChannel, BlueChannel, OpacityChannel, CyanChannel, MagentaChannel, YellowChannel, or BlackChannel.</p></ol> |
| 738 | |
| 739 | </div> |
| 740 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 741 | _8c.html" target="source" name="SeparateImages">SeparateImages</a></h2> |
| 742 | <div class="doc-section"> |
| 743 | |
| 744 | <p>SeparateImages() returns a separate grayscale image for each channel specified.</p></ol> |
| 745 | |
| 746 | <p>The format of the SeparateImages method is:</p> |
| 747 | |
| 748 | <pre class="code"> |
| 749 | MagickBooleanType SeparateImages(const Image *image, |
| 750 | const ChannelType channel,ExceptionInfo *exception) |
| 751 | </pre> |
| 752 | |
| 753 | <p>A description of each parameter follows:</p></ol> |
| 754 | |
| 755 | <h5>image</h5> |
| 756 | <ol><p>the image.</p></ol> |
| 757 | |
| 758 | <h5>channel</h5> |
| 759 | <ol><p>Identify which channels to extract: RedChannel, GreenChannel, BlueChannel, OpacityChannel, CyanChannel, MagentaChannel, YellowChannel, or BlackChannel.</p></ol> |
| 760 | |
| 761 | <h5>exception</h5> |
| 762 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 763 | |
| 764 | </div> |
| 765 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 766 | _8c.html" target="source" name="SetImageAlphaChannel">SetImageAlphaChannel</a></h2> |
| 767 | <div class="doc-section"> |
| 768 | |
| 769 | <p>SetImageAlphaChannel() activates, deactivates, resets, or sets the alpha channel.</p></ol> |
| 770 | |
| 771 | <p>The format of the SetImageAlphaChannel method is:</p> |
| 772 | |
| 773 | <pre class="code"> |
| 774 | MagickBooleanType SetImageAlphaChannel(Image *image, |
| 775 | const AlphaChannelType alpha_type) |
| 776 | </pre> |
| 777 | |
| 778 | <p>A description of each parameter follows:</p></ol> |
| 779 | |
| 780 | <h5>image</h5> |
| 781 | <ol><p>the image.</p></ol> |
| 782 | |
| 783 | <h5>alpha_type</h5> |
| 784 | <ol><p>The alpha channel type: ActivateAlphaChannel, CopyAlphaChannel, DeactivateAlphaChannel, ExtractAlphaChannel, OpaqueAlphaChannel, ResetAlphaChannel, SetAlphaChannel, ShapeAlphaChannel, and TransparentAlphaChannel.</p></ol> |
| 785 | |
| 786 | </div> |
| 787 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 788 | _8c.html" target="source" name="SetImageBackgroundColor">SetImageBackgroundColor</a></h2> |
| 789 | <div class="doc-section"> |
| 790 | |
| 791 | <p>SetImageBackgroundColor() initializes the image pixels to the image background color. The background color is defined by the background_color member of the image structure.</p></ol> |
| 792 | |
| 793 | <p>The format of the SetImage method is:</p> |
| 794 | |
| 795 | <pre class="code"> |
| 796 | MagickBooleanType SetImageBackgroundColor(Image *image) |
| 797 | </pre> |
| 798 | |
| 799 | <p>A description of each parameter follows:</p></ol> |
| 800 | |
| 801 | <h5>image</h5> |
| 802 | <ol><p>the image.</p></ol> |
| 803 | |
| 804 | </div> |
| 805 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 806 | _8c.html" target="source" name="SetImageColor">SetImageColor</a></h2> |
| 807 | <div class="doc-section"> |
| 808 | |
| 809 | <p>SetImageColor() set the entire image canvas to the specified color.</p></ol> |
| 810 | |
| 811 | <p>The format of the SetImageColor method is:</p> |
| 812 | |
| 813 | <pre class="code"> |
| 814 | MagickBooleanType SetImageColor(Image *image, |
| 815 | const MagickPixelPacket *color) |
| 816 | </pre> |
| 817 | |
| 818 | <p>A description of each parameter follows:</p></ol> |
| 819 | |
| 820 | <h5>image</h5> |
| 821 | <ol><p>the image.</p></ol> |
| 822 | |
| 823 | <h5>background</h5> |
| 824 | <ol><p>the image color.</p></ol> |
| 825 | |
| 826 | </div> |
| 827 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 828 | _8c.html" target="source" name="SetImageStorageClass">SetImageStorageClass</a></h2> |
| 829 | <div class="doc-section"> |
| 830 | |
| 831 | <p>SetImageStorageClass() sets the image class: DirectClass for true color images or PseudoClass for colormapped images.</p></ol> |
| 832 | |
| 833 | <p>The format of the SetImageStorageClass method is:</p> |
| 834 | |
| 835 | <pre class="code"> |
| 836 | MagickBooleanType SetImageStorageClass(Image *image, |
| 837 | const ClassType storage_class) |
| 838 | </pre> |
| 839 | |
| 840 | <p>A description of each parameter follows:</p></ol> |
| 841 | |
| 842 | <h5>image</h5> |
| 843 | <ol><p>the image.</p></ol> |
| 844 | |
| 845 | <h5>storage_class</h5> |
| 846 | <ol><p>The image class.</p></ol> |
| 847 | |
| 848 | </div> |
| 849 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 850 | _8c.html" target="source" name="SetImageClipMask">SetImageClipMask</a></h2> |
| 851 | <div class="doc-section"> |
| 852 | |
| 853 | <p>SetImageClipMask() associates a clip path with the image. The clip path must be the same dimensions as the image. Set any pixel component of the clip path to TransparentOpacity to prevent that corresponding image pixel component from being updated when SyncAuthenticPixels() is applied.</p></ol> |
| 854 | |
| 855 | <p>The format of the SetImageClipMask method is:</p> |
| 856 | |
| 857 | <pre class="code"> |
| 858 | MagickBooleanType SetImageClipMask(Image *image,const Image *clip_mask) |
| 859 | </pre> |
| 860 | |
| 861 | <p>A description of each parameter follows:</p></ol> |
| 862 | |
| 863 | <h5>image</h5> |
| 864 | <ol><p>the image.</p></ol> |
| 865 | |
| 866 | <h5>clip_mask</h5> |
| 867 | <ol><p>the image clip path.</p></ol> |
| 868 | |
| 869 | </div> |
| 870 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 871 | _8c.html" target="source" name="SetImageExtent">SetImageExtent</a></h2> |
| 872 | <div class="doc-section"> |
| 873 | |
| 874 | <p>SetImageExtent() sets the image size (i.e. columns & rows).</p></ol> |
| 875 | |
| 876 | <p>The format of the SetImageExtent method is:</p> |
| 877 | |
| 878 | <pre class="code"> |
| 879 | MagickBooleanType SetImageExtent(Image *image, |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 880 | const size_t columns,const size_t rows) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 881 | </pre> |
| 882 | |
| 883 | <p>A description of each parameter follows:</p></ol> |
| 884 | |
| 885 | <h5>image</h5> |
| 886 | <ol><p>the image.</p></ol> |
| 887 | |
| 888 | <h5>columns</h5> |
| 889 | <ol><p>The image width in pixels.</p></ol> |
| 890 | |
| 891 | <h5>rows</h5> |
| 892 | <ol><p>The image height in pixels.</p></ol> |
| 893 | |
| 894 | </div> |
| 895 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 896 | _8c.html" target="source" name="SetImageInfoBlob">SetImageInfoBlob</a></h2> |
| 897 | <div class="doc-section"> |
| 898 | |
| 899 | <p>SetImageInfoBlob() sets the image info blob member.</p></ol> |
| 900 | |
| 901 | <p>The format of the SetImageInfoBlob method is:</p> |
| 902 | |
| 903 | <pre class="code"> |
| 904 | void SetImageInfoBlob(ImageInfo *image_info,const void *blob, |
| 905 | const size_t length) |
| 906 | </pre> |
| 907 | |
| 908 | <p>A description of each parameter follows:</p></ol> |
| 909 | |
| 910 | <h5>image_info</h5> |
| 911 | <ol><p>the image info.</p></ol> |
| 912 | |
| 913 | <h5>blob</h5> |
| 914 | <ol><p>the blob.</p></ol> |
| 915 | |
| 916 | <h5>length</h5> |
| 917 | <ol><p>the blob length.</p></ol> |
| 918 | |
| 919 | </div> |
| 920 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 921 | _8c.html" target="source" name="SetImageInfoFile">SetImageInfoFile</a></h2> |
| 922 | <div class="doc-section"> |
| 923 | |
| 924 | <p>SetImageInfoFile() sets the image info file member.</p></ol> |
| 925 | |
| 926 | <p>The format of the SetImageInfoFile method is:</p> |
| 927 | |
| 928 | <pre class="code"> |
| 929 | void SetImageInfoFile(ImageInfo *image_info,FILE *file) |
| 930 | </pre> |
| 931 | |
| 932 | <p>A description of each parameter follows:</p></ol> |
| 933 | |
| 934 | <h5>image_info</h5> |
| 935 | <ol><p>the image info.</p></ol> |
| 936 | |
| 937 | <h5>file</h5> |
| 938 | <ol><p>the file.</p></ol> |
| 939 | |
| 940 | </div> |
| 941 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 942 | _8c.html" target="source" name="SetImageMask">SetImageMask</a></h2> |
| 943 | <div class="doc-section"> |
| 944 | |
| 945 | <p>SetImageMask() associates a mask with the image. The mask must be the same dimensions as the image.</p></ol> |
| 946 | |
| 947 | <p>The format of the SetImageMask method is:</p> |
| 948 | |
| 949 | <pre class="code"> |
| 950 | MagickBooleanType SetImageMask(Image *image,const Image *mask) |
| 951 | </pre> |
| 952 | |
| 953 | <p>A description of each parameter follows:</p></ol> |
| 954 | |
| 955 | <h5>image</h5> |
| 956 | <ol><p>the image.</p></ol> |
| 957 | |
| 958 | <h5>mask</h5> |
| 959 | <ol><p>the image mask.</p></ol> |
| 960 | |
| 961 | </div> |
| 962 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 963 | _8c.html" target="source" name="SetImageOpacity">SetImageOpacity</a></h2> |
| 964 | <div class="doc-section"> |
| 965 | |
| 966 | <p>SetImageOpacity() sets the opacity levels of the image.</p></ol> |
| 967 | |
| 968 | <p>The format of the SetImageOpacity method is:</p> |
| 969 | |
| 970 | <pre class="code"> |
| 971 | MagickBooleanType SetImageOpacity(Image *image,const Quantum opacity) |
| 972 | </pre> |
| 973 | |
| 974 | <p>A description of each parameter follows:</p></ol> |
| 975 | |
| 976 | <h5>image</h5> |
| 977 | <ol><p>the image.</p></ol> |
| 978 | |
| 979 | <h5>opacity</h5> |
| 980 | <ol><p>the level of transparency: 0 is fully opaque and QuantumRange is fully transparent.</p></ol> |
| 981 | |
| 982 | </div> |
| 983 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 984 | _8c.html" target="source" name="SetImageType">SetImageType</a></h2> |
| 985 | <div class="doc-section"> |
| 986 | |
| 987 | <p>SetImageType() sets the type of image. Choose from these types:</p></ol> |
| 988 | |
| 989 | <p>Bilevel Grayscale GrayscaleMatte Palette PaletteMatte TrueColor TrueColorMatte ColorSeparation ColorSeparationMatte OptimizeType</p></ol> |
| 990 | |
| 991 | <p>The format of the SetImageType method is:</p> |
| 992 | |
| 993 | <pre class="code"> |
| 994 | MagickBooleanType SetImageType(Image *image,const ImageType type) |
| 995 | </pre> |
| 996 | |
| 997 | <p>A description of each parameter follows:</p></ol> |
| 998 | |
| 999 | <h5>image</h5> |
| 1000 | <ol><p>the image.</p></ol> |
| 1001 | |
| 1002 | <h5>type</h5> |
| 1003 | <ol><p>Image type.</p></ol> |
| 1004 | |
| 1005 | </div> |
| 1006 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 1007 | _8c.html" target="source" name="SetImageVirtualPixelMethod">SetImageVirtualPixelMethod</a></h2> |
| 1008 | <div class="doc-section"> |
| 1009 | |
| 1010 | <p>SetImageVirtualPixelMethod() sets the "virtual pixels" method for the image and returns the previous setting. A virtual pixel is any pixel access that is outside the boundaries of the image cache.</p></ol> |
| 1011 | |
| 1012 | <p>The format of the SetImageVirtualPixelMethod() method is:</p> |
| 1013 | |
| 1014 | <pre class="code"> |
| 1015 | VirtualPixelMethod SetImageVirtualPixelMethod(const Image *image, |
| 1016 | const VirtualPixelMethod virtual_pixel_method) |
| 1017 | </pre> |
| 1018 | |
| 1019 | <p>A description of each parameter follows:</p></ol> |
| 1020 | |
| 1021 | <h5>image</h5> |
| 1022 | <ol><p>the image.</p></ol> |
| 1023 | |
| 1024 | <h5>virtual_pixel_method</h5> |
| 1025 | <ol><p>choose the type of virtual pixel.</p></ol> |
| 1026 | |
| 1027 | </div> |
| 1028 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 1029 | _8c.html" target="source" name="StripImage">StripImage</a></h2> |
| 1030 | <div class="doc-section"> |
| 1031 | |
| 1032 | <p>StripImage() strips an image of all profiles and comments.</p></ol> |
| 1033 | |
| 1034 | <p>The format of the StripImage method is:</p> |
| 1035 | |
| 1036 | <pre class="code"> |
| 1037 | MagickBooleanType StripImage(Image *image) |
| 1038 | </pre> |
| 1039 | |
| 1040 | <p>A description of each parameter follows:</p></ol> |
| 1041 | |
| 1042 | <h5>image</h5> |
| 1043 | <ol><p>the image.</p></ol> |
| 1044 | |
| 1045 | </div> |
cristy | 0f61e61 | 2009-11-10 20:03:57 +0000 | [diff] [blame] | 1046 | <h2><a href="http://www.imagemagick.org/api/MagickCore/image |
| 1047 | _8c.html" target="source" name="SyncImageSettings">SyncImageSettings</a></h2> |
| 1048 | <div class="doc-section"> |
| 1049 | |
| 1050 | <p>SyncImageSettings() sync the image info options to the image.</p></ol> |
| 1051 | |
| 1052 | <p>The format of the SyncImageSettings method is:</p> |
| 1053 | |
| 1054 | <pre class="code"> |
| 1055 | MagickBooleanType SyncImageSettings(const ImageInfo *image_info, |
| 1056 | Image *image) |
| 1057 | MagickBooleanType SyncImagesSettings(const ImageInfo *image_info, |
| 1058 | Image *image) |
| 1059 | </pre> |
| 1060 | |
| 1061 | <p>A description of each parameter follows:</p></ol> |
| 1062 | |
| 1063 | <h5>image_info</h5> |
| 1064 | <ol><p>the image info.</p></ol> |
| 1065 | |
| 1066 | <h5>image</h5> |
| 1067 | <ol><p>the image.</p></ol> |
| 1068 | |
| 1069 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 1070 |
|
| 1071 | </div>
|
| 1072 |
|
| 1073 | <div id="linkbar">
|
cristy | ce69bb0 | 2010-07-27 19:49:46 +0000 | [diff] [blame] | 1074 | <span id="linkbar-west"> </span>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 1075 | <span id="linkbar-center">
|
| 1076 | <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
|
cristy | a890294 | 2010-07-30 00:49:52 +0000 | [diff] [blame] | 1077 | <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 1078 | </span>
|
| 1079 | <span id="linkbar-east"> </span>
|
| 1080 | </div>
|
| 1081 | <div class="footer">
|
cristy | 4103d56 | 2010-12-10 01:38:54 +0000 | [diff] [blame] | 1082 | <span id="footer-west">© 1999-2011 ImageMagick Studio LLC</span>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 1083 | <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
|
| 1084 | </div>
|
| 1085 | <div style="clear: both; margin: 0; width: 100%; "></div>
|
cristy | a890294 | 2010-07-30 00:49:52 +0000 | [diff] [blame] | 1086 | <script type="text/javascript">
|
| 1087 | var _gaq = _gaq || [];
|
| 1088 | _gaq.push(['_setAccount', 'UA-17690367-1']);
|
| 1089 | _gaq.push(['_trackPageview']);
|
| 1090 |
|
| 1091 | (function() {
|
| 1092 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
| 1093 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
| 1094 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
| 1095 | })();
|
| 1096 | </script>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 1097 | </body>
|
| 1098 | </html>
|