blob: 69056776ade3dcad2039a3299d10974cb0143a0c [file] [log] [blame]
cristy29dc8652015-05-12 16:26:21 +00001<!DOCTYPE html>
cristy44443b92015-05-05 00:06:07 +00002<html lang="en">
cristy06f63f22012-10-31 00:50:07 +00003<head>
cristy44443b92015-05-05 00:06:07 +00004 <meta charset="utf-8">
5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 <meta name="viewport" content="width=device-width, initial-scale=1">
cristyffb69ed2010-12-25 00:06:48 +00007 <title>ImageMagick: MagickCore, C API for ImageMagick: Transform an Image</title>
cristy44443b92015-05-05 00:06:07 +00008 <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">
11 <meta name="application-name" content="ImageMagick">
12 <meta name="description" content="ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.">
13 <meta name="application-url" content="http://www.imagemagick.org">
14 <meta name="generator" content="PHP">
15 <meta name="keywords" content="magickcore, c, api, for, imagemagick:, transform, an, image, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert">
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">
cristy4e638cd2015-05-07 16:47:40 +000022 <meta name="copyright" content="Copyright (c) 1999-2015 ImageMagick Studio LLC">
cristy44443b92015-05-05 00:06:07 +000023 <meta name="distribution" content="Global">
24 <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1">
cristy2f563d42015-05-06 23:36:51 +000025 <link rel="icon" href="../images/wand.png">
26 <link rel="shortcut icon" href="../images/wand.ico" type="images/x-icon">
27 <link rel="stylesheet" href="../css/bootstrap.min.css">
28 <link rel="stylesheet" href="../css/magick.css">
cristy06f63f22012-10-31 00:50:07 +000029</head>
30
cristy44443b92015-05-05 00:06:07 +000031<body>
cristy06f63f22012-10-31 00:50:07 +000032<div class="main">
cristy44443b92015-05-05 00:06:07 +000033<div class="magick-masthead">
34 <div class="container">
35 <script type="text/javascript">
36 <!--
37 google_ad_client = "pub-3129977114552745";
38 google_ad_slot = "5439289906";
39 google_ad_width = 728;
40 google_ad_height = 90;
41 //-->
42 </script>
43 <center><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
44 </script></center>
45 <nav class="magick-nav">
cristy2f563d42015-05-06 23:36:51 +000046 <a class="magick-nav-item " href="../index.html">Home</a>
cristy38185362015-05-07 20:09:56 +000047 <a class="magick-nav-item " href="../binary-releases.html">Downloads</a>
48 <a class="magick-nav-item " href="../command-line-tools.html">Tools</a>
49 <a class="magick-nav-item " href="../command-line-options.html">Options</a>
50 <a class="magick-nav-item " href="api.html">Development</a>
cristya1890f02015-05-15 23:32:44 +000051 <a class="magick-nav-item " href="http://www.imagemagick.org/script/search.php">Search</a>
52 <a class="magick-nav-item pull-right" href="http://www.imagemagick.org/discourse-server/">Community</a>
cristy44443b92015-05-05 00:06:07 +000053 </nav>
54 </div>
55</div>
56<div class="container">
cristy4e638cd2015-05-07 16:47:40 +000057<div class="magick-header">
cristy82a2ff22015-05-12 16:41:32 +000058<p class="text-center"><a href="transform.html#AutoOrientImage">AutoOrientImage</a><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%20CropImageToTiles">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>
cristy06f63f22012-10-31 00:50:07 +000059
cristy44443b92015-05-05 00:06:07 +000060<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="AutoOrientImage">AutoOrientImage</a></h2>
cristy6f77f692011-02-15 15:31:39 +000061
cristy44443b92015-05-05 00:06:07 +000062<p>AutoOrientImage() adjusts an image so that its orientation is suitable for viewing (i.e. top-left orientation).</p>
63
64<p>The format of the AutoOrientImage method is:</p>
65
66<pre class="text">
67Image *AutoOrientImage(const Image *image,
68 const OrientationType orientation,ExceptionInfo *exception)
69</pre>
70
71<p>A description of each parameter follows:</p>
72
73<dd>
74</dd>
75
76<dd> </dd>
77<dl class="dl-horizontal">
78<dt>image</dt>
79<dd>The image. </dd>
80
81<dd> </dd>
82<dt>orientation</dt>
83<dd>Current image orientation. </dd>
84
85<dd> </dd>
86<dt>exception</dt>
87<dd>Return any errors or warnings in this structure. </dd>
88
89<dd> </dd>
90</dl>
cristy20398432011-08-11 01:31:50 +000091<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ChopImage">ChopImage</a></h2>
cristy20398432011-08-11 01:31:50 +000092
93<p>ChopImage() removes a region of an image and collapses the image to occupy the removed portion.</p>
94
95<p>The format of the ChopImage method is:</p>
96
cristy44443b92015-05-05 00:06:07 +000097<pre class="text">
98Image *ChopImage(const Image *image,const RectangleInfo *chop_info)
99 ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000100</pre>
101
102<p>A description of each parameter follows:</p>
103
cristy44443b92015-05-05 00:06:07 +0000104<dd>
105</dd>
cristy20398432011-08-11 01:31:50 +0000106
cristy44443b92015-05-05 00:06:07 +0000107<dd> </dd>
108<dl class="dl-horizontal">
109<dt>image</dt>
110<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000111
cristy44443b92015-05-05 00:06:07 +0000112<dd> </dd>
113<dt>chop_info</dt>
114<dd>Define the region of the image to chop. </dd>
cristy20398432011-08-11 01:31:50 +0000115
cristy44443b92015-05-05 00:06:07 +0000116<dd> </dd>
117<dt>exception</dt>
118<dd>return any errors or warnings in this structure. </dd>
119
120<dd> </dd>
121</dl>
cristy20398432011-08-11 01:31:50 +0000122<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="CropImage">CropImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000123
124<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>
125
126<p>The format of the CropImage method is:</p>
127
cristy44443b92015-05-05 00:06:07 +0000128<pre class="text">
129Image *CropImage(const Image *image,const RectangleInfo *geometry,
130 ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000131</pre>
132
133<p>A description of each parameter follows:</p>
134
cristy44443b92015-05-05 00:06:07 +0000135<dd>
136</dd>
cristy20398432011-08-11 01:31:50 +0000137
cristy44443b92015-05-05 00:06:07 +0000138<dd> </dd>
139<dl class="dl-horizontal">
140<dt>image</dt>
141<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000142
cristy44443b92015-05-05 00:06:07 +0000143<dd> </dd>
144<dt>geometry</dt>
145<dd>Define the region of the image to crop with members x, y, width, and height. </dd>
cristy20398432011-08-11 01:31:50 +0000146
cristy44443b92015-05-05 00:06:07 +0000147<dd> </dd>
148<dt>exception</dt>
149<dd>return any errors or warnings in this structure. </dd>
150
151<dd> </dd>
152</dl>
cristy20398432011-08-11 01:31:50 +0000153<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="CropImageToTiles">CropImageToTiles</a></h2>
cristy20398432011-08-11 01:31:50 +0000154
cristyeed6cb62012-01-28 19:38:34 +0000155<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 +0000156
cristyeed6cb62012-01-28 19:38:34 +0000157<p>Image *CropImageToTiles(const Image *image, const RectangleInfo *crop_geometry, ExceptionInfo *exception)</p>
cristy20398432011-08-11 01:31:50 +0000158
159<p>A description of each parameter follows:</p>
160
cristy44443b92015-05-05 00:06:07 +0000161<dd>
162</dd>
cristy20398432011-08-11 01:31:50 +0000163
cristy44443b92015-05-05 00:06:07 +0000164<dd> </dd>
165<dl class="dl-horizontal">
166<dt>image</dt>
167<dd>the image The transformed image is returned as this parameter. </dd>
cristy20398432011-08-11 01:31:50 +0000168
cristy44443b92015-05-05 00:06:07 +0000169<dd> </dd>
170<dt>crop_geometry</dt>
171<dd>A crop geometry string. </dd>
cristy20398432011-08-11 01:31:50 +0000172
cristy44443b92015-05-05 00:06:07 +0000173<dd> </dd>
174<dt>exception</dt>
175<dd>return any errors or warnings in this structure. </dd>
176
177<dd> </dd>
178</dl>
cristy20398432011-08-11 01:31:50 +0000179<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ExcerptImage">ExcerptImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000180
181<p>ExcerptImage() returns a excerpt of the image as defined by the geometry.</p>
182
183<p>The format of the ExcerptImage method is:</p>
184
cristy44443b92015-05-05 00:06:07 +0000185<pre class="text">
186Image *ExcerptImage(const Image *image,const RectangleInfo *geometry,
187 ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000188</pre>
189
190<p>A description of each parameter follows:</p>
191
cristy44443b92015-05-05 00:06:07 +0000192<dd>
193</dd>
cristy20398432011-08-11 01:31:50 +0000194
cristy44443b92015-05-05 00:06:07 +0000195<dd> </dd>
196<dl class="dl-horizontal">
197<dt>image</dt>
198<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000199
cristy44443b92015-05-05 00:06:07 +0000200<dd> </dd>
201<dt>geometry</dt>
202<dd>Define the region of the image to extend with members x, y, width, and height. </dd>
cristy20398432011-08-11 01:31:50 +0000203
cristy44443b92015-05-05 00:06:07 +0000204<dd> </dd>
205<dt>exception</dt>
206<dd>return any errors or warnings in this structure. </dd>
207
208<dd> </dd>
209</dl>
cristy20398432011-08-11 01:31:50 +0000210<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ExtentImage">ExtentImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000211
212<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>
213
214<p>The format of the ExtentImage method is:</p>
215
cristy44443b92015-05-05 00:06:07 +0000216<pre class="text">
217Image *ExtentImage(const Image *image,const RectangleInfo *geometry,
218 ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000219</pre>
220
221<p>A description of each parameter follows:</p>
222
cristy44443b92015-05-05 00:06:07 +0000223<dd>
224</dd>
cristy20398432011-08-11 01:31:50 +0000225
cristy44443b92015-05-05 00:06:07 +0000226<dd> </dd>
227<dl class="dl-horizontal">
228<dt>image</dt>
229<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000230
cristy44443b92015-05-05 00:06:07 +0000231<dd> </dd>
232<dt>geometry</dt>
233<dd>Define the region of the image to extend with members x, y, width, and height. </dd>
cristy20398432011-08-11 01:31:50 +0000234
cristy44443b92015-05-05 00:06:07 +0000235<dd> </dd>
236<dt>exception</dt>
237<dd>return any errors or warnings in this structure. </dd>
238
239<dd> </dd>
240</dl>
cristy20398432011-08-11 01:31:50 +0000241<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="FlipImage">FlipImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000242
243<p>FlipImage() creates a vertical mirror image by reflecting the pixels around the central x-axis.</p>
244
245<p>The format of the FlipImage method is:</p>
246
cristy44443b92015-05-05 00:06:07 +0000247<pre class="text">
248Image *FlipImage(const Image *image,ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000249</pre>
250
251<p>A description of each parameter follows:</p>
252
cristy44443b92015-05-05 00:06:07 +0000253<dd>
254</dd>
cristy20398432011-08-11 01:31:50 +0000255
cristy44443b92015-05-05 00:06:07 +0000256<dd> </dd>
257<dl class="dl-horizontal">
258<dt>image</dt>
259<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000260
cristy44443b92015-05-05 00:06:07 +0000261<dd> </dd>
262<dt>exception</dt>
263<dd>return any errors or warnings in this structure. </dd>
264
265<dd> </dd>
266</dl>
cristy20398432011-08-11 01:31:50 +0000267<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="FlopImage">FlopImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000268
269<p>FlopImage() creates a horizontal mirror image by reflecting the pixels around the central y-axis.</p>
270
271<p>The format of the FlopImage method is:</p>
272
cristy44443b92015-05-05 00:06:07 +0000273<pre class="text">
274Image *FlopImage(const Image *image,ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000275</pre>
276
277<p>A description of each parameter follows:</p>
278
cristy44443b92015-05-05 00:06:07 +0000279<dd>
280</dd>
cristy20398432011-08-11 01:31:50 +0000281
cristy44443b92015-05-05 00:06:07 +0000282<dd> </dd>
283<dl class="dl-horizontal">
284<dt>image</dt>
285<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000286
cristy44443b92015-05-05 00:06:07 +0000287<dd> </dd>
288<dt>exception</dt>
289<dd>return any errors or warnings in this structure. </dd>
290
291<dd> </dd>
292</dl>
cristy20398432011-08-11 01:31:50 +0000293<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="RollImage">RollImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000294
295<p>RollImage() offsets an image as defined by x_offset and y_offset.</p>
296
297<p>The format of the RollImage method is:</p>
298
cristy44443b92015-05-05 00:06:07 +0000299<pre class="text">
300Image *RollImage(const Image *image,const ssize_t x_offset,
301 const ssize_t y_offset,ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000302</pre>
303
304<p>A description of each parameter follows:</p>
305
cristy44443b92015-05-05 00:06:07 +0000306<dd>
307</dd>
cristy20398432011-08-11 01:31:50 +0000308
cristy44443b92015-05-05 00:06:07 +0000309<dd> </dd>
310<dl class="dl-horizontal">
311<dt>image</dt>
312<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000313
cristy44443b92015-05-05 00:06:07 +0000314<dd> </dd>
315<dt>x_offset</dt>
316<dd>the number of columns to roll in the horizontal direction. </dd>
cristy20398432011-08-11 01:31:50 +0000317
cristy44443b92015-05-05 00:06:07 +0000318<dd> </dd>
319<dt>y_offset</dt>
320<dd>the number of rows to roll in the vertical direction. </dd>
cristy20398432011-08-11 01:31:50 +0000321
cristy44443b92015-05-05 00:06:07 +0000322<dd> </dd>
323<dt>exception</dt>
324<dd>return any errors or warnings in this structure. </dd>
325
326<dd> </dd>
327</dl>
cristy20398432011-08-11 01:31:50 +0000328<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="ShaveImage">ShaveImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000329
330<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>
331
332<p>The format of the ShaveImage method is:</p>
333
cristy44443b92015-05-05 00:06:07 +0000334<pre class="text">
335Image *ShaveImage(const Image *image,const RectangleInfo *shave_info,
336 ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000337</pre>
338
339<p>A description of each parameter follows:</p>
340
cristy44443b92015-05-05 00:06:07 +0000341<dd>
342</dd>
cristy20398432011-08-11 01:31:50 +0000343
cristy44443b92015-05-05 00:06:07 +0000344<dd> </dd>
345<dl class="dl-horizontal">
346<dt>shave_image</dt>
347<dd>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. </dd>
cristy20398432011-08-11 01:31:50 +0000348
cristy44443b92015-05-05 00:06:07 +0000349<dd> </dd>
350<dt>image</dt>
351<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000352
cristy44443b92015-05-05 00:06:07 +0000353<dd> </dd>
354<dt>shave_info</dt>
355<dd>Specifies a pointer to a RectangleInfo which defines the region of the image to crop. </dd>
cristy20398432011-08-11 01:31:50 +0000356
cristy44443b92015-05-05 00:06:07 +0000357<dd> </dd>
358<dt>exception</dt>
359<dd>return any errors or warnings in this structure. </dd>
360
361<dd> </dd>
362</dl>
cristy20398432011-08-11 01:31:50 +0000363<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="SpliceImage">SpliceImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000364
365<p>SpliceImage() splices a solid color into the image as defined by the geometry.</p>
366
367<p>The format of the SpliceImage method is:</p>
368
cristy44443b92015-05-05 00:06:07 +0000369<pre class="text">
370Image *SpliceImage(const Image *image,const RectangleInfo *geometry,
371 ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000372</pre>
373
374<p>A description of each parameter follows:</p>
375
cristy44443b92015-05-05 00:06:07 +0000376<dd>
377</dd>
cristy20398432011-08-11 01:31:50 +0000378
cristy44443b92015-05-05 00:06:07 +0000379<dd> </dd>
380<dl class="dl-horizontal">
381<dt>image</dt>
382<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000383
cristy44443b92015-05-05 00:06:07 +0000384<dd> </dd>
385<dt>geometry</dt>
386<dd>Define the region of the image to splice with members x, y, width, and height. </dd>
cristy20398432011-08-11 01:31:50 +0000387
cristy44443b92015-05-05 00:06:07 +0000388<dd> </dd>
389<dt>exception</dt>
390<dd>return any errors or warnings in this structure. </dd>
391
392<dd> </dd>
393</dl>
cristy20398432011-08-11 01:31:50 +0000394<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransformImage">TransformImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000395
396<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>
397
398<p>This should only be used for single images.</p>
399
400<p>The format of the TransformImage method is:</p>
401
cristy44443b92015-05-05 00:06:07 +0000402<pre class="text">
403MagickBooleanType TransformImage(Image **image,const char *crop_geometry,
cristy82a2ff22015-05-12 16:41:32 +0000404 const char *image_geometry)
cristy20398432011-08-11 01:31:50 +0000405</pre>
406
407<p>A description of each parameter follows:</p>
408
cristy44443b92015-05-05 00:06:07 +0000409<dd>
410</dd>
cristy20398432011-08-11 01:31:50 +0000411
cristy44443b92015-05-05 00:06:07 +0000412<dd> </dd>
413<dl class="dl-horizontal">
414<dt>image</dt>
415<dd>the image The transformed image is returned as this parameter. </dd>
cristy20398432011-08-11 01:31:50 +0000416
cristy44443b92015-05-05 00:06:07 +0000417<dd> </dd>
418<dt>crop_geometry</dt>
419<dd>A crop geometry string. This geometry defines a subregion of the image to crop. </dd>
cristy20398432011-08-11 01:31:50 +0000420
cristy44443b92015-05-05 00:06:07 +0000421<dd> </dd>
422<dt>image_geometry</dt>
423<dd>An image geometry string. This geometry defines the final size of the image. </dd>
cristy20398432011-08-11 01:31:50 +0000424
cristy44443b92015-05-05 00:06:07 +0000425<dd> </dd>
426</dl>
cristy82a2ff22015-05-12 16:41:32 +0000427<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="to_CropImageToTiles">to CropImageToTiles</a></h2>
428
429<p>to CropImageToTiles() or ResizeImage(), as appropriate.</p>
430
cristy20398432011-08-11 01:31:50 +0000431<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransformImages">TransformImages</a></h2>
cristy20398432011-08-11 01:31:50 +0000432
433<p>TransformImages() calls TransformImage() on each image of a sequence.</p>
434
435<p>The format of the TransformImage method is:</p>
436
cristy44443b92015-05-05 00:06:07 +0000437<pre class="text">
438MagickBooleanType TransformImages(Image **image,
cristy82a2ff22015-05-12 16:41:32 +0000439 const char *crop_geometry,const char *image_geometry)
cristy20398432011-08-11 01:31:50 +0000440</pre>
441
442<p>A description of each parameter follows:</p>
443
cristy44443b92015-05-05 00:06:07 +0000444<dd>
445</dd>
cristy20398432011-08-11 01:31:50 +0000446
cristy44443b92015-05-05 00:06:07 +0000447<dd> </dd>
448<dl class="dl-horizontal">
449<dt>image</dt>
450<dd>the image The transformed image is returned as this parameter. </dd>
cristy20398432011-08-11 01:31:50 +0000451
cristy44443b92015-05-05 00:06:07 +0000452<dd> </dd>
453<dt>crop_geometry</dt>
454<dd>A crop geometry string. This geometry defines a subregion of the image to crop. </dd>
cristy20398432011-08-11 01:31:50 +0000455
cristy44443b92015-05-05 00:06:07 +0000456<dd> </dd>
457<dt>image_geometry</dt>
458<dd>An image geometry string. This geometry defines the final size of the image. </dd>
459
cristy44443b92015-05-05 00:06:07 +0000460<dd> </dd>
461</dl>
cristy20398432011-08-11 01:31:50 +0000462<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransposeImage">TransposeImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000463
464<p>TransposeImage() creates a horizontal mirror image by reflecting the pixels around the central y-axis while rotating them by 90 degrees.</p>
465
466<p>The format of the TransposeImage method is:</p>
467
cristy44443b92015-05-05 00:06:07 +0000468<pre class="text">
469Image *TransposeImage(const Image *image,ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000470</pre>
471
472<p>A description of each parameter follows:</p>
473
cristy44443b92015-05-05 00:06:07 +0000474<dd>
475</dd>
cristy20398432011-08-11 01:31:50 +0000476
cristy44443b92015-05-05 00:06:07 +0000477<dd> </dd>
478<dl class="dl-horizontal">
479<dt>image</dt>
480<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000481
cristy44443b92015-05-05 00:06:07 +0000482<dd> </dd>
483<dt>exception</dt>
484<dd>return any errors or warnings in this structure. </dd>
485
486<dd> </dd>
487</dl>
cristy20398432011-08-11 01:31:50 +0000488<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TransverseImage">TransverseImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000489
490<p>TransverseImage() creates a vertical mirror image by reflecting the pixels around the central x-axis while rotating them by 270 degrees.</p>
491
492<p>The format of the TransverseImage method is:</p>
493
cristy44443b92015-05-05 00:06:07 +0000494<pre class="text">
495Image *TransverseImage(const Image *image,ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000496</pre>
497
498<p>A description of each parameter follows:</p>
499
cristy44443b92015-05-05 00:06:07 +0000500<dd>
501</dd>
cristy20398432011-08-11 01:31:50 +0000502
cristy44443b92015-05-05 00:06:07 +0000503<dd> </dd>
504<dl class="dl-horizontal">
505<dt>image</dt>
506<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000507
cristy44443b92015-05-05 00:06:07 +0000508<dd> </dd>
509<dt>exception</dt>
510<dd>return any errors or warnings in this structure. </dd>
511
512<dd> </dd>
513</dl>
cristy20398432011-08-11 01:31:50 +0000514<h2><a href="http://www.imagemagick.org/api/MagickCore/transform_8c.html" id="TrimImage">TrimImage</a></h2>
cristy20398432011-08-11 01:31:50 +0000515
516<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>
517
518<p>The format of the TrimImage method is:</p>
519
cristy44443b92015-05-05 00:06:07 +0000520<pre class="text">
521Image *TrimImage(const Image *image,ExceptionInfo *exception)
cristy20398432011-08-11 01:31:50 +0000522</pre>
523
524<p>A description of each parameter follows:</p>
525
cristy44443b92015-05-05 00:06:07 +0000526<dd>
527</dd>
cristy20398432011-08-11 01:31:50 +0000528
cristy44443b92015-05-05 00:06:07 +0000529<dd> </dd>
530<dl class="dl-horizontal">
531<dt>image</dt>
532<dd>the image. </dd>
cristy20398432011-08-11 01:31:50 +0000533
cristy44443b92015-05-05 00:06:07 +0000534<dd> </dd>
535<dt>exception</dt>
536<dd>return any errors or warnings in this structure. </dd>
cristy06f63f22012-10-31 00:50:07 +0000537
cristy44443b92015-05-05 00:06:07 +0000538<dd> </dd>
539</dl>
cristy06f63f22012-10-31 00:50:07 +0000540</div>
cristy44443b92015-05-05 00:06:07 +0000541 <footer class="magick-footer">
cristy82a2ff22015-05-12 16:41:32 +0000542 <div class="magick-nav-item pull-left">
cristy38185362015-05-07 20:09:56 +0000543 <a href="../support.html">Donate</a>
cristy44443b92015-05-05 00:06:07 +0000544 </div>
cristy38185362015-05-07 20:09:56 +0000545 <p><a href="../sitemap.html">Sitemap</a>
546 <a href="../links.html">Related</a>
cristy44443b92015-05-05 00:06:07 +0000547 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Image Studio</a>
548 <a href="http://jqmagick.imagemagick.org/">JqMagick</a>
549 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
550</p>
551 <p><a href="transform.html#">Back to top</a>
cristyabed55c2015-05-06 17:07:00 +0000552 <a href="http://www.imagemagick.org/script/contact.php">Contact Us</a></p>
cristya1890f02015-05-15 23:32:44 +0000553 <p><small>© 1999-2015 ImageMagick Studio LLC</small></p>
cristy44443b92015-05-05 00:06:07 +0000554 </footer>
555</div><!-- /.container -->
cristy06f63f22012-10-31 00:50:07 +0000556
cristy44443b92015-05-05 00:06:07 +0000557 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
cristy2f563d42015-05-06 23:36:51 +0000558 <script src="../js/bootstrap.min.js"></script>
cristy44443b92015-05-05 00:06:07 +0000559 <script type="text/javascript">
cristy82a2ff22015-05-12 16:41:32 +0000560 /* <![CDATA[ */
cristy44443b92015-05-05 00:06:07 +0000561 (function() {
562 var s = document.createElement('offline-script'), t = document.getElementsByTagName('offline-script')[0];
563 s.type = 'text/javascript';
564 s.async = true;
565 s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
566 t.parentNode.insertBefore(s, t);
567 })();
cristy82a2ff22015-05-12 16:41:32 +0000568 /* ]]> */
cristy44443b92015-05-05 00:06:07 +0000569 </script>
cristy44cbd482013-08-04 20:53:36 +0000570</div>
cristy06f63f22012-10-31 00:50:07 +0000571</body>
cristy5a367e42015-05-05 12:39:18 +0000572</html>