blob: dc32f97b775632dd85c9458a7572efdb7dec7d8b [file] [log] [blame]
cristy44cbd482013-08-04 20:53:36 +00001<!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">
cristy06f63f22012-10-31 00:50:07 +00003<head>
cristy44cbd482013-08-04 20:53:36 +00004 <meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta>
5 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4"></meta>
cristyffb69ed2010-12-25 00:06:48 +00006 <title>ImageMagick: MagickCore, C API for ImageMagick: Transform an Image</title>
cristy44cbd482013-08-04 20:53:36 +00007 <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:, transform, 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>
cristyf1b8a092014-02-20 15:46:11 +000025 <link rel="canonical" href="http://www.imagemagick.org"></link>
cristy44cbd482013-08-04 20:53:36 +000026 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"></link>
cristy8ee7f242013-06-20 16:08:44 +000027
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 -->
cristy44cbd482013-08-04 20:53:36 +000035 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/jquery.fancybox.css?v=2.0.6" type="text/css" media="screen"></link>
cristy8ee7f242013-06-20 16:08:44 +000036 <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 -->
cristy44cbd482013-08-04 20:53:36 +000039 <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>
cristy8ee7f242013-06-20 16:08:44 +000040 <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
cristy44cbd482013-08-04 20:53:36 +000043 <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>
cristy8ee7f242013-06-20 16:08:44 +000044 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=2.0.6"></script>
45
cristy72da67d2013-02-24 21:40:48 +000046 <script type="text/javascript">
cristy8ee7f242013-06-20 16:08:44 +000047 $(document).ready(function() {
48 $(".fancybox").fancybox();
49 });
cristy72da67d2013-02-24 21:40:48 +000050 </script>
cristy8ee7f242013-06-20 16:08:44 +000051
52 <!-- ImageMagick style -->
53 <style type="text/css" media="all">
54 @import url("../../www/magick.css");
55 </style>
cristy06f63f22012-10-31 00:50:07 +000056</head>
57
58<body id="www-imagemagick-org">
cristy8ee7f242013-06-20 16:08:44 +000059
cristy8ee7f242013-06-20 16:08:44 +000060
cristy8ee7f242013-06-20 16:08:44 +000061
cristy06f63f22012-10-31 00:50:07 +000062<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>
cristy44cbd482013-08-04 20:53:36 +000072
cristy06f63f22012-10-31 00:50:07 +000073</div>
cristy417eeb12013-07-28 18:48:22 +000074<a href="../../discourse-server">
cristy44cbd482013-08-04 20:53:36 +000075 <img src="../../images/logo.jpg" alt="ImageMagick Logo" style="width: 123px; height: 118px; border: 0px; float: right;"></img></a>
cristyf1b8a092014-02-20 15:46:11 +000076<a href="http://www.imagemagick.org/ImageMagick-7.0.0/index.html">
cristy44cbd482013-08-04 20:53:36 +000077 <img src="../../images/sprite.jpg" alt="ImageMagick Sprite" style="width: 114px; height: 118px; border: 0px; float: right;"></img></a>
cristy06f63f22012-10-31 00:50:07 +000078</div>
79
80<div class="westbar">
81
cristy3ed852e2009-09-05 21:47:34 +000082<div class="menu">
cristyf1b8a092014-02-20 15:46:11 +000083 <a title="About ImageMagick" href="http://www.imagemagick.org/ImageMagick-7.0.0/index.html">About ImageMagick</a>
cristy3ed852e2009-09-05 21:47:34 +000084</div>
cristy3ed852e2009-09-05 21:47:34 +000085<div class="menu">
cristyd8833bf2013-02-24 22:14:53 +000086 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
cristybb503372010-05-27 20:51:26 +000087</div>
88<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +000089 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
cristybb503372010-05-27 20:51:26 +000090</div>
91<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +000092 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
cristybb503372010-05-27 20:51:26 +000093</div>
94<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +000095 <a title="Binary Release: iOS" href="../../www/binary-releases.html#iOS">iOS</a>
cristyda16f162011-02-19 23:52:17 +000096</div>
97<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +000098 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
cristybb503372010-05-27 20:51:26 +000099</div>
cristy06f63f22012-10-31 00:50:07 +0000100<div class="sep"></div>
cristybb503372010-05-27 20:51:26 +0000101<div class="menu">
cristyd8833bf2013-02-24 22:14:53 +0000102 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
cristy3ed852e2009-09-05 21:47:34 +0000103</div>
104<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +0000105 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
cristy3ed852e2009-09-05 21:47:34 +0000106</div>
107<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +0000108 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
cristy3ed852e2009-09-05 21:47:34 +0000109</div>
110<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000111 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
cristy3ed852e2009-09-05 21:47:34 +0000112</div>
113<div class="menu">
cristyd8833bf2013-02-24 22:14:53 +0000114 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
cristy3ed852e2009-09-05 21:47:34 +0000115</div>
116<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +0000117 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
cristy3ed852e2009-09-05 21:47:34 +0000118</div>
119<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +0000120 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
cristy3ed852e2009-09-05 21:47:34 +0000121</div>
122<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +0000123 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
cristy3ed852e2009-09-05 21:47:34 +0000124</div>
125<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +0000126 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
cristy3ed852e2009-09-05 21:47:34 +0000127</div>
cristy06f63f22012-10-31 00:50:07 +0000128<div class="sep"></div>
cristy44cbd482013-08-04 20:53:36 +0000129<div class="menu">
cristyd8833bf2013-02-24 22:14:53 +0000130 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
cristy3ed852e2009-09-05 21:47:34 +0000131</div>
132<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +0000133 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
cristy3ed852e2009-09-05 21:47:34 +0000134</div>
135<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +0000136 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
cristy3ed852e2009-09-05 21:47:34 +0000137 </div>
138<div class="menu">
cristyd8833bf2013-02-24 22:14:53 +0000139 <a title="Resources" href="../../www/resources.html">Resources</a>
cristy3ed852e2009-09-05 21:47:34 +0000140</div>
cristybb503372010-05-27 20:51:26 +0000141<div class="menu">
cristyd8833bf2013-02-24 22:14:53 +0000142 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
cristybb503372010-05-27 20:51:26 +0000143</div>
cristy3ed852e2009-09-05 21:47:34 +0000144<div class="menu">
cristyd8833bf2013-02-24 22:14:53 +0000145 <a title="Download" href="../../www/download.html">Download</a>
cristy3ed852e2009-09-05 21:47:34 +0000146</div>
cristy06f63f22012-10-31 00:50:07 +0000147<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000148<div class="menu">
cristy3dfa2192013-02-24 22:46:05 +0000149 <a title="Search" href="http://www.imagemagick.org/script/search.php">Search</a>
cristy3ed852e2009-09-05 21:47:34 +0000150</div>
cristy06f63f22012-10-31 00:50:07 +0000151<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000152<div class="menu">
cristyd8833bf2013-02-24 22:14:53 +0000153 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
cristy3ed852e2009-09-05 21:47:34 +0000154</div>
cristy44cbd482013-08-04 20:53:36 +0000155<div class="sub">
cristyd8833bf2013-02-24 22:14:53 +0000156 <a title="Site Map: Links" href="../../www/links.html">Links</a>
cristy3ed852e2009-09-05 21:47:34 +0000157</div>
cristy06f63f22012-10-31 00:50:07 +0000158<div class="sep"></div>
cristy06f63f22012-10-31 00:50:07 +0000159</div>
160
161<div class="eastbar">
cristy44cbd482013-08-04 20:53:36 +0000162
cristyf1b8a092014-02-20 15:46:11 +0000163 <div> <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://www.imagemagick.org/"></a></div>
cristy8ee7f242013-06-20 16:08:44 +0000164 <noscript>
165 <a href="http://flattr.com/thing/947300/Convert-Edit-And-Compose-Images" target="_blank">
cristy44cbd482013-08-04 20:53:36 +0000166 <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>
cristy8ee7f242013-06-20 16:08:44 +0000167 </noscript>
cristy44cbd482013-08-04 20:53:36 +0000168
169
cristy06f63f22012-10-31 00:50:07 +0000170</div>
171
172<div class="main">
173
cristy20398432011-08-11 01:31:50 +0000174<h1>Module transform Methods</h1>
cristyf1b8a092014-02-20 15:46:11 +0000175<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>
cristy6f77f692011-02-15 15:31:39 +0000176
cristy20398432011-08-11 01:31:50 +0000177<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ChopImage">ChopImage</a></h2>
178<div class="doc-section">
179
180<p>ChopImage() removes a region of an image and collapses the image to occupy the removed portion.</p>
181
182<p>The format of the ChopImage method is:</p>
183
184<pre class="code">
185 Image *ChopImage(const Image *image,const RectangleInfo *chop_info)
186 ExceptionInfo *exception)
187</pre>
188
189<p>A description of each parameter follows:</p>
190
191<h5>image</h5>
192<p>the image.</p>
193
194<h5>chop_info</h5>
195<p>Define the region of the image to chop.</p>
196
197<h5>exception</h5>
198<p>return any errors or warnings in this structure.</p>
199
200 </div>
201<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="CropImage">CropImage</a></h2>
202<div class="doc-section">
203
204<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>
205
206<p>The format of the CropImage method is:</p>
207
208<pre class="code">
209 Image *CropImage(const Image *image,const RectangleInfo *geometry,
210 ExceptionInfo *exception)
211</pre>
212
213<p>A description of each parameter follows:</p>
214
215<h5>image</h5>
216<p>the image.</p>
217
218<h5>geometry</h5>
219<p>Define the region of the image to crop with members x, y, width, and height.</p>
220
221<h5>exception</h5>
222<p>return any errors or warnings in this structure.</p>
223
224 </div>
225<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="CropImageToTiles">CropImageToTiles</a></h2>
226<div class="doc-section">
227
cristyeed6cb62012-01-28 19:38:34 +0000228<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>
cristy20398432011-08-11 01:31:50 +0000229
cristyeed6cb62012-01-28 19:38:34 +0000230<p>Image *CropImageToTiles(const Image *image, const RectangleInfo *crop_geometry, ExceptionInfo *exception)</p>
cristy20398432011-08-11 01:31:50 +0000231
232<p>A description of each parameter follows:</p>
233
234<h5>image</h5>
235<p>the image The transformed image is returned as this parameter.</p>
236
237<h5>crop_geometry</h5>
238<p>A crop geometry string.</p>
239
240<h5>exception</h5>
241<p>return any errors or warnings in this structure.</p>
242
243 </div>
244<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ExcerptImage">ExcerptImage</a></h2>
245<div class="doc-section">
246
247<p>ExcerptImage() returns a excerpt of the image as defined by the geometry.</p>
248
249<p>The format of the ExcerptImage method is:</p>
250
251<pre class="code">
252 Image *ExcerptImage(const Image *image,const RectangleInfo *geometry,
253 ExceptionInfo *exception)
254</pre>
255
256<p>A description of each parameter follows:</p>
257
258<h5>image</h5>
259<p>the image.</p>
260
261<h5>geometry</h5>
262<p>Define the region of the image to extend with members x, y, width, and height.</p>
263
264<h5>exception</h5>
265<p>return any errors or warnings in this structure.</p>
266
267 </div>
268<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ExtentImage">ExtentImage</a></h2>
269<div class="doc-section">
270
271<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>
272
273<p>The format of the ExtentImage method is:</p>
274
275<pre class="code">
276 Image *ExtentImage(const Image *image,const RectangleInfo *geometry,
277 ExceptionInfo *exception)
278</pre>
279
280<p>A description of each parameter follows:</p>
281
282<h5>image</h5>
283<p>the image.</p>
284
285<h5>geometry</h5>
286<p>Define the region of the image to extend with members x, y, width, and height.</p>
287
288<h5>exception</h5>
289<p>return any errors or warnings in this structure.</p>
290
291 </div>
292<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="FlipImage">FlipImage</a></h2>
293<div class="doc-section">
294
295<p>FlipImage() creates a vertical mirror image by reflecting the pixels around the central x-axis.</p>
296
297<p>The format of the FlipImage method is:</p>
298
299<pre class="code">
300 Image *FlipImage(const Image *image,ExceptionInfo *exception)
301</pre>
302
303<p>A description of each parameter follows:</p>
304
305<h5>image</h5>
306<p>the image.</p>
307
308<h5>exception</h5>
309<p>return any errors or warnings in this structure.</p>
310
311 </div>
312<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="FlopImage">FlopImage</a></h2>
313<div class="doc-section">
314
315<p>FlopImage() creates a horizontal mirror image by reflecting the pixels around the central y-axis.</p>
316
317<p>The format of the FlopImage method is:</p>
318
319<pre class="code">
320 Image *FlopImage(const Image *image,ExceptionInfo *exception)
321</pre>
322
323<p>A description of each parameter follows:</p>
324
325<h5>image</h5>
326<p>the image.</p>
327
328<h5>exception</h5>
329<p>return any errors or warnings in this structure.</p>
330
331 </div>
332<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="RollImage">RollImage</a></h2>
333<div class="doc-section">
334
335<p>RollImage() offsets an image as defined by x_offset and y_offset.</p>
336
337<p>The format of the RollImage method is:</p>
338
339<pre class="code">
340 Image *RollImage(const Image *image,const ssize_t x_offset,
341 const ssize_t y_offset,ExceptionInfo *exception)
342</pre>
343
344<p>A description of each parameter follows:</p>
345
346<h5>image</h5>
347<p>the image.</p>
348
349<h5>x_offset</h5>
350<p>the number of columns to roll in the horizontal direction.</p>
351
352<h5>y_offset</h5>
353<p>the number of rows to roll in the vertical direction.</p>
354
355<h5>exception</h5>
356<p>return any errors or warnings in this structure.</p>
357
358 </div>
359<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ShaveImage">ShaveImage</a></h2>
360<div class="doc-section">
361
362<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>
363
364<p>The format of the ShaveImage method is:</p>
365
366<pre class="code">
367 Image *ShaveImage(const Image *image,const RectangleInfo *shave_info,
368 ExceptionInfo *exception)
369</pre>
370
371<p>A description of each parameter follows:</p>
372
373<h5>shave_image</h5>
374<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>
375
376<h5>image</h5>
377<p>the image.</p>
378
379<h5>shave_info</h5>
380<p>Specifies a pointer to a RectangleInfo which defines the region of the image to crop.</p>
381
382<h5>exception</h5>
383<p>return any errors or warnings in this structure.</p>
384
385 </div>
386<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="SpliceImage">SpliceImage</a></h2>
387<div class="doc-section">
388
389<p>SpliceImage() splices a solid color into the image as defined by the geometry.</p>
390
391<p>The format of the SpliceImage method is:</p>
392
393<pre class="code">
394 Image *SpliceImage(const Image *image,const RectangleInfo *geometry,
395 ExceptionInfo *exception)
396</pre>
397
398<p>A description of each parameter follows:</p>
399
400<h5>image</h5>
401<p>the image.</p>
402
403<h5>geometry</h5>
404<p>Define the region of the image to splice with members x, y, width, and height.</p>
405
406<h5>exception</h5>
407<p>return any errors or warnings in this structure.</p>
408
409 </div>
410<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransformImage">TransformImage</a></h2>
411<div class="doc-section">
412
413<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>
414
415<p>This should only be used for single images.</p>
416
417<p>The format of the TransformImage method is:</p>
418
419<pre class="code">
420 MagickBooleanType TransformImage(Image **image,const char *crop_geometry,
421 const char *image_geometry)
422</pre>
423
424<p>A description of each parameter follows:</p>
425
426<h5>image</h5>
427<p>the image The transformed image is returned as this parameter.</p>
428
429<h5>crop_geometry</h5>
430<p>A crop geometry string. This geometry defines a subregion of the image to crop.</p>
431
432<h5>image_geometry</h5>
433<p>An image geometry string. This geometry defines the final size of the image.</p>
434
435 </div>
436<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="to_CropImageToTiles">to CropImageToTiles</a></h2>
437<div class="doc-section">
438
439<p>to CropImageToTiles() or ResizeImage(), as appropriate.</p>
440
441 </div>
442<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransformImages">TransformImages</a></h2>
443<div class="doc-section">
444
445<p>TransformImages() calls TransformImage() on each image of a sequence.</p>
446
447<p>The format of the TransformImage method is:</p>
448
449<pre class="code">
450 MagickBooleanType TransformImages(Image **image,
451 const char *crop_geometry,const char *image_geometry)
452</pre>
453
454<p>A description of each parameter follows:</p>
455
456<h5>image</h5>
457<p>the image The transformed image is returned as this parameter.</p>
458
459<h5>crop_geometry</h5>
460<p>A crop geometry string. This geometry defines a subregion of the image to crop.</p>
461
462<h5>image_geometry</h5>
463<p>An image geometry string. This geometry defines the final size of the image.</p>
464
465 </div>
466<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransposeImage">TransposeImage</a></h2>
467<div class="doc-section">
468
469<p>TransposeImage() creates a horizontal mirror image by reflecting the pixels around the central y-axis while rotating them by 90 degrees.</p>
470
471<p>The format of the TransposeImage method is:</p>
472
473<pre class="code">
474 Image *TransposeImage(const Image *image,ExceptionInfo *exception)
475</pre>
476
477<p>A description of each parameter follows:</p>
478
479<h5>image</h5>
480<p>the image.</p>
481
482<h5>exception</h5>
483<p>return any errors or warnings in this structure.</p>
484
485 </div>
486<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransverseImage">TransverseImage</a></h2>
487<div class="doc-section">
488
489<p>TransverseImage() creates a vertical mirror image by reflecting the pixels around the central x-axis while rotating them by 270 degrees.</p>
490
491<p>The format of the TransverseImage method is:</p>
492
493<pre class="code">
494 Image *TransverseImage(const Image *image,ExceptionInfo *exception)
495</pre>
496
497<p>A description of each parameter follows:</p>
498
499<h5>image</h5>
500<p>the image.</p>
501
502<h5>exception</h5>
503<p>return any errors or warnings in this structure.</p>
504
505 </div>
506<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TrimImage">TrimImage</a></h2>
507<div class="doc-section">
508
509<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>
510
511<p>The format of the TrimImage method is:</p>
512
513<pre class="code">
514 Image *TrimImage(const Image *image,ExceptionInfo *exception)
515</pre>
516
517<p>A description of each parameter follows:</p>
518
519<h5>image</h5>
520<p>the image.</p>
521
522<h5>exception</h5>
523<p>return any errors or warnings in this structure.</p>
524
525 </div>
cristy06f63f22012-10-31 00:50:07 +0000526
527</div>
528
529<div id="linkbar">
cristyac1b4322013-07-28 13:58:06 +0000530 <span id="linkbar-west"> </span>
cristy8ee7f242013-06-20 16:08:44 +0000531
cristy06f63f22012-10-31 00:50:07 +0000532 <span id="linkbar-center">
cristy44cbd482013-08-04 20:53:36 +0000533 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
534 <a href="../../discourse-server">Discourse Server</a>
535 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
cristy8ee7f242013-06-20 16:08:44 +0000536 <a href="http://jqmagick.imagemagick.org/">JqMagick</a>
cristy06f63f22012-10-31 00:50:07 +0000537 </span>
cristyac1b4322013-07-28 13:58:06 +0000538 <span id="linkbar-east"> </span>
cristy44cbd482013-08-04 20:53:36 +0000539</div>
540<div class="footer">
cristyf1b8a092014-02-20 15:46:11 +0000541 <span id="footer-west">© 1999-2013 ImageMagick Studio LLC</span>
cristy44cbd482013-08-04 20:53:36 +0000542 <span id="footer-east"> <a href="../../www/contact.html">Contact the Wizards</a></span>
543</div>
544<div style="clear: both; margin: 0; width: 100%; "></div>
cristy06f63f22012-10-31 00:50:07 +0000545</body>
546</html>