cristy | 06f63f2 | 2012-10-31 00: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 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"> |
| 8 | <head> |
| 9 | <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> |
| 10 | <meta name="google-site-verification" content="MxsMq6bdLOx0KSuz1MY6yG9ZTIJ7_7DVRfl5NCAT5Yg"/> |
cristy | ffb69ed | 2010-12-25 00:06:48 +0000 | [diff] [blame] | 11 | <title>ImageMagick: MagickCore, C API for ImageMagick: Transform an Image</title> |
cristy | 751980d | 2012-06-03 23:18:35 +0000 | [diff] [blame] | 12 | <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"/> |
| 15 | <meta name="application-name" content="ImageMagick"/> |
| 16 | <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."/> |
| 17 | <meta name="application-url" content="http://www.imagemagick.org"/> |
| 18 | <meta name="generator" content="PHP"/> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 19 | <meta name="keywords" content="magickcore, c, api, for, imagemagick:, transform, an, image, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Image, Processing, Automagically"/> |
cristy | 751980d | 2012-06-03 23:18:35 +0000 | [diff] [blame] | 20 | <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"/> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 26 | <meta name="copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC"/> |
cristy | 751980d | 2012-06-03 23:18:35 +0000 | [diff] [blame] | 27 | <meta name="distribution" content="Global"/> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 28 | <link rel="icon" href="../../images/wand.png"/> |
| 29 | <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 30 | <link rel="canonical" href="http://www.imagemagick.org" /> |
| 31 | <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 32 | <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" /> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 33 | <link rel="stylesheet" type="text/css" href="http://www.imagemagick.org/fancybox/jquery.fancybox-1.3.4.css" media="screen" /> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 34 | <style type="text/css" media="all"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 35 | @import url("../../style/magick.html"); |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 36 | </style> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 37 | <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> |
| 38 | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> |
| 39 | <script type="text/javascript" src="http://www.imagemagick.org/fancybox/jquery.fancybox-1.3.4.pack.js"></script> |
| 40 | <script type="text/javascript"> |
| 41 | $(document).ready(function() { |
| 42 | $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({ |
| 43 | 'transitionIn' : 'elastic', |
| 44 | 'transitionOut' : 'elastic', |
| 45 | 'overlayShow' : false, |
| 46 | 'opacity' : true |
| 47 | }); |
| 48 | }); |
| 49 | </script> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 50 | </head> |
| 51 | |
| 52 | <body id="www-imagemagick-org"> |
| 53 | <div class="titlebar"> |
| 54 | <div style="margin: 17px auto; float: left;"> |
| 55 | <script type="text/javascript"> |
| 56 | <!-- |
| 57 | google_ad_client = "pub-3129977114552745"; |
| 58 | google_ad_slot = "5439289906"; |
| 59 | google_ad_width = 728; |
| 60 | google_ad_height = 90; |
| 61 | //--> |
| 62 | </script> |
| 63 | <script type="text/javascript" |
| 64 | src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> |
| 65 | </script> |
| 66 | </div> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 67 | <a href="../../discourse-server"> |
| 68 | <img src="../../images/logo.jpg" |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 69 | alt="ImageMagick Logo" |
| 70 | style="width: 123px; height: 118px; border: 0px; float: right;" /></a> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 71 | <a href="http://www.imagemagick.org/ImageMagick-7.0.0/index.html"> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 72 | <img src="../../images/sprite.jpg" |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 73 | alt="ImageMagick Sprite" |
| 74 | style="width: 114px; height: 118px; border: 0px; float: right;" /></a> |
| 75 | </div> |
| 76 | |
| 77 | <div class="westbar"> |
| 78 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 79 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 80 | <a title="About ImageMagick" href="http://www.imagemagick.org/ImageMagick-7.0.0/index.html">About ImageMagick</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 81 | </div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 82 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 83 | <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 84 | </div> |
| 85 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 86 | <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</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: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</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: iOS" href="../../www/binary-releases.html#iOS">iOS</a> |
cristy | da16f16 | 2011-02-19 23:52:17 +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: Windows" href="../../www/binary-releases.html#windows">Windows</a> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 96 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 97 | <div class="sep"></div> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 98 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 99 | <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] | 100 | </div> |
| 101 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 102 | <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] | 103 | </div> |
| 104 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 105 | <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] | 106 | </div> |
| 107 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 108 | <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] | 109 | </div> |
| 110 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 111 | <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 112 | </div> |
| 113 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 114 | <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</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: MagickCore" href="../../www/magick-core.html">MagickCore</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: PerlMagick" href="../../www/perl-magick.html">PerlMagick</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: Magick++" href="../../www/magick++.html">Magick++</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 124 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 125 | <div class="sep"></div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 126 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 127 | <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] | 128 | </div> |
| 129 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 130 | <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] | 131 | </div> |
| 132 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 133 | <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] | 134 | </div> |
| 135 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 136 | <a title="Resources" href="../../www/resources.html">Resources</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 137 | </div> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 138 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 139 | <a title="Architecture" href="../../www/architecture.html">Architecture</a> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 140 | </div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 141 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 142 | <a title="Download" href="../../www/download.html">Download</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 143 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 144 | <div class="sep"></div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 145 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 146 | <a title="Search" href="../../www/search.html">Search</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 147 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 148 | <div class="sep"></div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 149 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 150 | <a title="Site Map" href="../../www/sitemap.html">Site Map</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 151 | </div> |
| 152 | <div class="sub"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 153 | <a title="Site Map: Links" href="../../www/links.html">Links</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 154 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 155 | <div class="sep"></div> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 156 | <div class="menu"> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 157 | <a rel="follow" title="Sponsors" href="../../www/sponsors.html">Sponsors:</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 158 | |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 159 | <a href="http://www.networkredux.com"> |
| 160 | <img src="../../images/networkredux.png" width="140" height="31" alt="[sponsor]" |
| 161 | style="margin-top: 4px; margin-left: 4px; border: 0px; float: left;" /></a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 162 | <div class="sponsbox"> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 163 | <div class="sponsor"> |
cristy | eed6cb6 | 2012-01-28 19:38:34 +0000 | [diff] [blame] | 164 | <a rel="follow" title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 2012070100250 ... --> |
| 165 | </div> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 166 | <div class="sponsor"> |
| 167 | <a rel="follow" title="Sponsor: Stock Photography" href="http://www.fotosearch.com/">Stock Photography</a><!-- 2012040100250 ... --> |
| 168 | </div> |
| 169 | <div class="sponsor"> |
| 170 | <a rel="follow" title="Sponsor: Best Local Services" href="http://www.openchime.com">Best Local Services</a><!-- 2012010100150 joey@openc... --> |
| 171 | </div> |
| 172 | <div class="sponsor"> |
cristy | eed6cb6 | 2012-01-28 19:38:34 +0000 | [diff] [blame] | 173 | <a rel="follow" title="Sponsor: Managed Server" href="http://www.robhost.de">Managed Server</a><!-- 201210010720 klikics... --> |
| 174 | </div> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 175 | <div class="sponsor"> |
| 176 | <a rel="follow" title="Sponsor: VPS" href="http://www.interdominios.com/vps">VPS</a><!-- 201201010090 barsh@inter... --> |
| 177 | </div> |
| 178 | <div class="sponsor"> |
| 179 | <a rel="follow" title="Sponsor: Autoteile" href="http://www.q11-shop.de">Autoteile</a><!-- 201205010540 suvalj --> |
| 180 | </div> |
| 181 | <div class="sponsor"> |
| 182 | <a rel="follow" title="Sponsor: Web Hosting" href="http://www.micfo.com">Web Hosting</a><!-- 209901010090s golestan --> |
| 183 | </div> |
| 184 | <div class="sponsor"> |
| 185 | <a rel="follow" title="Sponsor: Web Hosting Deals" href="http://www.webhostingdeals.org">Web Hosting Deals</a><!-- 201111010270 chee.hoa darin --> |
| 186 | </div> |
| 187 | <div class="sponsor"> |
| 188 | <a rel="follow" title="Sponsor: Autos part" href="http://www.pkwteile.de/autoteile">Autos part</a><!-- 201112010090s jr@pkwte... --> |
| 189 | </div> |
| 190 | <div class="sponsor"> |
| 191 | <a rel="follow" title="Sponsor: Web Hosting Reviews" href="http://www.webhostingsecretrevealed.com">Web Hosting Secret Revealed</a><!-- 201204010540 iamchee jerry --> |
| 192 | </div> |
| 193 | <div class="sponsor"> |
cristy | 10549a1 | 2011-05-15 19:04:46 +0000 | [diff] [blame] | 194 | <a rel="follow" title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201303011500 r.leo --> |
cristy | 4c54bbb | 2011-03-17 13:53:13 +0000 | [diff] [blame] | 195 | </div> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 196 | <div class="sponsor"> |
| 197 | <a rel="follow" title="Sponsor: Hotel München" href="http://www.messehotel-erb-muenchen.de">Hotel München</a><!-- 201111010450 cerb --> |
cristy | 4bf6e23 | 2011-05-21 01:43:33 +0000 | [diff] [blame] | 198 | </div> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 199 | <div class="sponsor"> |
| 200 | <a rel="follow" title="Sponsor: Web Hosting Reviews" href="http://www.webhostingreviewz.com">Web Hosting Reviews</a><!-- 2012040100030 Soft Tec--> |
| 201 | </div> |
| 202 | <div class="sponsor"> |
| 203 | <a rel="follow" title="Sponsor: Got Stripes?" href="http://www.stripeslawncare.org">Got Stripes?</a><!-- 2012010100150 brooks@stripes...--> |
cristy | ec6b475 | 2011-01-08 03:16:23 +0000 | [diff] [blame] | 204 | </div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 205 | </div> |
| 206 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 207 | </div> |
| 208 | |
| 209 | <div class="eastbar"> |
| 210 | <div class="g-plusone" id="gplusone"></div> |
| 211 | <script type="text/javascript"> |
| 212 | window.___gcfg = { |
| 213 | lang: 'en-US' |
| 214 | }; |
| 215 | |
| 216 | (function() { |
cristy | 18b955e | 2013-02-24 21:06:33 +0000 | [diff] [blame] | 217 | var po = document.createElement('offline-script'); |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 218 | po.type = 'text/javascript'; po.async = true; |
| 219 | po.src = 'https://apis.google.com/js/plusone.js'; |
cristy | 18b955e | 2013-02-24 21:06:33 +0000 | [diff] [blame] | 220 | var script = document.getElementsByTagName('offline-script')[0]; |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 221 | script.parentNode.insertBefore(po, script); |
| 222 | })(); |
| 223 | var gplusone = document.getElementById("gplusone"); |
| 224 | gplusone.setAttribute("data-size","medium"); |
| 225 | gplusone.setAttribute("data-count","false"); |
| 226 | </script> |
| 227 | </div> |
| 228 | |
| 229 | <div class="main"> |
| 230 | |
cristy | 2039843 | 2011-08-11 01:31:50 +0000 | [diff] [blame] | 231 | <h1>Module transform Methods</h1> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 232 | <p class="navigation-index">[<a href="transform.html#ChopImage">ChopImage</a> • <a href="transform.html#CropImage">CropImage</a> • <a href="transform.html#CropImageToTiles">CropImageToTiles</a> • <a href="transform.html#ExcerptImage">ExcerptImage</a> • <a href="transform.html#ExtentImage">ExtentImage</a> • <a href="transform.html#FlipImage">FlipImage</a> • <a href="transform.html#FlopImage">FlopImage</a> • <a href="transform.html#RollImage">RollImage</a> • <a href="transform.html#ShaveImage">ShaveImage</a> • <a href="transform.html#SpliceImage">SpliceImage</a> • <a href="transform.html#TransformImage">TransformImage</a> • <a href="transform.html#to CropImageToTiles">to CropImageToTiles</a> • <a href="transform.html#TransformImages">TransformImages</a> • <a href="transform.html#TransposeImage">TransposeImage</a> • <a href="transform.html#TransverseImage">TransverseImage</a> • <a href="transform.html#TrimImage">TrimImage</a>]</p> |
cristy | 6f77f69 | 2011-02-15 15:31:39 +0000 | [diff] [blame] | 233 | |
cristy | 2039843 | 2011-08-11 01:31:50 +0000 | [diff] [blame] | 234 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ChopImage">ChopImage</a></h2> |
| 235 | <div class="doc-section"> |
| 236 | |
| 237 | <p>ChopImage() removes a region of an image and collapses the image to occupy the removed portion.</p> |
| 238 | |
| 239 | <p>The format of the ChopImage method is:</p> |
| 240 | |
| 241 | <pre class="code"> |
| 242 | Image *ChopImage(const Image *image,const RectangleInfo *chop_info) |
| 243 | ExceptionInfo *exception) |
| 244 | </pre> |
| 245 | |
| 246 | <p>A description of each parameter follows:</p> |
| 247 | |
| 248 | <h5>image</h5> |
| 249 | <p>the image.</p> |
| 250 | |
| 251 | <h5>chop_info</h5> |
| 252 | <p>Define the region of the image to chop.</p> |
| 253 | |
| 254 | <h5>exception</h5> |
| 255 | <p>return any errors or warnings in this structure.</p> |
| 256 | |
| 257 | </div> |
| 258 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="CropImage">CropImage</a></h2> |
| 259 | <div class="doc-section"> |
| 260 | |
| 261 | <p>CropImage() extracts a region of the image starting at the offset defined by geometry. Region must be fully defined, and no special handling of geometry flags is performed.</p> |
| 262 | |
| 263 | <p>The format of the CropImage method is:</p> |
| 264 | |
| 265 | <pre class="code"> |
| 266 | Image *CropImage(const Image *image,const RectangleInfo *geometry, |
| 267 | ExceptionInfo *exception) |
| 268 | </pre> |
| 269 | |
| 270 | <p>A description of each parameter follows:</p> |
| 271 | |
| 272 | <h5>image</h5> |
| 273 | <p>the image.</p> |
| 274 | |
| 275 | <h5>geometry</h5> |
| 276 | <p>Define the region of the image to crop with members x, y, width, and height.</p> |
| 277 | |
| 278 | <h5>exception</h5> |
| 279 | <p>return any errors or warnings in this structure.</p> |
| 280 | |
| 281 | </div> |
| 282 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="CropImageToTiles">CropImageToTiles</a></h2> |
| 283 | <div class="doc-section"> |
| 284 | |
cristy | eed6cb6 | 2012-01-28 19:38:34 +0000 | [diff] [blame] | 285 | <p>CropImageToTiles() crops a single image, into a possible list of tiles. This may include a single sub-region of the image. This basically applies all the normal geometry flags for Crop.</p> |
cristy | 2039843 | 2011-08-11 01:31:50 +0000 | [diff] [blame] | 286 | |
cristy | eed6cb6 | 2012-01-28 19:38:34 +0000 | [diff] [blame] | 287 | <p>Image *CropImageToTiles(const Image *image, const RectangleInfo *crop_geometry, ExceptionInfo *exception)</p> |
cristy | 2039843 | 2011-08-11 01:31:50 +0000 | [diff] [blame] | 288 | |
| 289 | <p>A description of each parameter follows:</p> |
| 290 | |
| 291 | <h5>image</h5> |
| 292 | <p>the image The transformed image is returned as this parameter.</p> |
| 293 | |
| 294 | <h5>crop_geometry</h5> |
| 295 | <p>A crop geometry string.</p> |
| 296 | |
| 297 | <h5>exception</h5> |
| 298 | <p>return any errors or warnings in this structure.</p> |
| 299 | |
| 300 | </div> |
| 301 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ExcerptImage">ExcerptImage</a></h2> |
| 302 | <div class="doc-section"> |
| 303 | |
| 304 | <p>ExcerptImage() returns a excerpt of the image as defined by the geometry.</p> |
| 305 | |
| 306 | <p>The format of the ExcerptImage method is:</p> |
| 307 | |
| 308 | <pre class="code"> |
| 309 | Image *ExcerptImage(const Image *image,const RectangleInfo *geometry, |
| 310 | ExceptionInfo *exception) |
| 311 | </pre> |
| 312 | |
| 313 | <p>A description of each parameter follows:</p> |
| 314 | |
| 315 | <h5>image</h5> |
| 316 | <p>the image.</p> |
| 317 | |
| 318 | <h5>geometry</h5> |
| 319 | <p>Define the region of the image to extend with members x, y, width, and height.</p> |
| 320 | |
| 321 | <h5>exception</h5> |
| 322 | <p>return any errors or warnings in this structure.</p> |
| 323 | |
| 324 | </div> |
| 325 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ExtentImage">ExtentImage</a></h2> |
| 326 | <div class="doc-section"> |
| 327 | |
| 328 | <p>ExtentImage() extends the image as defined by the geometry, gravity, and image background color. Set the (x,y) offset of the geometry to move the original image relative to the extended image.</p> |
| 329 | |
| 330 | <p>The format of the ExtentImage method is:</p> |
| 331 | |
| 332 | <pre class="code"> |
| 333 | Image *ExtentImage(const Image *image,const RectangleInfo *geometry, |
| 334 | ExceptionInfo *exception) |
| 335 | </pre> |
| 336 | |
| 337 | <p>A description of each parameter follows:</p> |
| 338 | |
| 339 | <h5>image</h5> |
| 340 | <p>the image.</p> |
| 341 | |
| 342 | <h5>geometry</h5> |
| 343 | <p>Define the region of the image to extend with members x, y, width, and height.</p> |
| 344 | |
| 345 | <h5>exception</h5> |
| 346 | <p>return any errors or warnings in this structure.</p> |
| 347 | |
| 348 | </div> |
| 349 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="FlipImage">FlipImage</a></h2> |
| 350 | <div class="doc-section"> |
| 351 | |
| 352 | <p>FlipImage() creates a vertical mirror image by reflecting the pixels around the central x-axis.</p> |
| 353 | |
| 354 | <p>The format of the FlipImage method is:</p> |
| 355 | |
| 356 | <pre class="code"> |
| 357 | Image *FlipImage(const Image *image,ExceptionInfo *exception) |
| 358 | </pre> |
| 359 | |
| 360 | <p>A description of each parameter follows:</p> |
| 361 | |
| 362 | <h5>image</h5> |
| 363 | <p>the image.</p> |
| 364 | |
| 365 | <h5>exception</h5> |
| 366 | <p>return any errors or warnings in this structure.</p> |
| 367 | |
| 368 | </div> |
| 369 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="FlopImage">FlopImage</a></h2> |
| 370 | <div class="doc-section"> |
| 371 | |
| 372 | <p>FlopImage() creates a horizontal mirror image by reflecting the pixels around the central y-axis.</p> |
| 373 | |
| 374 | <p>The format of the FlopImage method is:</p> |
| 375 | |
| 376 | <pre class="code"> |
| 377 | Image *FlopImage(const Image *image,ExceptionInfo *exception) |
| 378 | </pre> |
| 379 | |
| 380 | <p>A description of each parameter follows:</p> |
| 381 | |
| 382 | <h5>image</h5> |
| 383 | <p>the image.</p> |
| 384 | |
| 385 | <h5>exception</h5> |
| 386 | <p>return any errors or warnings in this structure.</p> |
| 387 | |
| 388 | </div> |
| 389 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="RollImage">RollImage</a></h2> |
| 390 | <div class="doc-section"> |
| 391 | |
| 392 | <p>RollImage() offsets an image as defined by x_offset and y_offset.</p> |
| 393 | |
| 394 | <p>The format of the RollImage method is:</p> |
| 395 | |
| 396 | <pre class="code"> |
| 397 | Image *RollImage(const Image *image,const ssize_t x_offset, |
| 398 | const ssize_t y_offset,ExceptionInfo *exception) |
| 399 | </pre> |
| 400 | |
| 401 | <p>A description of each parameter follows:</p> |
| 402 | |
| 403 | <h5>image</h5> |
| 404 | <p>the image.</p> |
| 405 | |
| 406 | <h5>x_offset</h5> |
| 407 | <p>the number of columns to roll in the horizontal direction.</p> |
| 408 | |
| 409 | <h5>y_offset</h5> |
| 410 | <p>the number of rows to roll in the vertical direction.</p> |
| 411 | |
| 412 | <h5>exception</h5> |
| 413 | <p>return any errors or warnings in this structure.</p> |
| 414 | |
| 415 | </div> |
| 416 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ShaveImage">ShaveImage</a></h2> |
| 417 | <div class="doc-section"> |
| 418 | |
| 419 | <p>ShaveImage() shaves pixels from the image edges. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.</p> |
| 420 | |
| 421 | <p>The format of the ShaveImage method is:</p> |
| 422 | |
| 423 | <pre class="code"> |
| 424 | Image *ShaveImage(const Image *image,const RectangleInfo *shave_info, |
| 425 | ExceptionInfo *exception) |
| 426 | </pre> |
| 427 | |
| 428 | <p>A description of each parameter follows:</p> |
| 429 | |
| 430 | <h5>shave_image</h5> |
| 431 | <p>Method ShaveImage returns a pointer to the shaved image. A null image is returned if there is a memory shortage or if the image width or height is zero.</p> |
| 432 | |
| 433 | <h5>image</h5> |
| 434 | <p>the image.</p> |
| 435 | |
| 436 | <h5>shave_info</h5> |
| 437 | <p>Specifies a pointer to a RectangleInfo which defines the region of the image to crop.</p> |
| 438 | |
| 439 | <h5>exception</h5> |
| 440 | <p>return any errors or warnings in this structure.</p> |
| 441 | |
| 442 | </div> |
| 443 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="SpliceImage">SpliceImage</a></h2> |
| 444 | <div class="doc-section"> |
| 445 | |
| 446 | <p>SpliceImage() splices a solid color into the image as defined by the geometry.</p> |
| 447 | |
| 448 | <p>The format of the SpliceImage method is:</p> |
| 449 | |
| 450 | <pre class="code"> |
| 451 | Image *SpliceImage(const Image *image,const RectangleInfo *geometry, |
| 452 | ExceptionInfo *exception) |
| 453 | </pre> |
| 454 | |
| 455 | <p>A description of each parameter follows:</p> |
| 456 | |
| 457 | <h5>image</h5> |
| 458 | <p>the image.</p> |
| 459 | |
| 460 | <h5>geometry</h5> |
| 461 | <p>Define the region of the image to splice with members x, y, width, and height.</p> |
| 462 | |
| 463 | <h5>exception</h5> |
| 464 | <p>return any errors or warnings in this structure.</p> |
| 465 | |
| 466 | </div> |
| 467 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransformImage">TransformImage</a></h2> |
| 468 | <div class="doc-section"> |
| 469 | |
| 470 | <p>TransformImage() is a convenience method that behaves like ResizeImage() or CropImage() but accepts scaling and/or cropping information as a region geometry specification. If the operation fails, the original image handle is left as is.</p> |
| 471 | |
| 472 | <p>This should only be used for single images.</p> |
| 473 | |
| 474 | <p>The format of the TransformImage method is:</p> |
| 475 | |
| 476 | <pre class="code"> |
| 477 | MagickBooleanType TransformImage(Image **image,const char *crop_geometry, |
| 478 | const char *image_geometry) |
| 479 | </pre> |
| 480 | |
| 481 | <p>A description of each parameter follows:</p> |
| 482 | |
| 483 | <h5>image</h5> |
| 484 | <p>the image The transformed image is returned as this parameter.</p> |
| 485 | |
| 486 | <h5>crop_geometry</h5> |
| 487 | <p>A crop geometry string. This geometry defines a subregion of the image to crop.</p> |
| 488 | |
| 489 | <h5>image_geometry</h5> |
| 490 | <p>An image geometry string. This geometry defines the final size of the image.</p> |
| 491 | |
| 492 | </div> |
| 493 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="to_CropImageToTiles">to CropImageToTiles</a></h2> |
| 494 | <div class="doc-section"> |
| 495 | |
| 496 | <p>to CropImageToTiles() or ResizeImage(), as appropriate.</p> |
| 497 | |
| 498 | </div> |
| 499 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransformImages">TransformImages</a></h2> |
| 500 | <div class="doc-section"> |
| 501 | |
| 502 | <p>TransformImages() calls TransformImage() on each image of a sequence.</p> |
| 503 | |
| 504 | <p>The format of the TransformImage method is:</p> |
| 505 | |
| 506 | <pre class="code"> |
| 507 | MagickBooleanType TransformImages(Image **image, |
| 508 | const char *crop_geometry,const char *image_geometry) |
| 509 | </pre> |
| 510 | |
| 511 | <p>A description of each parameter follows:</p> |
| 512 | |
| 513 | <h5>image</h5> |
| 514 | <p>the image The transformed image is returned as this parameter.</p> |
| 515 | |
| 516 | <h5>crop_geometry</h5> |
| 517 | <p>A crop geometry string. This geometry defines a subregion of the image to crop.</p> |
| 518 | |
| 519 | <h5>image_geometry</h5> |
| 520 | <p>An image geometry string. This geometry defines the final size of the image.</p> |
| 521 | |
| 522 | </div> |
| 523 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransposeImage">TransposeImage</a></h2> |
| 524 | <div class="doc-section"> |
| 525 | |
| 526 | <p>TransposeImage() creates a horizontal mirror image by reflecting the pixels around the central y-axis while rotating them by 90 degrees.</p> |
| 527 | |
| 528 | <p>The format of the TransposeImage method is:</p> |
| 529 | |
| 530 | <pre class="code"> |
| 531 | Image *TransposeImage(const Image *image,ExceptionInfo *exception) |
| 532 | </pre> |
| 533 | |
| 534 | <p>A description of each parameter follows:</p> |
| 535 | |
| 536 | <h5>image</h5> |
| 537 | <p>the image.</p> |
| 538 | |
| 539 | <h5>exception</h5> |
| 540 | <p>return any errors or warnings in this structure.</p> |
| 541 | |
| 542 | </div> |
| 543 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransverseImage">TransverseImage</a></h2> |
| 544 | <div class="doc-section"> |
| 545 | |
| 546 | <p>TransverseImage() creates a vertical mirror image by reflecting the pixels around the central x-axis while rotating them by 270 degrees.</p> |
| 547 | |
| 548 | <p>The format of the TransverseImage method is:</p> |
| 549 | |
| 550 | <pre class="code"> |
| 551 | Image *TransverseImage(const Image *image,ExceptionInfo *exception) |
| 552 | </pre> |
| 553 | |
| 554 | <p>A description of each parameter follows:</p> |
| 555 | |
| 556 | <h5>image</h5> |
| 557 | <p>the image.</p> |
| 558 | |
| 559 | <h5>exception</h5> |
| 560 | <p>return any errors or warnings in this structure.</p> |
| 561 | |
| 562 | </div> |
| 563 | <h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TrimImage">TrimImage</a></h2> |
| 564 | <div class="doc-section"> |
| 565 | |
| 566 | <p>TrimImage() trims pixels from the image edges. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.</p> |
| 567 | |
| 568 | <p>The format of the TrimImage method is:</p> |
| 569 | |
| 570 | <pre class="code"> |
| 571 | Image *TrimImage(const Image *image,ExceptionInfo *exception) |
| 572 | </pre> |
| 573 | |
| 574 | <p>A description of each parameter follows:</p> |
| 575 | |
| 576 | <h5>image</h5> |
| 577 | <p>the image.</p> |
| 578 | |
| 579 | <h5>exception</h5> |
| 580 | <p>return any errors or warnings in this structure.</p> |
| 581 | |
| 582 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 583 | |
| 584 | </div> |
| 585 | |
| 586 | <div id="linkbar"> |
| 587 | <span id="linkbar-west"> </span> |
| 588 | <span id="linkbar-center"> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 589 | <a href="../../discourse-server">Discourse Server</a> • |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 590 | <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a> |
| 591 | </span> |
| 592 | <span id="linkbar-east"> </span> |
| 593 | </div> |
| 594 | <div class="footer"> |
cristy | 72da67d | 2013-02-24 21:40:48 +0000 | [diff] [blame] | 595 | <span id="footer-west">© 1999-2011 ImageMagick Studio LLC</span> |
cristy | d8833bf | 2013-02-24 22:14:53 +0000 | [diff] [blame^] | 596 | <span id="footer-east"> <a href="../../www/contact.html">Contact the Wizards</a></span> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 597 | </div> |
| 598 | <div style="clear: both; margin: 0; width: 100%; "></div> |
| 599 | <script type="text/javascript"> |
| 600 | var _gaq = _gaq || []; |
| 601 | _gaq.push(['_setAccount', 'UA-17690367-1']); |
| 602 | _gaq.push(['_trackPageview']); |
| 603 | |
| 604 | (function() { |
cristy | 18b955e | 2013-02-24 21:06:33 +0000 | [diff] [blame] | 605 | var ga = document.createElement('offline-script'); ga.type = 'text/javascript'; ga.async = true; |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 606 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
cristy | 18b955e | 2013-02-24 21:06:33 +0000 | [diff] [blame] | 607 | var s = document.getElementsByTagName('offline-script')[0]; s.parentNode.insertBefore(ga, s); |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 608 | })(); |
| 609 | </script> |
| 610 | </body> |
| 611 | </html> |