Debian Codegraph @

www/api/image.html

raw symbols ◀ ▶ SCIP
4 Debian patches touch this file
1
2
3
4
•5 <!DOCTYPE html>
6 <html lang="en" data-bs-theme="dark">
7 <head>
8 <script src="../assets/color-modes.js" ></script>
9 <meta charset="utf-8" />
10 <meta name="viewport" content="width=device-width, initial-scale=1" />
11 <title>ImageMagick – MagickCore, C API: Image Methods</title>
12 <meta name="keywords" content="MagickCore, C API: Image Methods, Image Processing, Digital Image Editing, Image Conversion, Open-Source Software, Image Manipulation, Command-Line Image Tools" />
13 <meta name="description" content="ImageMagick is a powerful, open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for web developers, graphic designers, and researchers, it offers versatile tools for image processing, including batch processing, format conversion, and complex image transformations." />
14 <meta name="application-name" content="ImageMagick" />
15 <meta name="application-url" content="https://imagemagick.org" />
16 <meta name="copyright" content="Copyright (c) 1999 ImageMagick Studio LLC" />
17 <meta itemprop='url' content='../../' />
18 <meta itemprop='title' content='ImageMagick' />
19 <meta itemprop='description' content="ImageMagick is a powerful, open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for web developers, graphic designers, and researchers, it offers versatile tools for image processing, including batch processing, format conversion, and complex image transformations." />
20 <meta property='og:url' content='../../' />
21 <meta property='og:name' content='ImageMagick' />
22 <meta property='og:image' content='../../../../../../../../images/logo.png' />
23 <meta property='og:type' content='website' />
24 <meta property='og:site_name' content='ImageMagick' />
25 <meta property='og:description' content="ImageMagick is a powerful, open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for web developers, graphic designers, and researchers, it offers versatile tools for image processing, including batch processing, format conversion, and complex image transformations." />
26 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
27 <link type="images/png" sizes="64x64" href="../../../../../../../images/wand.png" rel="icon" />
28 <link type="images/icon" sizes="16x16" href="../../../../../../../images/wand.ico" rel="shortcut icon" />
29 <link href="image.html" rel="canonical" />
30 <link href="../assets/bootstrap.min.css" rel="stylesheet" />
31 </head>
32 <body>
33 <svg xmlns="http://www.w3.org/2000/svg" class="d-none">
34 <symbol id="check2" viewBox="0 0 16 16">
35 <path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/>
36 </symbol>
37 <symbol id="circle-half" viewBox="0 0 16 16">
38 <path d="M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"/>
39 </symbol>
40 <symbol id="moon-stars-fill" viewBox="0 0 16 16">
41 <path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"/>
42 <path d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"/>
43 </symbol>
44 <symbol id="sun-fill" viewBox="0 0 16 16">
45 <path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"/>
46 </symbol>
47 </svg>
48 <div class="dropdown position-fixed bottom-0 end-0 mb-3 me-3 bd-mode-toggle">
49 <button class="btn btn-bd-secondary py-2 dropdown-toggle d-flex align-items-center"
50 id="bd-theme"
51 type="button"
52 aria-expanded="false"
53 data-bs-toggle="dropdown"
54 aria-label="Toggle theme (auto)">
55 <svg class="bi my-1 theme-icon-active" width="1em" height="1em"><use href="#circle-half"></use></svg>
56 <span class="visually-hidden" id="bd-theme-text">Toggle theme</span>
57 </button>
58 <ul class="dropdown-menu dropdown-menu-end shadow" aria-labelledby="bd-theme-text">
59 <li>
60 <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false">
61 <svg class="bi me-2 opacity-50" width="1em" height="1em"><use href="#sun-fill"></use></svg>
62 Light
63 <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
64 </button>
65 </li>
66 <li>
67 <button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="dark" aria-pressed="false">
68 <svg class="bi me-2 opacity-50" width="1em" height="1em"><use href="#moon-stars-fill"></use></svg>
69 Dark
70 <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
71 </button>
72 </li>
73 <li>
74 <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="auto" aria-pressed="true">
75 <svg class="bi me-2 opacity-50" width="1em" height="1em"><use href="#circle-half"></use></svg>
76 Auto
77 <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
78 </button>
79 </li>
80 </ul>
81 </div>
82 <svg xmlns="http://www.w3.org/2000/svg" class="d-none">
83 <symbol id="arrow-right-circle" viewBox="0 0 16 16">
84 <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z"/>
85 </symbol>
86 <symbol id="color-mode" viewBox="0 0 118 94">
87 <title>Color Modes</title>
88 <path fill-rule="evenodd" clip-rule="evenodd" d="M24.509 0c-6.733 0-11.715 5.893-11.492 12.284.214 6.14-.064 14.092-2.066 20.577C8.943 39.365 5.547 43.485 0 44.014v5.972c5.547.529 8.943 4.649 10.951 11.153 2.002 6.485 2.28 14.437 2.066 20.577C12.794 88.106 17.776 94 24.51 94H93.5c6.733 0 11.714-5.893 11.491-12.284-.214-6.14.064-14.092 2.066-20.577 2.009-6.504 5.396-10.624 10.943-11.153v-5.972c-5.547-.529-8.934-4.649-10.943-11.153-2.002-6.484-2.28-14.437-2.066-20.577C105.214 5.894 100.233 0 93.5 0H24.508zM80 57.863C80 66.663 73.436 72 62.543 72H44a2 2 0 01-2-2V24a2 2 0 012-2h18.437c9.083 0 15.044 4.92 15.044 12.474 0 5.302-4.01 10.049-9.119 10.88v.277C75.317 46.394 80 51.21 80 57.863zM60.521 28.34H49.948v14.934h8.905c6.884 0 10.68-2.772 10.68-7.727 0-4.643-3.264-7.207-9.012-7.207zM49.948 49.2v16.458H60.91c7.167 0 10.964-2.876 10.964-8.281 0-5.406-3.903-8.178-11.425-8.178H49.948z"></path>
89 </symbol>
90 </svg>
91 <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
92 <div class="container-fluid">
93 <a class="navbar-brand" href="../index.html"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../../../../../../../images/wand.ico"/></a>
94 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#magick-navbars" aria-controls="magick-navbars" aria-expanded="false" aria-label="Toggle navigation">
95 <span class="navbar-toggler-icon"></span>
96 </button>
97
98 <div class="collapse navbar-collapse" id="magick-navbars">
99 <ul class="navbar-nav me-auto mb-2 mb-md-0">
100 <li class="nav-item">
101 <a class="nav-link " href="../www/download.html">Download</a>
102 </li>
103 <li class="nav-item">
104 <a class="nav-link " href="../www/command-line-tools.html">Tools</a>
105 </li>
106 <li class="nav-item">
107 <a class="nav-link " href="../www/command-line-processing.html">CLI</a>
108 </li>
109 <li class="nav-item">
110 <a class="nav-link " href="../www/develop.html">Develop</a>
111 </li>
112 <li class="nav-item">
113 <a class="nav-link" target="_blank" href="https://github.com/ImageMagick/ImageMagick/discussions">Community</a>
114 </li>
115 <li class="nav-item">
•116
117 </li>
118 </ul>
•119 </div>
120 </div>
121 </nav>
122
123 <div class="col-lg-8 mx-auto p-4 py-md-5 text-body-secondary">
124 <header class="d-flex align-items-center pb-3 mb-5 border-bottom">
125 <a href="../index.html" class="d-flex align-items-center text-decoration-none">
126 <h1 class="mt-5 fs-3">MagickCore, C API: Image Methods</h1>
127 </a>
128 </header>
129
130 <main class="container">
131 <h1 class="text-center">Image</h1>
132 <div class="btn-group">
133 <button class="btn btn-secondary dropdown-toggle" type="button" id="defaultDropdown" data-bs-toggle="dropdown" data-bs-auto-close="true" aria-expanded="false">
134 Select API Method
135 </button>
136 <ul class="dropdown-menu pre-scrollable" aria-labelledby="defaultDropdown">
137 <li><a href="#AcquireImage">AcquireImage</a></li>
138 <li><a href="#AcquireImageInfo">AcquireImageInfo</a></li>
139 <li><a href="#AcquireNextImage">AcquireNextImage</a></li>
140 <li><a href="#AppendImages">AppendImages</a></li>
141 <li><a href="#CatchImageException">CatchImageException</a></li>
142 <li><a href="#ClipImagePath">ClipImagePath</a></li>
143 <li><a href="#CloneImage">CloneImage</a></li>
144 <li><a href="#CloneImageInfo">CloneImageInfo</a></li>
145 <li><a href="#CopyImagePixels">CopyImagePixels</a></li>
146 <li><a href="#DestroyImage">DestroyImage</a></li>
147 <li><a href="#DestroyImageInfo">DestroyImageInfo</a></li>
148 <li><a href="#GetImageInfo">GetImageInfo</a></li>
149 <li><a href="#GetImageInfoFile">GetImageInfoFile</a></li>
150 <li><a href="#GetImageMask">GetImageMask</a></li>
151 <li><a href="#GetImageVirtualPixelMethod">GetImageVirtualPixelMethod</a></li>
152 <li><a href="#InterpretImageFilename">InterpretImageFilename</a></li>
153 <li><a href="#IsHighDynamicRangeImage">IsHighDynamicRangeImage</a></li>
154 <li><a href="#IsImageObject">IsImageObject</a></li>
155 <li><a href="#IsTaintImage">IsTaintImage</a></li>
156 <li><a href="#ModifyImage">ModifyImage</a></li>
157 <li><a href="#NewMagickImage">NewMagickImage</a></li>
158 <li><a href="#ReferenceImage">ReferenceImage</a></li>
159 <li><a href="#ResetImagePage">ResetImagePage</a></li>
160 <li><a href="#ResetImagePixels">ResetImagePixels</a></li>
161 <li><a href="#SetImageAlpha">SetImageAlpha</a></li>
162 <li><a href="#SetImageBackgroundColor">SetImageBackgroundColor</a></li>
163 <li><a href="#SetImageChannelMask">SetImageChannelMask</a></li>
164 <li><a href="#SetImageColor">SetImageColor</a></li>
165 <li><a href="#SetImageStorageClass">SetImageStorageClass</a></li>
166 <li><a href="#SetImageExtent">SetImageExtent</a></li>
167 <li><a href="#SetImageInfoBlob">SetImageInfoBlob</a></li>
168 <li><a href="#SetImageInfoCustomStream">SetImageInfoCustomStream</a></li>
169 <li><a href="#SetImageInfoFile">SetImageInfoFile</a></li>
170 <li><a href="#SetImageMask">SetImageMask</a></li>
171 <li><a href="#SetImageRegionMask">SetImageRegionMask</a></li>
172 <li><a href="#SetImageVirtualPixelMethod">SetImageVirtualPixelMethod</a></li>
173 <li><a href="#SmushImages">SmushImages</a></li>
174 <li><a href="#StripImage">StripImage</a></li>
175 </ul>
176 </div>
177 <br/>
178 <br/>
179 <div class="magick-header">
180 <h2><a href="../../api/MagickCore/image_8c.html" id="AcquireImage">AcquireImage</a></h2>
181
182 <p>AcquireImage() returns a pointer to an image structure initialized to default values.</p>
183
184 <p>The format of the AcquireImage method is:</p>
185
186 <pre class="bg-light text-dark mx-4"><samp>Image *AcquireImage(const ImageInfo *image_info,ExceptionInfo *exception)
187 </samp></pre>
188
189 <p>A description of each parameter follows:</p>
190
191 <dd>
192 </dd>
193
194 <dd> </dd>
195 <dl class="dl-horizontal">
196 <dt>image_info</dt>
197 <dd>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others. </dd>
198
199 <dd> </dd>
200 <dt>exception</dt>
201 <dd>return any errors or warnings in this structure. </dd>
202
203 <dd> </dd>
204 </dl>
205 <h2><a href="../../api/MagickCore/image_8c.html" id="AcquireImageInfo">AcquireImageInfo</a></h2>
206
207 <p>AcquireImageInfo() allocates the ImageInfo structure.</p>
208
209 <p>The format of the AcquireImageInfo method is:</p>
210
211 <pre class="bg-light text-dark mx-4"><samp>ImageInfo *AcquireImageInfo(void)
212 </samp></pre>
213
214 <h2><a href="../../api/MagickCore/image_8c.html" id="AcquireNextImage">AcquireNextImage</a></h2>
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>
217
218 <p>The format of the AcquireNextImage method is:</p>
219
220 <pre class="bg-light text-dark mx-4"><samp>void AcquireNextImage(const ImageInfo *image_info,Image *image,
221 ExceptionInfo *exception)
222 </samp></pre>
223
224 <p>A description of each parameter follows:</p>
225
226 <dd>
227 </dd>
228
229 <dd> </dd>
230 <dl class="dl-horizontal">
231 <dt>image_info</dt>
232 <dd>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others. </dd>
233
234 <dd> </dd>
235 <dt>image</dt>
236 <dd>the image. </dd>
237
238 <dd> </dd>
239 <dt>exception</dt>
240 <dd>return any errors or warnings in this structure. </dd>
241
242 <dd> </dd>
243 </dl>
244 <h2><a href="../../api/MagickCore/image_8c.html" id="AppendImages">AppendImages</a></h2>
245
246 <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>
247
248 <p>The current gravity setting effects how the image is justified in the final image.</p>
249
250 <p>The format of the AppendImages method is:</p>
251
252 <pre class="bg-light text-dark mx-4"><samp>Image *AppendImages(const Image *images,const MagickBooleanType stack,
253 ExceptionInfo *exception)
254 </samp></pre>
255
256 <p>A description of each parameter follows:</p>
257
258 <dd>
259 </dd>
260
261 <dd> </dd>
262 <dl class="dl-horizontal">
263 <dt>images</dt>
264 <dd>the image sequence. </dd>
265
266 <dd> </dd>
267 <dt>stack</dt>
268 <dd>A value other than 0 stacks the images top-to-bottom. </dd>
269
270 <dd> </dd>
271 <dt>exception</dt>
272 <dd>return any errors or warnings in this structure. </dd>
273
274 <dd> </dd>
275 </dl>
276 <h2><a href="../../api/MagickCore/image_8c.html" id="CatchImageException">CatchImageException</a></h2>
277
278 <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>
279
280 <p>The format of the CatchImageException method is:</p>
281
282 <pre class="bg-light text-dark mx-4"><samp>ExceptionType CatchImageException(Image *image)
283 </samp></pre>
284
285 <p>A description of each parameter follows:</p>
286
287 <dd>
288 </dd>
289
290 <dd> </dd>
291 <dl class="dl-horizontal">
292 <dt>image</dt>
293 <dd>An image sequence. </dd>
294
295 <dd> </dd>
296 </dl>
297 <h2><a href="../../api/MagickCore/image_8c.html" id="ClipImagePath">ClipImagePath</a></h2>
298
299 <p>ClipImagePath() sets the image clip mask based any clipping path information if it exists.</p>
300
301 <p>The format of the ClipImagePath method is:</p>
302
303 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType ClipImagePath(Image *image,const char *pathname,
304 const MagickBooleanType inside,ExceptionInfo *exception)
305 </samp></pre>
306
307 <p>A description of each parameter follows:</p>
308
309 <dd>
310 </dd>
311
312 <dd> </dd>
313 <dl class="dl-horizontal">
314 <dt>image</dt>
315 <dd>the image. </dd>
316
317 <dd> </dd>
318 <dt>pathname</dt>
319 <dd>name of clipping path resource. If name is preceded by #, use clipping path numbered by name. </dd>
320
321 <dd> </dd>
322 <dt>inside</dt>
323 <dd>if non-zero, later operations take effect inside clipping path. Otherwise later operations take effect outside clipping path. </dd>
324
325 <dd> </dd>
326 <dt>exception</dt>
327 <dd>return any errors or warnings in this structure. </dd>
328
329 <dd> </dd>
330 </dl>
331 <h2><a href="../../api/MagickCore/image_8c.html" id="CloneImage">CloneImage</a></h2>
332
333 <p>CloneImage() copies an image and returns the copy as a new image object.</p>
334
335 <p>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>
336
337 <p>The format of the CloneImage method is:</p>
338
339 <pre class="bg-light text-dark mx-4"><samp>Image *CloneImage(const Image *image,const size_t columns,
340 const size_t rows,const MagickBooleanType orphan,
341 ExceptionInfo *exception)
342 </samp></pre>
343
344 <p>A description of each parameter follows:</p>
345
346 <dd>
347 </dd>
348
349 <dd> </dd>
350 <dl class="dl-horizontal">
351 <dt>image</dt>
352 <dd>the image. </dd>
353
354 <dd> </dd>
355 <dt>columns</dt>
356 <dd>the number of columns in the cloned image. </dd>
357
358 <dd> </dd>
359 <dt>rows</dt>
360 <dd>the number of rows in the cloned image. </dd>
361
362 <dd> </dd>
363 <dt>detach</dt>
364 <dd> With a value other than 0, the cloned image is detached from its parent I/O stream. </dd>
365
366 <dd> </dd>
367 <dt>exception</dt>
368 <dd>return any errors or warnings in this structure. </dd>
369
370 <dd> </dd>
371 </dl>
372 <h2><a href="../../api/MagickCore/image_8c.html" id="CloneImageInfo">CloneImageInfo</a></h2>
373
374 <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>
375
376 <p>The format of the CloneImageInfo method is:</p>
377
378 <pre class="bg-light text-dark mx-4"><samp>ImageInfo *CloneImageInfo(const ImageInfo *image_info)
379 </samp></pre>
380
381 <p>A description of each parameter follows:</p>
382
383 <dd>
384 </dd>
385
386 <dd> </dd>
387 <dl class="dl-horizontal">
388 <dt>image_info</dt>
389 <dd>the image info. </dd>
390
391 <dd> </dd>
392 </dl>
393 <h2><a href="../../api/MagickCore/image_8c.html" id="CopyImagePixels">CopyImagePixels</a></h2>
394
395 <p>CopyImagePixels() copies pixels from the source image as defined by the geometry the destination image at the specified offset.</p>
396
397 <p>The format of the CopyImagePixels method is:</p>
398
399 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType CopyImagePixels(Image *image,const Image *source_image,
400 const RectangleInfo *geometry,const OffsetInfo *offset,
401 ExceptionInfo *exception)
402 </samp></pre>
403
404 <p>A description of each parameter follows:</p>
405
406 <dd>
407 </dd>
408
409 <dd> </dd>
410 <dl class="dl-horizontal">
411 <dt>image</dt>
412 <dd>the destination image. </dd>
413
414 <dd> </dd>
415 <dt>source_image</dt>
416 <dd>the source image. </dd>
417
418 <dd> </dd>
419 <dt>geometry</dt>
420 <dd>define the dimensions of the source pixel rectangle. </dd>
421
422 <dd> </dd>
423 <dt>offset</dt>
424 <dd>define the offset in the destination image. </dd>
425
426 <dd> </dd>
427 <dt>exception</dt>
428 <dd>return any errors or warnings in this structure. </dd>
429
430 <dd> </dd>
431 </dl>
432 <h2><a href="../../api/MagickCore/image_8c.html" id="DestroyImage">DestroyImage</a></h2>
433
434 <p>DestroyImage() dereferences an image, deallocating memory associated with the image if the reference count becomes zero.</p>
435
436 <p>The format of the DestroyImage method is:</p>
437
438 <pre class="bg-light text-dark mx-4"><samp>Image *DestroyImage(Image *image)
439 </samp></pre>
440
441 <p>A description of each parameter follows:</p>
442
443 <dd>
444 </dd>
445
446 <dd> </dd>
447 <dl class="dl-horizontal">
448 <dt>image</dt>
449 <dd>the image. </dd>
450
451 <dd> </dd>
452 </dl>
453 <h2><a href="../../api/MagickCore/image_8c.html" id="DestroyImageInfo">DestroyImageInfo</a></h2>
454
455 <p>DestroyImageInfo() deallocates memory associated with an ImageInfo structure.</p>
456
457 <p>The format of the DestroyImageInfo method is:</p>
458
459 <pre class="bg-light text-dark mx-4"><samp>ImageInfo *DestroyImageInfo(ImageInfo *image_info)
460 </samp></pre>
461
462 <p>A description of each parameter follows:</p>
463
464 <dd>
465 </dd>
466
467 <dd> </dd>
468 <dl class="dl-horizontal">
469 <dt>image_info</dt>
470 <dd>the image info. </dd>
471
472 <dd> </dd>
473 </dl>
474 <h2><a href="../../api/MagickCore/image_8c.html" id="GetImageInfo">GetImageInfo</a></h2>
475
476 <p>GetImageInfo() initializes image_info to default values.</p>
477
478 <p>The format of the GetImageInfo method is:</p>
479
480 <pre class="bg-light text-dark mx-4"><samp>void GetImageInfo(ImageInfo *image_info)
481 </samp></pre>
482
483 <p>A description of each parameter follows:</p>
484
485 <dd>
486 </dd>
487
488 <dd> </dd>
489 <dl class="dl-horizontal">
490 <dt>image_info</dt>
491 <dd>the image info. </dd>
492
493 <dd> </dd>
494 </dl>
495 <h2><a href="../../api/MagickCore/image_8c.html" id="GetImageInfoFile">GetImageInfoFile</a></h2>
496
497 <p>GetImageInfoFile() returns the image info file member.</p>
498
499 <p>The format of the GetImageInfoFile method is:</p>
500
501 <pre class="bg-light text-dark mx-4"><samp>FILE *GetImageInfoFile(const ImageInfo *image_info)
502 </samp></pre>
503
504 <p>A description of each parameter follows:</p>
505
506 <dd>
507 </dd>
508
509 <dd> </dd>
510 <dl class="dl-horizontal">
511 <dt>image_info</dt>
512 <dd>the image info. </dd>
513
514 <dd> </dd>
515 </dl>
516 <h2><a href="../../api/MagickCore/image_8c.html" id="GetImageMask">GetImageMask</a></h2>
517
518 <p>GetImageMask() returns the mask associated with the image.</p>
519
520 <p>The format of the GetImageMask method is:</p>
521
522 <pre class="bg-light text-dark mx-4"><samp>Image *GetImageMask(const Image *image,const PixelMask type,
523 ExceptionInfo *exception)
524 </samp></pre>
525
526 <p>A description of each parameter follows:</p>
527
528 <dd>
529 </dd>
530
531 <dd> </dd>
532 <dl class="dl-horizontal">
533 <dt>image</dt>
534 <dd>the image. </dd>
535
536 <dd> </dd>
537 <dt>type</dt>
538 <dd>the mask type, ReadPixelMask or WritePixelMask. </dd>
539
540 <dd> </dd>
541 </dl>
542 <h2><a href="../../api/MagickCore/image_8c.html" id="GetImageVirtualPixelMethod">GetImageVirtualPixelMethod</a></h2>
543
544 <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>
545
546 <p>The format of the GetImageVirtualPixelMethod() method is:</p>
547
548 <pre class="bg-light text-dark mx-4"><samp>VirtualPixelMethod GetImageVirtualPixelMethod(const Image *image)
549 </samp></pre>
550
551 <p>A description of each parameter follows:</p>
552
553 <dd>
554 </dd>
555
556 <dd> </dd>
557 <dl class="dl-horizontal">
558 <dt>image</dt>
559 <dd>the image. </dd>
560
561 <dd> </dd>
562 </dl>
563 <h2><a href="../../api/MagickCore/image_8c.html" id="InterpretImageFilename">InterpretImageFilename</a></h2>
564
565 <p>InterpretImageFilename() interprets embedded characters in an image filename. The filename length is returned.</p>
566
567 <p>The format of the InterpretImageFilename method is:</p>
568
569 <pre class="bg-light text-dark mx-4"><samp>size_t InterpretImageFilename(const ImageInfo *image_info,Image *image,
570 const char *format,int value,char *filename,ExceptionInfo *exception)
571 </samp></pre>
572
573 <p>A description of each parameter follows.</p>
574
575 <dt>image_info</dt>
576 <p>the image info..</p>
577
578 <dt>image</dt>
579 <p>the image.</p>
580
581 <dt>format</dt>
582 <p>A filename describing the format to use to write the numeric argument. Only the first numeric format identifier is replaced.</p>
583
584 <dt>value</dt>
585 <p>Numeric value to substitute into format filename.</p>
586
587 <dt>filename</dt>
588 <p>return the formatted filename in this character buffer.</p>
589
590 <dt>exception</dt>
591 <p>return any errors or warnings in this structure.</p>
592
593 <h2><a href="../../api/MagickCore/image_8c.html" id="IsHighDynamicRangeImage">IsHighDynamicRangeImage</a></h2>
594
595 <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>
596
597 <p>The format of the IsHighDynamicRangeImage method is:</p>
598
599 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType IsHighDynamicRangeImage(const Image *image,
600 ExceptionInfo *exception)
601 </samp></pre>
602
603 <p>A description of each parameter follows:</p>
604
605 <dd>
606 </dd>
607
608 <dd> </dd>
609 <dl class="dl-horizontal">
610 <dt>image</dt>
611 <dd>the image. </dd>
612
613 <dd> </dd>
614 <dt>exception</dt>
615 <dd>return any errors or warnings in this structure. </dd>
616
617 <dd> </dd>
618 </dl>
619 <h2><a href="../../api/MagickCore/image_8c.html" id="IsImageObject">IsImageObject</a></h2>
620
621 <p>IsImageObject() returns MagickTrue if the image sequence contains a valid set of image objects.</p>
622
623 <p>The format of the IsImageObject method is:</p>
624
625 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType IsImageObject(const Image *image)
626 </samp></pre>
627
628 <p>A description of each parameter follows:</p>
629
630 <dd>
631 </dd>
632
633 <dd> </dd>
634 <dl class="dl-horizontal">
635 <dt>image</dt>
636 <dd>the image. </dd>
637
638 <dd> </dd>
639 </dl>
640 <h2><a href="../../api/MagickCore/image_8c.html" id="IsTaintImage">IsTaintImage</a></h2>
641
642 <p>IsTaintImage() returns MagickTrue any pixel in the image has been altered since it was first constituted.</p>
643
644 <p>The format of the IsTaintImage method is:</p>
645
646 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType IsTaintImage(const Image *image)
647 </samp></pre>
648
649 <p>A description of each parameter follows:</p>
650
651 <dd>
652 </dd>
653
654 <dd> </dd>
655 <dl class="dl-horizontal">
656 <dt>image</dt>
657 <dd>the image. </dd>
658
659 <dd> </dd>
660 </dl>
661 <h2><a href="../../api/MagickCore/image_8c.html" id="ModifyImage">ModifyImage</a></h2>
662
663 <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>
664
665 <p>The format of the ModifyImage method is:</p>
666
667 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType ModifyImage(Image *image,ExceptionInfo *exception)
668 </samp></pre>
669
670 <p>A description of each parameter follows:</p>
671
672 <dd>
673 </dd>
674
675 <dd> </dd>
676 <dl class="dl-horizontal">
677 <dt>image</dt>
678 <dd>the image. </dd>
679
680 <dd> </dd>
681 <dt>exception</dt>
682 <dd>return any errors or warnings in this structure. </dd>
683
684 <dd> </dd>
685 </dl>
686 <h2><a href="../../api/MagickCore/image_8c.html" id="NewMagickImage">NewMagickImage</a></h2>
687
688 <p>NewMagickImage() creates a blank image canvas of the specified size and background color.</p>
689
690 <p>The format of the NewMagickImage method is:</p>
691
692 <pre class="bg-light text-dark mx-4"><samp>Image *NewMagickImage(const ImageInfo *image_info,const size_t width,
693 const size_t height,const PixelInfo *background,
694 ExceptionInfo *exception)
695 </samp></pre>
696
697 <p>A description of each parameter follows:</p>
698
699 <dd>
700 </dd>
701
702 <dd> </dd>
703 <dl class="dl-horizontal">
704 <dt>image</dt>
705 <dd>the image. </dd>
706
707 <dd> </dd>
708 <dt>width</dt>
709 <dd>the image width. </dd>
710
711 <dd> </dd>
712 <dt>height</dt>
713 <dd>the image height. </dd>
714
715 <dd> </dd>
716 <dt>background</dt>
717 <dd>the image color. </dd>
718
719 <dd> </dd>
720 <dt>exception</dt>
721 <dd>return any errors or warnings in this structure. </dd>
722
723 <dd> </dd>
724 </dl>
725 <h2><a href="../../api/MagickCore/image_8c.html" id="ReferenceImage">ReferenceImage</a></h2>
726
727 <p>ReferenceImage() increments the reference count associated with an image returning a pointer to the image.</p>
728
729 <p>The format of the ReferenceImage method is:</p>
730
731 <pre class="bg-light text-dark mx-4"><samp>Image *ReferenceImage(Image *image)
732 </samp></pre>
733
734 <p>A description of each parameter follows:</p>
735
736 <dd>
737 </dd>
738
739 <dd> </dd>
740 <dl class="dl-horizontal">
741 <dt>image</dt>
742 <dd>the image. </dd>
743
744 <dd> </dd>
745 </dl>
746 <h2><a href="../../api/MagickCore/image_8c.html" id="ResetImagePage">ResetImagePage</a></h2>
747
748 <p>ResetImagePage() resets the image page canvas and position.</p>
749
750 <p>The format of the ResetImagePage method is:</p>
751
752 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType ResetImagePage(Image *image,const char *page)
753 </samp></pre>
754
755 <p>A description of each parameter follows:</p>
756
757 <dd>
758 </dd>
759
760 <dd> </dd>
761 <dl class="dl-horizontal">
762 <dt>image</dt>
763 <dd>the image. </dd>
764
765 <dd> </dd>
766 <dt>page</dt>
767 <dd>the relative page specification. </dd>
768
769 <dd> </dd>
770 </dl>
771 <h2><a href="../../api/MagickCore/image_8c.html" id="ResetImagePixels">ResetImagePixels</a></h2>
772
773 <p>ResetImagePixels() reset the image pixels, that is, all the pixel components are zeroed.</p>
774
775 <p>The format of the SetImage method is:</p>
776
777 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType ResetImagePixels(Image *image,
778 ExceptionInfo *exception)
779 </samp></pre>
780
781 <p>A description of each parameter follows:</p>
782
783 <dd>
784 </dd>
785
786 <dd> </dd>
787 <dl class="dl-horizontal">
788 <dt>image</dt>
789 <dd>the image. </dd>
790
791 <dd> </dd>
792 <dt>exception</dt>
793 <dd>return any errors or warnings in this structure. </dd>
794
795 <dd> </dd>
796 </dl>
797 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageAlpha">SetImageAlpha</a></h2>
798
799 <p>SetImageAlpha() sets the alpha levels of the image.</p>
800
801 <p>The format of the SetImageAlpha method is:</p>
802
803 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType SetImageAlpha(Image *image,const Quantum alpha,
804 ExceptionInfo *exception)
805 </samp></pre>
806
807 <p>A description of each parameter follows:</p>
808
809 <dd>
810 </dd>
811
812 <dd> </dd>
813 <dl class="dl-horizontal">
814 <dt>image</dt>
815 <dd>the image. </dd>
816
817 <dd> </dd>
818 <dt>alpha</dt>
819 <dd>the level of transparency: 0 is fully transparent and QuantumRange is fully opaque. </dd>
820
821 <dd> </dd>
822 <dt>exception</dt>
823 <dd>return any errors or warnings in this structure. </dd>
824
825 <dd> </dd>
826 </dl>
827 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageBackgroundColor">SetImageBackgroundColor</a></h2>
828
829 <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>
830
831 <p>The format of the SetImage method is:</p>
832
833 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType SetImageBackgroundColor(Image *image,
834 ExceptionInfo *exception)
835 </samp></pre>
836
837 <p>A description of each parameter follows:</p>
838
839 <dd>
840 </dd>
841
842 <dd> </dd>
843 <dl class="dl-horizontal">
844 <dt>image</dt>
845 <dd>the image. </dd>
846
847 <dd> </dd>
848 <dt>exception</dt>
849 <dd>return any errors or warnings in this structure. </dd>
850
851 <dd> </dd>
852 </dl>
853 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageChannelMask">SetImageChannelMask</a></h2>
854
855 <p>SetImageChannelMask() sets the image channel mask from the specified channel mask.</p>
856
857 <p>The format of the SetImageChannelMask method is:</p>
858
859 <pre class="bg-light text-dark mx-4"><samp>ChannelType SetImageChannelMask(Image *image,
860 const ChannelType channel_mask)
861 </samp></pre>
862
863 <p>A description of each parameter follows:</p>
864
865 <dd>
866 </dd>
867
868 <dd> </dd>
869 <dl class="dl-horizontal">
870 <dt>image</dt>
871 <dd>the image. </dd>
872
873 <dd> </dd>
874 <dt>channel_mask</dt>
875 <dd>the channel mask. </dd>
876
877 <dd> </dd>
878 </dl>
879 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageColor">SetImageColor</a></h2>
880
881 <p>SetImageColor() set the entire image canvas to the specified color.</p>
882
883 <p>The format of the SetImageColor method is:</p>
884
885 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType SetImageColor(Image *image,const PixelInfo *color,
886 ExceptionInfo *exception)
887 </samp></pre>
888
889 <p>A description of each parameter follows:</p>
890
891 <dd>
892 </dd>
893
894 <dd> </dd>
895 <dl class="dl-horizontal">
896 <dt>image</dt>
897 <dd>the image. </dd>
898
899 <dd> </dd>
900 <dt>background</dt>
901 <dd>the image color. </dd>
902
903 <dd> </dd>
904 <dt>exception</dt>
905 <dd>return any errors or warnings in this structure. </dd>
906
907 <dd> </dd>
908 </dl>
909 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageStorageClass">SetImageStorageClass</a></h2>
910
911 <p>SetImageStorageClass() sets the image class: DirectClass for true color images or PseudoClass for colormapped images.</p>
912
913 <p>The format of the SetImageStorageClass method is:</p>
914
915 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType SetImageStorageClass(Image *image,
916 const ClassType storage_class,ExceptionInfo *exception)
917 </samp></pre>
918
919 <p>A description of each parameter follows:</p>
920
921 <dd>
922 </dd>
923
924 <dd> </dd>
925 <dl class="dl-horizontal">
926 <dt>image</dt>
927 <dd>the image. </dd>
928
929 <dd> </dd>
930 <dt>storage_class</dt>
931 <dd> The image class. </dd>
932
933 <dd> </dd>
934 <dt>exception</dt>
935 <dd>return any errors or warnings in this structure. </dd>
936
937 <dd> </dd>
938 </dl>
939 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageExtent">SetImageExtent</a></h2>
940
941 <p>SetImageExtent() sets the image size (i.e. columns &amp; rows).</p>
942
943 <p>The format of the SetImageExtent method is:</p>
944
945 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType SetImageExtent(Image *image,const size_t columns,
946 const size_t rows,ExceptionInfo *exception)
947 </samp></pre>
948
949 <p>A description of each parameter follows:</p>
950
951 <dd>
952 </dd>
953
954 <dd> </dd>
955 <dl class="dl-horizontal">
956 <dt>image</dt>
957 <dd>the image. </dd>
958
959 <dd> </dd>
960 <dt>columns</dt>
961 <dd> The image width in pixels. </dd>
962
963 <dd> </dd>
964 <dt>rows</dt>
965 <dd> The image height in pixels. </dd>
966
967 <dd> </dd>
968 <dt>exception</dt>
969 <dd>return any errors or warnings in this structure. </dd>
970
971 <dd> </dd>
972 </dl>
973 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageInfoBlob">SetImageInfoBlob</a></h2>
974
975 <p>SetImageInfoBlob() sets the image info blob member.</p>
976
977 <p>The format of the SetImageInfoBlob method is:</p>
978
979 <pre class="bg-light text-dark mx-4"><samp>void SetImageInfoBlob(ImageInfo *image_info,const void *blob,
980 const size_t length)
981 </samp></pre>
982
983 <p>A description of each parameter follows:</p>
984
985 <dd>
986 </dd>
987
988 <dd> </dd>
989 <dl class="dl-horizontal">
990 <dt>image_info</dt>
991 <dd>the image info. </dd>
992
993 <dd> </dd>
994 <dt>blob</dt>
995 <dd>the blob. </dd>
996
997 <dd> </dd>
998 <dt>length</dt>
999 <dd>the blob length. </dd>
1000
1001 <dd> </dd>
1002 </dl>
1003 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageInfoCustomStream">SetImageInfoCustomStream</a></h2>
1004
1005 <p>SetImageInfoCustomStream() sets the image info custom stream handlers.</p>
1006
1007 <p>The format of the SetImageInfoCustomStream method is:</p>
1008
1009 <pre class="bg-light text-dark mx-4"><samp>void SetImageInfoCustomStream(ImageInfo *image_info,
1010 CustomStreamInfo *custom_stream)
1011 </samp></pre>
1012
1013 <p>A description of each parameter follows:</p>
1014
1015 <dd>
1016 </dd>
1017
1018 <dd> </dd>
1019 <dl class="dl-horizontal">
1020 <dt>image_info</dt>
1021 <dd>the image info. </dd>
1022
1023 <dd> </dd>
1024 <dt>custom_stream</dt>
1025 <dd>your custom stream methods. </dd>
1026
1027 <dd> </dd>
1028 </dl>
1029 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageInfoFile">SetImageInfoFile</a></h2>
1030
1031 <p>SetImageInfoFile() sets the image info file member.</p>
1032
1033 <p>The format of the SetImageInfoFile method is:</p>
1034
1035 <pre class="bg-light text-dark mx-4"><samp>void SetImageInfoFile(ImageInfo *image_info,FILE *file)
1036 </samp></pre>
1037
1038 <p>A description of each parameter follows:</p>
1039
1040 <dd>
1041 </dd>
1042
1043 <dd> </dd>
1044 <dl class="dl-horizontal">
1045 <dt>image_info</dt>
1046 <dd>the image info. </dd>
1047
1048 <dd> </dd>
1049 <dt>file</dt>
1050 <dd>the file. </dd>
1051
1052 <dd> </dd>
1053 </dl>
1054 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageMask">SetImageMask</a></h2>
1055
1056 <p>SetImageMask() associates a mask with the image. The mask must be the same dimensions as the image.</p>
1057
1058 <p>The format of the SetImageMask method is:</p>
1059
1060 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType SetImageMask(Image *image,const PixelMask type,
1061 const Image *mask,ExceptionInfo *exception)
1062 </samp></pre>
1063
1064 <p>A description of each parameter follows:</p>
1065
1066 <dd>
1067 </dd>
1068
1069 <dd> </dd>
1070 <dl class="dl-horizontal">
1071 <dt>image</dt>
1072 <dd>the image. </dd>
1073
1074 <dd> </dd>
1075 <dt>type</dt>
1076 <dd>the mask type, ReadPixelMask or WritePixelMask. </dd>
1077
1078 <dd> </dd>
1079 <dt>mask</dt>
1080 <dd>the image mask. </dd>
1081
1082 <dd> </dd>
1083 <dt>exception</dt>
1084 <dd>return any errors or warnings in this structure. </dd>
1085
1086 <dd> </dd>
1087 </dl>
1088 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageRegionMask">SetImageRegionMask</a></h2>
1089
1090 <p>SetImageRegionMask() associates a mask with the image as defined by the specified region.</p>
1091
1092 <p>The format of the SetImageRegionMask method is:</p>
1093
1094 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType SetImageRegionMask(Image *image,const PixelMask type,
1095 const RectangleInfo *region,ExceptionInfo *exception)
1096 </samp></pre>
1097
1098 <p>A description of each parameter follows:</p>
1099
1100 <dd>
1101 </dd>
1102
1103 <dd> </dd>
1104 <dl class="dl-horizontal">
1105 <dt>image</dt>
1106 <dd>the image. </dd>
1107
1108 <dd> </dd>
1109 <dt>type</dt>
1110 <dd>the mask type, ReadPixelMask or WritePixelMask. </dd>
1111
1112 <dd> </dd>
1113 <dt>geometry</dt>
1114 <dd>the mask region. </dd>
1115
1116 <dd> </dd>
1117 <dt>exception</dt>
1118 <dd>return any errors or warnings in this structure. </dd>
1119
1120 <dd> </dd>
1121 </dl>
1122 <h2><a href="../../api/MagickCore/image_8c.html" id="SetImageVirtualPixelMethod">SetImageVirtualPixelMethod</a></h2>
1123
1124 <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>
1125
1126 <p>The format of the SetImageVirtualPixelMethod() method is:</p>
1127
1128 <pre class="bg-light text-dark mx-4"><samp>VirtualPixelMethod SetImageVirtualPixelMethod(Image *image,
1129 const VirtualPixelMethod virtual_pixel_method,ExceptionInfo *exception)
1130 </samp></pre>
1131
1132 <p>A description of each parameter follows:</p>
1133
1134 <dd>
1135 </dd>
1136
1137 <dd> </dd>
1138 <dl class="dl-horizontal">
1139 <dt>image</dt>
1140 <dd>the image. </dd>
1141
1142 <dd> </dd>
1143 <dt>virtual_pixel_method</dt>
1144 <dd>choose the type of virtual pixel. </dd>
1145
1146 <dd> </dd>
1147 <dt>exception</dt>
1148 <dd>return any errors or warnings in this structure. </dd>
1149
1150 <dd> </dd>
1151 </dl>
1152 <h2><a href="../../api/MagickCore/image_8c.html" id="SmushImages">SmushImages</a></h2>
1153
1154 <p>SmushImages() takes all images from the current image pointer to the end of the image list and smushes them to each other top-to-bottom if the stack parameter is true, otherwise left-to-right.</p>
1155
1156 <p>The current gravity setting now effects how the image is justified in the final image.</p>
1157
1158 <p>The format of the SmushImages method is:</p>
1159
1160 <pre class="bg-light text-dark mx-4"><samp>Image *SmushImages(const Image *images,const MagickBooleanType stack,
1161 ExceptionInfo *exception)
1162 </samp></pre>
1163
1164 <p>A description of each parameter follows:</p>
1165
1166 <dd>
1167 </dd>
1168
1169 <dd> </dd>
1170 <dl class="dl-horizontal">
1171 <dt>images</dt>
1172 <dd>the image sequence. </dd>
1173
1174 <dd> </dd>
1175 <dt>stack</dt>
1176 <dd>A value other than 0 stacks the images top-to-bottom. </dd>
1177
1178 <dd> </dd>
1179 <dt>offset</dt>
1180 <dd>minimum distance in pixels between images. </dd>
1181
1182 <dd> </dd>
1183 <dt>exception</dt>
1184 <dd>return any errors or warnings in this structure. </dd>
1185
1186 <dd> </dd>
1187 </dl>
1188 <h2><a href="../../api/MagickCore/image_8c.html" id="StripImage">StripImage</a></h2>
1189
1190 <p>StripImage() strips an image of all profiles and comments.</p>
1191
1192 <p>The format of the StripImage method is:</p>
1193
1194 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType StripImage(Image *image,ExceptionInfo *exception)
1195 </samp></pre>
1196
1197 <p>A description of each parameter follows:</p>
1198
1199 <dd>
1200 </dd>
1201
1202 <dd> </dd>
1203 <dl class="dl-horizontal">
1204 <dt>image</dt>
1205 <dd>the image. </dd>
1206
1207 <dd> </dd>
1208 <dt>exception</dt>
1209 <dd>return any errors or warnings in this structure. </dd>
1210
1211 <dd> </dd>
1212 </dl>
1213 <h2><a href="../../api/MagickCore/image_8c.html" id="SyncImageSettings">SyncImageSettings</a></h2>
1214
1215 <p>SyncImageSettings() syncs any image_info global options into per-image attributes.</p>
1216
1217 <p>Note: in IMv6 free form 'options' were always mapped into 'artifacts', so that operations and coders can find such settings. In IMv7 if a desired per-image artifact is not set, then it will directly look for a global option as a fallback, as such this copy is no longer needed, only the link set up.</p>
1218
1219 <p>The format of the SyncImageSettings method is:</p>
1220
1221 <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType SyncImageSettings(const ImageInfo *image_info,
1222 Image *image,ExceptionInfo *exception)
1223 MagickBooleanType SyncImagesSettings(const ImageInfo *image_info,
1224 Image *image,ExceptionInfo *exception)
1225 </samp></pre>
1226
1227 <p>A description of each parameter follows:</p>
1228
1229 <dd>
1230 </dd>
1231
1232 <dd> </dd>
1233 <dl class="dl-horizontal">
1234 <dt>image_info</dt>
1235 <dd>the image info. </dd>
1236
1237 <dd> </dd>
1238 <dt>image</dt>
1239 <dd>the image. </dd>
1240
1241 <dd> </dd>
1242 <dt>exception</dt>
1243 <dd>return any errors or warnings in this structure. </dd>
1244
1245 <dd> </dd>
1246 </dl>
1247 </div>
1248 </main><!-- /.container -->
1249 <footer class="py-5 text-center text-body-secondary bg-body-tertiary">
1250 <div class="container-fluid">
1251 <a href="../www/security-policy.html">Security</a> •
1252 <a href="../www/news.html">News</a>
1253
1254 <a href="#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../../../../../../../images/wand.ico"/></a>
1255
1256 <a href="../www/links.html">Related</a> •
1257 <a href="../www/sitemap.html">Sitemap</a>
1258 <br/>
1259 <a href="../www/support.html">Sponsor</a> •
1260 <a href="../www/cite.html">Cite</a> •
1261 <a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
1262 <a href="../www/contact.html">Contact Us</a>
1263 <br/>
1264 <a href="https://github.com/imagemagick/imagemagick" target="_blank" rel="noopener" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 512 499.36" width="2%" height="2%" role="img" focusable="false"><title>GitHub</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"/></svg></a> •
1265 <a href="https://twitter.com/imagemagick" target="_blank" rel="noopener" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 300 300" width="2%" height="2%" role="img" focusable="false"><title>Twitter</title><path d="M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"/></svg></a>
1266 <br/>
1267 <small>Copyright © 1999 ImageMagick Studio LLC</small>
1268 </div>
1269 </footer>
1270 </div>
1271
1272 <!-- Javascript assets -->
1273 <script src="../assets/bootstrap.bundle.min.js" ></script>
1274 </body>
1275 </html>