1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
\r
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
\r
5 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
\r
6 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />
\r
7 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />
\r
8 <style type="text/css" media="screen,projection"><!--
\r
9 @import url("../../www/magick.css");
\r
11 <link rel="shortcut icon" href="../../images/wand.ico" type="images/vnd.microsoft.icon"/>
12 <title>ImageMagick: MagickCore, C API for ImageMagick: Deprecated Methods</title>
13 <meta http-equiv="Content-Language" content="en-US"/>
14 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
15 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
16 <meta name="Generator" content="PHP"/>
17 <meta name="Keywords" content="magickcore, c, api, for, imagemagick:, deprecated, methods, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing"/>
18 <meta name="Description" content="ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically."/>
19 <meta name="Rating" content="GENERAL"/>
20 <meta name="Robots" content="INDEX, FOLLOW"/>
21 <meta name="Generator" content="ImageMagick Studio LLC"/>
22 <meta name="Author" content="ImageMagick Studio LLC"/>
23 <meta name="Revisit-after" content="2 DAYS"/>
24 <meta name="Resource-type" content="document"/>
25 <meta name="Copyright" content="Copyright (c) 1999-2010 ImageMagick Studio LLC"/>
26 <meta name="Distribution" content="Global"/>
29 <body id="www-imagemagick-org">
\r
30 <div class="titlebar">
\r
31 <a href="../../index.html">
\r
32 <img src="../../images/script.png" alt="[ImageMagick]"
\r
33 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
34 <a href="http://www.networkredux.com">
\r
35 <img src="../../images/networkredux.png" alt="[sponsor]"
\r
36 style="margin: 45px auto; border: 0px; float: left;" /></a>
\r
37 <a href="http://www.imagemagick.org/discourse-server/">
\r
38 <img src="../../images/logo.jpg" alt=""
\r
39 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
40 <a href="../../index.html">
\r
41 <img src="../../images/sprite.jpg" alt=""
\r
42 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
45 <div class="eastbar">
\r
48 <a href="../../index.html">About ImageMagick</a>
50 <div class="sep"></div>
\r
52 <a href="../../www/command-line-tools.html">Command-line Tools</a>
55 <a href="../../www/command-line-processing.html">Processing</a>
58 <a href="../../www/command-line-options.html">Options</a>
61 <a href="http://www.imagemagick.org/Usage/">Usage</a>
64 <a href="../../www/api.html">Program Interfaces</a>
67 <a href="../../www/magick-wand.html">MagickWand</a>
70 <a href="../../www/magick-core.html">MagickCore</a>
73 <a href="../../www/perl-magick.html">PerlMagick</a>
76 <a href="../../Magick++/">Magick++</a>
79 <a href="../../www/architecture.html">Architecture</a>
81 <div class="sep"></div>
\r
83 <a href="../../www/install-source.html">Install from Source</a>
86 <a href="../../www/install-source.html#unix">Unix</a>
89 <a href="../../www/install-source.html#windows">Windows</a>
92 <a href="../../www/binary-releases.html">Binary Releases</a>
95 <a href="../../www/binary-releases.html#unix">Unix</a>
98 <a href="../../www/binary-releases.html#macosx">Mac OS X</a>
101 <a href="../../www/binary-releases.html#windows">Windows</a>
104 <a href="../../www/resources.html">Resources</a>
106 <div class="sep"></div>
\r
108 <a href="../../www/download.html">Download</a>
110 <div class="sep"></div>
\r
112 <a href="../http://www.imagemagick.org/script/search.php">Search</a>
114 <div class="sep"></div>
\r
116 <a href="../../www/sitemap.html">Site Map</a>
119 <a href="../../www/links.html">Links</a>
121 <div class="sep"></div>
\r
123 <a href="../../www/sponsors.html">Sponsors:</a>
125 <div class="sponsbox">
126 <div class="sponsor">
127 <a href="http://www.abi-stoff.de/abizeitung/" title="Abibuch">Abizeitung</a><!-- 20101101000200 -->
129 <div class="sponsor">
130 <a href="http://www.deko.net">Deko.net</a><!-- 201101010600 Peterssen-->
132 <div class="sponsor">
133 <a href="http://www.tomsgutscheine.de">Tom's Gutscheine</a><!-- 201005010360 invendio.de-->
135 <div class="sponsor">
136 <a href="http://www.online-kredit-index.de">Kredit</a><!-- 201007010120 Buchhorn -->
138 <div class="sponsor">
139 <a href="http://www.blumenversender.com">Blumenversand</a><!-- 201005010120 -->
141 <div class="sponsor">
142 <a href="http://www.print24.de/">Druckerei</a><!-- 201009010720 -->
144 <div class="sponsor">
145 <a href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012011200 allesdruck.de-->
155 <p class="navigation-index">[<a href="#AcquireCacheViewIndexes">AcquireCacheViewIndexes</a> • <a href="#AcquireCacheViewPixels">AcquireCacheViewPixels</a> • <a href="#AcquireImagePixels">AcquireImagePixels</a> • <a href="#AcquireIndexes">AcquireIndexes</a> • <a href="#AcquireMemory">AcquireMemory</a> • <a href="#AcquireOneCacheViewPixel">AcquireOneCacheViewPixel</a> • <a href="#AcquireOneCacheViewVirtualPixel">AcquireOneCacheViewVirtualPixel</a> • <a href="#AcquireOneMagickPixel">AcquireOneMagickPixel</a> • <a href="#AcquireOnePixel">AcquireOnePixel</a> • <a href="#AcquireOneVirtualPixel">AcquireOneVirtualPixel</a> • <a href="#AcquirePixels">AcquirePixels</a> • <a href="#AffinityImage">AffinityImage</a> • <a href="#AffinityImages">AffinityImages</a> • <a href="#AllocateImage">AllocateImage</a> • <a href="#AllocateImageColormap">AllocateImageColormap</a> • <a href="#AllocateNextImage">AllocateNextImage</a> • <a href="#AllocateString">AllocateString</a> • <a href="#AverageImages">AverageImages</a> • <a href="#ChannelThresholdImage">ChannelThresholdImage</a> • <a href="#ClipPathImage">ClipPathImage</a> • <a href="#CloneImageAttributes">CloneImageAttributes</a> • <a href="#CloneMemory">CloneMemory</a> • <a href="#CloseCacheView">CloseCacheView</a> • <a href="#ColorFloodfill">ColorFloodfill</a> • <a href="#DeleteImageAttribute">DeleteImageAttribute</a> • <a href="#DeleteImageList">DeleteImageList</a> • <a href="#DeleteMagickRegistry">DeleteMagickRegistry</a> • <a href="#DescribeImage">DescribeImage</a> • <a href="#DestroyImageAttributes">DestroyImageAttributes</a> • <a href="#DestroyImages">DestroyImages</a> • <a href="#DestroyMagick">DestroyMagick</a> • <a href="#DispatchImage">DispatchImage</a> • <a href="#ExtractSubimageFromImageImage">ExtractSubimageFromImageImage</a> • <a href="#FlattenImages">FlattenImages</a> • <a href="#FormatImageAttribute">FormatImageAttribute</a> • <a href="#FormatString">FormatString</a> • <a href="#GetConfigureBlob">GetConfigureBlob</a> • <a href="#GetCacheView">GetCacheView</a> • <a href="#GetCacheViewIndexes">GetCacheViewIndexes</a> • <a href="#GetCacheViewPixels">GetCacheViewPixels</a> • <a href="#GetImageAttribute">GetImageAttribute</a> • <a href="#GetImageClippingPathAttribute">GetImageClippingPathAttribute</a> • <a href="#GetImageFromMagickRegistry">GetImageFromMagickRegistry</a> • <a href="#GetMagickRegistry">GetMagickRegistry</a> • <a href="#GetImageGeometry">GetImageGeometry</a> • <a href="#GetImageList">GetImageList</a> • <a href="#GetImageListIndex">GetImageListIndex</a> • <a href="#GetImageListSize">GetImageListSize</a> • <a href="#GetImagePixels">GetImagePixels</a> • <a href="#GetIndexes">GetIndexes</a> • <a href="#GetNextImage">GetNextImage</a> • <a href="#GetNextImageAttribute">GetNextImageAttribute</a> • <a href="#GetNumberScenes">GetNumberScenes</a> • <a href="#GetOnePixel">GetOnePixel</a> • <a href="#GetPixels">GetPixels</a> • <a href="#GetPreviousImage">GetPreviousImage</a> • <a href="#HSLTransform">HSLTransform</a> • <a href="#IdentityAffine">IdentityAffine</a> • <a href="#InitializeMagick">InitializeMagick</a> • <a href="#InterpolatePixelColor">InterpolatePixelColor</a> • <a href="#InterpretImageAttributes">InterpretImageAttributes</a> • <a href="#LevelImageColor">LevelImageColor</a> • <a href="#LiberateMemory">LiberateMemory</a> • <a href="#LiberateSemaphoreInfo">LiberateSemaphoreInfo</a> • <a href="#MagickIncarnate">MagickIncarnate</a> • <a href="#MagickMonitor">MagickMonitor</a> • <a href="#MapImage">MapImage</a> • <a href="#MapImages">MapImages</a> • <a href="#MatteFloodfill">MatteFloodfill</a> • <a href="#MaximumImages">MaximumImages</a> • <a href="#MinimumImages">MinimumImages</a> • <a href="#MosaicImages">MosaicImages</a> • <a href="#OpaqueImage">OpaqueImage</a> • <a href="#OpenCacheView">OpenCacheView</a> • <a href="#PaintFloodfill">PaintFloodfill</a> • <a href="#PaintOpaqueImage">PaintOpaqueImage</a> • <a href="#PaintTransparentImage">PaintTransparentImage</a> • <a href="#ParseSizeGeometry">ParseSizeGeometry</a> • <a href="#PopImageList">PopImageList</a> • <a href="#PopImagePixels">PopImagePixels</a> • <a href="#PostscriptGeometry">PostscriptGeometry</a> • <a href="#PushImageList">PushImageList</a> • <a href="#PushImagePixels">PushImagePixels</a> • <a href="#QuantizationError">QuantizationError</a> • <a href="#RandomChannelThresholdImage">RandomChannelThresholdImage</a> • <a href="#ReacquireMemory">ReacquireMemory</a> • <a href="#ResetImageAttributeIterator">ResetImageAttributeIterator</a> • <a href="#SetCacheViewPixels">SetCacheViewPixels</a> • <a href="#SetExceptionInfo">SetExceptionInfo</a> • <a href="#SetImage">SetImage</a> • <a href="#SetImageAttribute">SetImageAttribute</a> • <a href="#SetImageList">SetImageList</a> • <a href="#SetImagePixels">SetImagePixels</a> • <a href="#SetMagickRegistry">SetMagickRegistry</a> • <a href="#SetMonitorHandler">SetMonitorHandler</a> • <a href="#ShiftImageList">ShiftImageList</a> • <a href="#SpliceImageList">SpliceImageList</a> • <a href="#Strip">Strip</a> • <a href="#SyncCacheView">SyncCacheView</a> • <a href="#SyncCacheViewPixels">SyncCacheViewPixels</a> • <a href="#SyncImagePixels">SyncImagePixels</a> • <a href="#TemporaryFilename">TemporaryFilename</a> • <a href="#ThresholdImage">ThresholdImage</a> • <a href="#ThresholdImageChannel">ThresholdImageChannel</a> • <a href="#TransformHSL">TransformHSL</a> • <a href="#TranslateText">TranslateText</a> • <a href="#TransparentImage">TransparentImage</a> • <a href="#UnshiftImageList">UnshiftImageList</a>]</p>
157 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
158 _8c.html" target="source" name="AcquireCacheViewIndexes">AcquireCacheViewIndexes</a></h2>
159 <div class="doc-section">
161 <p>AcquireCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
163 <p>The format of the AcquireCacheViewIndexes method is:</p>
166 const IndexPacket *AcquireCacheViewIndexes(const CacheView *cache_view)
169 <p>A description of each parameter follows:</p></ol>
172 <ol><p>the cache view.</p></ol>
175 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
176 _8c.html" target="source" name="AcquireCacheViewPixels">AcquireCacheViewPixels</a></h2>
177 <div class="doc-section">
179 <p>AcquireCacheViewPixels() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
181 <p>The format of the AcquireCacheViewPixels method is:</p>
184 const PixelPacket *AcquireCacheViewPixels(const CacheView *cache_view,
185 const long x,const long y,const unsigned long columns,
186 const unsigned long rows,ExceptionInfo *exception)
189 <p>A description of each parameter follows:</p></ol>
192 <ol><p>the cache view.</p></ol>
194 <h5>x,y,columns,rows</h5>
195 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
198 <ol><p>return any errors or warnings in this structure.</p></ol>
201 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
202 _8c.html" target="source" name="AcquireImagePixels">AcquireImagePixels</a></h2>
203 <div class="doc-section">
205 <p>AcquireImagePixels() returns an immutable pixel region. If the region is successfully accessed, a pointer to it is returned, otherwise NULL is returned. The returned pointer may point to a temporary working copy of the pixels or it may point to the original pixels in memory. Performance is maximized if the selected region is part of one row, or one or more full rows, since there is opportunity to access the pixels in-place (without a copy) if the image is in RAM, or in a memory-mapped file. The returned pointer should *never* be deallocated by the user.</p></ol>
207 <p>Pixels accessed via the returned pointer represent a simple array of type PixelPacket. If the image type is CMYK or the storage class is PseudoClass, call GetAuthenticIndexQueue() after invoking GetAuthenticPixels() to access the black color component or to obtain the colormap indexes (of type IndexPacket) corresponding to the region.</p></ol>
209 <p>If you plan to modify the pixels, use GetAuthenticPixels() instead.</p></ol>
211 <p>Note, the AcquireImagePixels() and GetAuthenticPixels() methods are not thread-safe. In a threaded environment, use GetCacheViewVirtualPixels() or GetCacheViewAuthenticPixels() instead.</p></ol>
213 <p>The format of the AcquireImagePixels() method is:</p>
216 const PixelPacket *AcquireImagePixels(const Image *image,const long x,
217 const long y,const unsigned long columns,const unsigned long rows,
218 ExceptionInfo *exception)
221 <p>A description of each parameter follows:</p></ol>
224 <ol><p>the image.</p></ol>
226 <h5>x,y,columns,rows</h5>
227 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
230 <ol><p>return any errors or warnings in this structure.</p></ol>
233 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
234 _8c.html" target="source" name="AcquireIndexes">AcquireIndexes</a></h2>
235 <div class="doc-section">
237 <p>AcquireIndexes() returns the black channel or the colormap indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels(). NULL is returned if the black channel or colormap indexes are not available.</p></ol>
239 <p>The format of the AcquireIndexes() method is:</p>
242 const IndexPacket *AcquireIndexes(const Image *image)
245 <p>A description of each parameter follows:</p></ol>
248 <ol><p>AcquireIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
251 <ol><p>the image.</p></ol>
254 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
255 _8c.html" target="source" name="AcquireMemory">AcquireMemory</a></h2>
256 <div class="doc-section">
258 <p>AcquireMemory() returns a pointer to a block of memory at least size bytes suitably aligned for any use.</p></ol>
260 <p>The format of the AcquireMemory method is:</p>
263 void *AcquireMemory(const size_t size)
266 <p>A description of each parameter follows:</p></ol>
269 <ol><p>the size of the memory in bytes to allocate.</p></ol>
272 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
273 _8c.html" target="source" name="AcquireOneCacheViewPixel">AcquireOneCacheViewPixel</a></h2>
274 <div class="doc-section">
276 <p>AcquireOneCacheViewPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOneCacheViewAuthenticPixel() instead.</p></ol>
278 <p>The format of the AcquireOneCacheViewPixel method is:</p>
281 MagickBooleanType AcquireOneCacheViewPixel(const CacheView *cache_view,
282 const long x,const long y,PixelPacket *pixel,ExceptionInfo *exception)
285 <p>A description of each parameter follows:</p></ol>
288 <ol><p>the cache view.</p></ol>
291 <ol><p>These values define the offset of the pixel.</p></ol>
294 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
297 <ol><p>return any errors or warnings in this structure.</p></ol>
300 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
301 _8c.html" target="source" name="AcquireOneCacheViewVirtualPixel">AcquireOneCacheViewVirtualPixel</a></h2>
302 <div class="doc-section">
304 <p>AcquireOneCacheViewVirtualPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOneCacheViewAuthenticPixel() instead.</p></ol>
306 <p>The format of the AcquireOneCacheViewPixel method is:</p>
309 MagickBooleanType AcquireOneCacheViewVirtualPixel(
310 const CacheView *cache_view,
311 const VirtualPixelMethod virtual_pixel_method,const long x,
312 const long y,PixelPacket *pixel,ExceptionInfo *exception)
315 <p>A description of each parameter follows:</p></ol>
318 <ol><p>the cache view.</p></ol>
320 <h5>virtual_pixel_method</h5>
321 <ol><p>the virtual pixel method.</p></ol>
324 <ol><p>These values define the offset of the pixel.</p></ol>
327 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
330 <ol><p>return any errors or warnings in this structure.</p></ol>
333 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
334 _8c.html" target="source" name="AcquireOneMagickPixel">AcquireOneMagickPixel</a></h2>
335 <div class="doc-section">
337 <p>AcquireOneMagickPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOnePixel() instead.</p></ol>
339 <p>The format of the AcquireOneMagickPixel() method is:</p>
342 MagickPixelPacket AcquireOneMagickPixel(const Image image,const long x,
343 const long y,ExceptionInfo exception)
346 <p>A description of each parameter follows:</p></ol>
349 <ol><p>the image.</p></ol>
352 <ol><p>These values define the location of the pixel to return.</p></ol>
355 <ol><p>return any errors or warnings in this structure.</p></ol>
358 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
359 _8c.html" target="source" name="AcquireOnePixel">AcquireOnePixel</a></h2>
360 <div class="doc-section">
362 <p>AcquireOnePixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOnePixel() instead.</p></ol>
364 <p>The format of the AcquireOnePixel() method is:</p>
367 PixelPacket AcquireOnePixel(const Image image,const long x,
368 const long y,ExceptionInfo exception)
371 <p>A description of each parameter follows:</p></ol>
374 <ol><p>the image.</p></ol>
377 <ol><p>These values define the location of the pixel to return.</p></ol>
380 <ol><p>return any errors or warnings in this structure.</p></ol>
383 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
384 _8c.html" target="source" name="AcquireOneVirtualPixel">AcquireOneVirtualPixel</a></h2>
385 <div class="doc-section">
387 <p>AcquireOneVirtualPixel() returns a single pixel at the specified (x,y) location as defined by specified pixel method. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOnePixel() instead.</p></ol>
389 <p>The format of the AcquireOneVirtualPixel() method is:</p>
392 PixelPacket AcquireOneVirtualPixel(const Image image,
393 const VirtualPixelMethod virtual_pixel_method,const long x,
394 const long y,ExceptionInfo exception)
397 <p>A description of each parameter follows:</p></ol>
399 <h5>virtual_pixel_method</h5>
400 <ol><p>the virtual pixel method.</p></ol>
403 <ol><p>the image.</p></ol>
406 <ol><p>These values define the location of the pixel to return.</p></ol>
409 <ol><p>return any errors or warnings in this structure.</p></ol>
412 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
413 _8c.html" target="source" name="AcquirePixels">AcquirePixels</a></h2>
414 <div class="doc-section">
416 <p>AcquirePixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
418 <p>The format of the AcquirePixels() method is:</p>
421 const PixelPacket *AcquirePixels(const Image image)
424 <p>A description of each parameter follows:</p></ol>
427 <ol><p>the image.</p></ol>
430 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
431 _8c.html" target="source" name="AffinityImage">AffinityImage</a></h2>
432 <div class="doc-section">
434 <p>AffinityImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
436 <p>The format of the AffinityImage method is:</p>
439 MagickBooleanType AffinityImage(const QuantizeInfo *quantize_info,
440 Image *image,const Image *affinity_image)
443 <p>A description of each parameter follows:</p></ol>
445 <h5>quantize_info</h5>
446 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
449 <ol><p>the image.</p></ol>
451 <h5>affinity_image</h5>
452 <ol><p>the reference image.</p></ol>
455 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
456 _8c.html" target="source" name="AffinityImages">AffinityImages</a></h2>
457 <div class="doc-section">
459 <p>AffinityImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
461 <p>The format of the AffinityImage method is:</p>
464 MagickBooleanType AffinityImages(const QuantizeInfo *quantize_info,
465 Image *images,Image *affinity_image)
468 <p>A description of each parameter follows:</p></ol>
470 <h5>quantize_info</h5>
471 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
474 <ol><p>the image sequence.</p></ol>
476 <h5>affinity_image</h5>
477 <ol><p>the reference image.</p></ol>
480 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
481 _8c.html" target="source" name="AllocateImage">AllocateImage</a></h2>
482 <div class="doc-section">
484 <p>AllocateImage() returns a pointer to an image structure initialized to default values.</p></ol>
486 <p>The format of the AllocateImage method is:</p>
489 Image *AllocateImage(const ImageInfo *image_info)
492 <p>A description of each parameter follows:</p></ol>
495 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
498 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
499 _8c.html" target="source" name="AllocateImageColormap">AllocateImageColormap</a></h2>
500 <div class="doc-section">
502 <p>AllocateImageColormap() allocates an image colormap and initializes it to a linear gray colorspace. If the image already has a colormap, it is replaced. AllocateImageColormap() returns MagickTrue if successful, otherwise MagickFalse if there is not enough memory.</p></ol>
504 <p>The format of the AllocateImageColormap method is:</p>
507 MagickBooleanType AllocateImageColormap(Image *image,
508 const unsigned long colors)
511 <p>A description of each parameter follows:</p></ol>
514 <ol><p>the image.</p></ol>
517 <ol><p>the number of colors in the image colormap.</p></ol>
520 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
521 _8c.html" target="source" name="AllocateNextImage">AllocateNextImage</a></h2>
522 <div class="doc-section">
524 <p>AllocateNextImage() initializes the next image in a sequence to default values. The next member of image points to the newly allocated image. If there is a memory shortage, next is assigned NULL.</p></ol>
526 <p>The format of the AllocateNextImage method is:</p>
529 void AllocateNextImage(const ImageInfo *image_info,Image *image)
532 <p>A description of each parameter follows:</p></ol>
535 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
538 <ol><p>the image.</p></ol>
541 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
542 _8c.html" target="source" name="AllocateString">AllocateString</a></h2>
543 <div class="doc-section">
545 <p>AllocateString() allocates memory for a string and copies the source string to that memory location (and returns it).</p></ol>
547 <p>The format of the AllocateString method is:</p>
550 char *AllocateString(const char *source)
553 <p>A description of each parameter follows:</p></ol>
556 <ol><p>A character string.</p></ol>
559 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
560 _8c.html" target="source" name="AverageImages">AverageImages</a></h2>
561 <div class="doc-section">
563 <p>AverageImages() takes a set of images and averages them together. Each image in the set must have the same width and height. AverageImages() returns a single image with each corresponding pixel component of each image averaged. On failure, a NULL image is returned and exception describes the reason for the failure.</p></ol>
565 <p>The format of the AverageImages method is:</p>
568 Image *AverageImages(Image *images,ExceptionInfo *exception)
571 <p>A description of each parameter follows:</p></ol>
574 <ol><p>the image sequence.</p></ol>
577 <ol><p>return any errors or warnings in this structure.</p></ol>
580 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
581 _8c.html" target="source" name="ChannelThresholdImage">ChannelThresholdImage</a></h2>
582 <div class="doc-section">
584 <p>ChannelThresholdImage() changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image.</p></ol>
586 <p>The format of the ChannelThresholdImage method is:</p>
589 unsigned int ChannelThresholdImage(Image *image,const char *level)
592 <p>A description of each parameter follows:</p></ol>
595 <ol><p>the image.</p></ol>
598 <ol><p>define the threshold values.</p></ol>
601 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
602 _8c.html" target="source" name="ClipPathImage">ClipPathImage</a></h2>
603 <div class="doc-section">
605 <p>ClipPathImage() sets the image clip mask based any clipping path information if it exists.</p></ol>
607 <p>The format of the ClipImage method is:</p>
610 MagickBooleanType ClipPathImage(Image *image,const char *pathname,
611 const MagickBooleanType inside)
614 <p>A description of each parameter follows:</p></ol>
617 <ol><p>the image.</p></ol>
620 <ol><p>name of clipping path resource. If name is preceded by #, use clipping path numbered by name.</p></ol>
623 <ol><p>if non-zero, later operations take effect inside clipping path. Otherwise later operations take effect outside clipping path.</p></ol>
626 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
627 _8c.html" target="source" name="CloneImageAttributes">CloneImageAttributes</a></h2>
628 <div class="doc-section">
630 <p>CloneImageAttributes() clones one or more image attributes.</p></ol>
632 <p>The format of the CloneImageAttributes method is:</p>
635 MagickBooleanType CloneImageAttributes(Image *image,
636 const Image *clone_image)
639 <p>A description of each parameter follows:</p></ol>
642 <ol><p>the image.</p></ol>
645 <ol><p>the clone image.</p></ol>
648 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
649 _8c.html" target="source" name="CloneMemory">CloneMemory</a></h2>
650 <div class="doc-section">
652 <p>CloneMemory() copies size bytes from memory area source to the destination. Copying between objects that overlap will take place correctly. It returns destination.</p></ol>
654 <p>The format of the CloneMemory method is:</p>
657 void *CloneMemory(void *destination,const void *source,
661 <p>A description of each parameter follows:</p></ol>
664 <ol><p>the destination.</p></ol>
667 <ol><p>the source.</p></ol>
670 <ol><p>the size of the memory in bytes to allocate.</p></ol>
673 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
674 _8c.html" target="source" name="CloseCacheView">CloseCacheView</a></h2>
675 <div class="doc-section">
677 <p>CloseCacheView() closes the specified view returned by a previous call to OpenCacheView().</p></ol>
679 <p>The format of the CloseCacheView method is:</p>
682 CacheView *CloseCacheView(CacheView *view_info)
685 <p>A description of each parameter follows:</p></ol>
688 <ol><p>the address of a structure of type CacheView.</p></ol>
691 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
692 _8c.html" target="source" name="ColorFloodfill">ColorFloodfill</a></h2>
693 <div class="doc-section">
695 <p>ColorFloodfill() changes the color value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the color value is changed for any neighbor pixel that does not match the bordercolor member of image.</p></ol>
697 <p>By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill.</p></ol>
699 <p>The format of the ColorFloodfillImage method is:</p>
702 MagickBooleanType ColorFloodfillImage(Image *image,
703 const DrawInfo *draw_info,const PixelPacket target,
704 const long x_offset,const long y_offset,const PaintMethod method)
707 <p>A description of each parameter follows:</p></ol>
710 <ol><p>the image.</p></ol>
713 <ol><p>the draw info.</p></ol>
716 <ol><p>the RGB value of the target color.</p></ol>
719 <ol><p>the starting location of the operation.</p></ol>
722 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
725 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
726 _8c.html" target="source" name="DeleteImageAttribute">DeleteImageAttribute</a></h2>
727 <div class="doc-section">
729 <p>DeleteImageAttribute() deletes an attribute from the image.</p></ol>
731 <p>The format of the DeleteImageAttribute method is:</p>
734 MagickBooleanType DeleteImageAttribute(Image *image,const char *key)
737 <p>A description of each parameter follows:</p></ol>
740 <ol><p>the image info.</p></ol>
743 <ol><p>the image key.</p></ol>
746 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
747 _8c.html" target="source" name="DeleteImageList">DeleteImageList</a></h2>
748 <div class="doc-section">
750 <p>DeleteImageList() deletes an image at the specified position in the list.</p></ol>
752 <p>The format of the DeleteImageList method is:</p>
755 unsigned int DeleteImageList(Image *images,const long offset)
758 <p>A description of each parameter follows:</p></ol>
761 <ol><p>the image list.</p></ol>
764 <ol><p>the position within the list.</p></ol>
767 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
768 _8c.html" target="source" name="DeleteMagickRegistry">DeleteMagickRegistry</a></h2>
769 <div class="doc-section">
771 <p>DeleteMagickRegistry() deletes an entry in the registry as defined by the id. It returns MagickTrue if the entry is deleted otherwise MagickFalse if no entry is found in the registry that matches the id.</p></ol>
773 <p>The format of the DeleteMagickRegistry method is:</p>
776 MagickBooleanType DeleteMagickRegistry(const long id)
779 <p>A description of each parameter follows:</p></ol>
782 <ol><p>the registry id.</p></ol>
785 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
786 _8c.html" target="source" name="DescribeImage">DescribeImage</a></h2>
787 <div class="doc-section">
789 <p>DescribeImage() describes an image by printing its attributes to the file. Attributes include the image width, height, size, and others.</p></ol>
791 <p>The format of the DescribeImage method is:</p>
794 MagickBooleanType DescribeImage(Image *image,FILE *file,
795 const MagickBooleanType verbose)
798 <p>A description of each parameter follows:</p></ol>
801 <ol><p>the image.</p></ol>
804 <ol><p>the file, typically stdout.</p></ol>
807 <ol><p>A value other than zero prints more detailed information about the image.</p></ol>
810 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
811 _8c.html" target="source" name="DestroyImageAttributes">DestroyImageAttributes</a></h2>
812 <div class="doc-section">
814 <p>DestroyImageAttributes() deallocates memory associated with the image attribute list.</p></ol>
816 <p>The format of the DestroyImageAttributes method is:</p>
819 DestroyImageAttributes(Image *image)
822 <p>A description of each parameter follows:</p></ol>
825 <ol><p>the image.</p></ol>
828 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
829 _8c.html" target="source" name="DestroyImages">DestroyImages</a></h2>
830 <div class="doc-section">
832 <p>DestroyImages() destroys an image list.</p></ol>
834 <p>The format of the DestroyImages method is:</p>
837 void DestroyImages(Image *image)
840 <p>A description of each parameter follows:</p></ol>
843 <ol><p>the image sequence.</p></ol>
846 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
847 _8c.html" target="source" name="DestroyMagick">DestroyMagick</a></h2>
848 <div class="doc-section">
850 <p>DestroyMagick() destroys the ImageMagick environment.</p></ol>
852 <p>The format of the DestroyMagick function is:</p>
859 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
860 _8c.html" target="source" name="DispatchImage">DispatchImage</a></h2>
861 <div class="doc-section">
863 <p>DispatchImage() extracts pixel data from an image and returns it to you. The method returns MagickFalse on success otherwise MagickTrue if an error is encountered. The data is returned as char, short int, int, long, float, or double in the order specified by map.</p></ol>
865 <p>Suppose you want to extract the first scanline of a 640x480 image as character data in red-green-blue order:</p>
868 DispatchImage(image,0,0,640,1,"RGB",CharPixel,pixels,exception);
871 <p>The format of the DispatchImage method is:</p>
874 unsigned int DispatchImage(const Image *image,const long x_offset,
875 const long y_offset,const unsigned long columns,
876 const unsigned long rows,const char *map,const StorageType type,
877 void *pixels,ExceptionInfo *exception)
880 <p>A description of each parameter follows:</p></ol>
883 <ol><p>the image.</p></ol>
885 <h5>x_offset, y_offset, columns, rows</h5>
886 <ol><p>These values define the perimeter of a region of pixels you want to extract.</p></ol>
889 <ol><p>This string reflects the expected ordering of the pixel array. It can be any combination or order of R = red, G = green, B = blue, A = alpha, C = cyan, Y = yellow, M = magenta, K = black, or I = intensity (for grayscale).</p></ol>
892 <ol><p>Define the data type of the pixels. Float and double types are normalized to [0..1] otherwise [0..QuantumRange]. Choose from these types: CharPixel, ShortPixel, IntegerPixel, LongPixel, FloatPixel, or DoublePixel.</p></ol>
895 <ol><p>This array of values contain the pixel components as defined by map and type. You must preallocate this array where the expected length varies depending on the values of width, height, map, and type.</p></ol>
898 <ol><p>return any errors or warnings in this structure.</p></ol>
901 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
902 _8c.html" target="source" name="ExtractSubimageFromImageImage">ExtractSubimageFromImageImage</a></h2>
903 <div class="doc-section">
905 <p>ExtractSubimageFromImageImage() extracts a region of the image that most closely resembles the reference.</p></ol>
907 <p>The format of the ExtractSubimageFromImageImage method is:</p>
910 Image *ExtractSubimageFromImage(const Image *image,const Image *reference,
911 ExceptionInfo *exception)
914 <p>A description of each parameter follows:</p></ol>
917 <ol><p>the image.</p></ol>
920 <ol><p>find an area of the image that closely resembles this image.</p></ol>
923 <ol><p>return any errors or warnings in this structure.</p></ol>
926 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
927 _8c.html" target="source" name="FlattenImages">FlattenImages</a></h2>
928 <div class="doc-section">
930 <p>FlattenImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
932 <p>The format of the FlattenImage method is:</p>
935 Image *FlattenImage(Image *image,ExceptionInfo *exception)
938 <p>A description of each parameter follows:</p></ol>
941 <ol><p>the image sequence.</p></ol>
944 <ol><p>return any errors or warnings in this structure.</p></ol>
947 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
948 _8c.html" target="source" name="FormatImageAttribute">FormatImageAttribute</a></h2>
949 <div class="doc-section">
951 <p>FormatImageAttribute() permits formatted key/value pairs to be saved as an image attribute.</p></ol>
953 <p>The format of the FormatImageAttribute method is:</p>
956 MagickBooleanType FormatImageAttribute(Image *image,const char *key,
957 const char *format,...)
960 <p>A description of each parameter follows.</p></ol>
963 <ol><p>The image.</p></ol>
966 <ol><p>The attribute key.</p></ol>
969 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
972 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
973 _8c.html" target="source" name="FormatString">FormatString</a></h2>
974 <div class="doc-section">
976 <p>FormatString() prints formatted output of a variable argument list.</p></ol>
978 <p>The format of the FormatString method is:</p>
981 void FormatString(char *string,const char *format,...)
984 <p>A description of each parameter follows.</p></ol>
987 <ol><p>Method FormatString returns the formatted string in this character buffer.</p></ol>
990 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
993 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
994 _8c.html" target="source" name="GetConfigureBlob">GetConfigureBlob</a></h2>
995 <div class="doc-section">
997 <p>GetConfigureBlob() returns the specified configure file as a blob.</p></ol>
999 <p>The format of the GetConfigureBlob method is:</p>
1002 void *GetConfigureBlob(const char *filename,ExceptionInfo *exception)
1005 <p>A description of each parameter follows:</p></ol>
1008 <ol><p>the configure file name.</p></ol>
1011 <ol><p>return the full path information of the configure file.</p></ol>
1014 <ol><p>This pointer to a size_t integer sets the initial length of the blob. On return, it reflects the actual length of the blob.</p></ol>
1017 <ol><p>return any errors or warnings in this structure.</p></ol>
1020 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1021 _8c.html" target="source" name="GetCacheView">GetCacheView</a></h2>
1022 <div class="doc-section">
1024 <p>GetCacheView() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
1026 <p>The format of the GetCacheView method is:</p>
1029 PixelPacket *GetCacheView(CacheView *cache_view,const long x,
1030 const long y,const unsigned long columns,const unsigned long rows)
1033 <p>A description of each parameter follows:</p></ol>
1036 <ol><p>the address of a structure of type CacheView.</p></ol>
1038 <h5>x,y,columns,rows</h5>
1039 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1042 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1043 _8c.html" target="source" name="GetCacheViewIndexes">GetCacheViewIndexes</a></h2>
1044 <div class="doc-section">
1046 <p>GetCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
1048 <p>The format of the GetCacheViewIndexes method is:</p>
1051 IndexPacket *GetCacheViewIndexes(CacheView *cache_view)
1054 <p>A description of each parameter follows:</p></ol>
1057 <ol><p>the cache view.</p></ol>
1060 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1061 _8c.html" target="source" name="GetCacheViewPixels">GetCacheViewPixels</a></h2>
1062 <div class="doc-section">
1064 <p>GetCacheViewPixels() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
1066 <p>The format of the GetCacheViewPixels method is:</p>
1069 PixelPacket *GetCacheViewPixels(CacheView *cache_view,const long x,
1070 const long y,const unsigned long columns,const unsigned long rows)
1073 <p>A description of each parameter follows:</p></ol>
1076 <ol><p>the cache view.</p></ol>
1078 <h5>x,y,columns,rows</h5>
1079 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1082 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1083 _8c.html" target="source" name="GetImageAttribute">GetImageAttribute</a></h2>
1084 <div class="doc-section">
1086 <p>GetImageAttribute() searches the list of image attributes and returns a pointer to the attribute if it exists otherwise NULL.</p></ol>
1088 <p>The format of the GetImageAttribute method is:</p>
1091 const ImageAttribute *GetImageAttribute(const Image *image,
1095 <p>A description of each parameter follows:</p></ol>
1098 <ol><p>the image.</p></ol>
1101 <ol><p>These character strings are the name of an image attribute to return.</p></ol>
1104 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1105 _8c.html" target="source" name="GetImageClippingPathAttribute">GetImageClippingPathAttribute</a></h2>
1106 <div class="doc-section">
1108 <p>GetImageClippingPathAttribute() searches the list of image attributes and returns a pointer to a clipping path if it exists otherwise NULL.</p></ol>
1110 <p>The format of the GetImageClippingPathAttribute method is:</p>
1113 const ImageAttribute *GetImageClippingPathAttribute(Image *image)
1116 <p>A description of each parameter follows:</p></ol>
1119 <ol><p>Method GetImageClippingPathAttribute returns the clipping path if it exists otherwise NULL.</p></ol>
1122 <ol><p>the image.</p></ol>
1125 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1126 _8c.html" target="source" name="GetImageFromMagickRegistry">GetImageFromMagickRegistry</a></h2>
1127 <div class="doc-section">
1129 <p>GetImageFromMagickRegistry() gets an image from the registry as defined by its name. If the image is not found, a NULL image is returned.</p></ol>
1131 <p>The format of the GetImageFromMagickRegistry method is:</p>
1134 Image *GetImageFromMagickRegistry(const char *name,long *id,
1135 ExceptionInfo *exception)
1138 <p>A description of each parameter follows:</p></ol>
1141 <ol><p>the name of the image to retrieve from the registry.</p></ol>
1144 <ol><p>the registry id.</p></ol>
1147 <ol><p>return any errors or warnings in this structure.</p></ol>
1150 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1151 _8c.html" target="source" name="GetMagickRegistry">GetMagickRegistry</a></h2>
1152 <div class="doc-section">
1154 <p>GetMagickRegistry() gets a blob from the registry as defined by the id. If the blob that matches the id is not found, NULL is returned.</p></ol>
1156 <p>The format of the GetMagickRegistry method is:</p>
1159 const void *GetMagickRegistry(const long id,RegistryType *type,
1160 size_t *length,ExceptionInfo *exception)
1163 <p>A description of each parameter follows:</p></ol>
1166 <ol><p>the registry id.</p></ol>
1169 <ol><p>the registry type.</p></ol>
1172 <ol><p>the blob length in number of bytes.</p></ol>
1175 <ol><p>return any errors or warnings in this structure.</p></ol>
1178 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1179 _8c.html" target="source" name="GetImageGeometry">GetImageGeometry</a></h2>
1180 <div class="doc-section">
1182 <p>GetImageGeometry() returns a region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1184 <p>The format of the GetImageGeometry method is:</p>
1187 int GetImageGeometry(Image *image,const char *geometry,
1188 const unsigned int size_to_fit,RectangeInfo *region_info)
1191 <p>A description of each parameter follows:</p></ol>
1194 <ol><p>Method GetImageGeometry returns a bitmask that indicates which of the four values were located in the geometry string.</p></ol>
1197 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
1199 <h5>size_to_fit</h5>
1200 <ol><p>A value other than 0 means to scale the region so it fits within the specified width and height.</p></ol>
1202 <h5>region_info</h5>
1203 <ol><p>the region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1206 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1207 _8c.html" target="source" name="GetImageList">GetImageList</a></h2>
1208 <div class="doc-section">
1210 <p>GetImageList() returns an image at the specified position in the list.</p></ol>
1212 <p>The format of the GetImageList method is:</p>
1215 Image *GetImageList(const Image *images,const long offset,
1216 ExceptionInfo *exception)
1219 <p>A description of each parameter follows:</p></ol>
1222 <ol><p>the image list.</p></ol>
1225 <ol><p>the position within the list.</p></ol>
1228 <ol><p>return any errors or warnings in this structure.</p></ol>
1231 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1232 _8c.html" target="source" name="GetImageListIndex">GetImageListIndex</a></h2>
1233 <div class="doc-section">
1235 <p>GetImageListIndex() returns the position in the list of the specified image.</p></ol>
1237 <p>The format of the GetImageListIndex method is:</p>
1240 long GetImageListIndex(const Image *images)
1243 <p>A description of each parameter follows:</p></ol>
1246 <ol><p>the image list.</p></ol>
1249 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1250 _8c.html" target="source" name="GetImageListSize">GetImageListSize</a></h2>
1251 <div class="doc-section">
1253 <p>GetImageListSize() returns the number of images in the list.</p></ol>
1255 <p>The format of the GetImageListSize method is:</p>
1258 unsigned long GetImageListSize(const Image *images)
1261 <p>A description of each parameter follows:</p></ol>
1264 <ol><p>the image list.</p></ol>
1267 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1268 _8c.html" target="source" name="GetImagePixels">GetImagePixels</a></h2>
1269 <div class="doc-section">
1271 <p>GetImagePixels() obtains a pixel region for read/write access. If the region is successfully accessed, a pointer to a PixelPacket array representing the region is returned, otherwise NULL is returned.</p></ol>
1273 <p>The returned pointer may point to a temporary working copy of the pixels or it may point to the original pixels in memory. Performance is maximized if the selected region is part of one row, or one or more full rows, since then there is opportunity to access the pixels in-place (without a copy) if the image is in RAM, or in a memory-mapped file. The returned pointer should *never* be deallocated by the user.</p></ol>
1275 <p>Pixels accessed via the returned pointer represent a simple array of type PixelPacket. If the image type is CMYK or if the storage class is PseduoClass, call GetAuthenticIndexQueue() after invoking GetImagePixels() to obtain the black color component or colormap indexes (of type IndexPacket) corresponding to the region. Once the PixelPacket (and/or IndexPacket) array has been updated, the changes must be saved back to the underlying image using SyncAuthenticPixels() or they may be lost.</p></ol>
1277 <p>The format of the GetImagePixels() method is:</p>
1280 PixelPacket *GetImagePixels(Image *image,const long x,const long y,
1281 const unsigned long columns,const unsigned long rows)
1284 <p>A description of each parameter follows:</p></ol>
1287 <ol><p>the image.</p></ol>
1289 <h5>x,y,columns,rows</h5>
1290 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1293 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1294 _8c.html" target="source" name="GetIndexes">GetIndexes</a></h2>
1295 <div class="doc-section">
1297 <p>GetIndexes() returns the black channel or the colormap indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels(). NULL is returned if the black channel or colormap indexes are not available.</p></ol>
1299 <p>The format of the GetIndexes() method is:</p>
1302 IndexPacket *GetIndexes(const Image *image)
1305 <p>A description of each parameter follows:</p></ol>
1308 <ol><p>GetIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1311 <ol><p>the image.</p></ol>
1314 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1315 _8c.html" target="source" name="GetNextImage">GetNextImage</a></h2>
1316 <div class="doc-section">
1318 <p>GetNextImage() returns the next image in a list.</p></ol>
1320 <p>The format of the GetNextImage method is:</p>
1323 Image *GetNextImage(const Image *images)
1326 <p>A description of each parameter follows:</p></ol>
1329 <ol><p>the image list.</p></ol>
1332 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1333 _8c.html" target="source" name="GetNextImageAttribute">GetNextImageAttribute</a></h2>
1334 <div class="doc-section">
1336 <p>GetNextImageAttribute() gets the next image attribute.</p></ol>
1338 <p>The format of the GetNextImageAttribute method is:</p>
1341 const ImageAttribute *GetNextImageAttribute(const Image *image)
1344 <p>A description of each parameter follows:</p></ol>
1347 <ol><p>the image.</p></ol>
1350 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1351 _8c.html" target="source" name="GetNumberScenes">GetNumberScenes</a></h2>
1352 <div class="doc-section">
1354 <p>GetNumberScenes() returns the number of images in the list.</p></ol>
1356 <p>The format of the GetNumberScenes method is:</p>
1359 unsigned int GetNumberScenes(const Image *images)
1362 <p>A description of each parameter follows:</p></ol>
1365 <ol><p>the image list.</p></ol>
1368 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1369 _8c.html" target="source" name="GetOnePixel">GetOnePixel</a></h2>
1370 <div class="doc-section">
1372 <p>GetOnePixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs.</p></ol>
1374 <p>The format of the GetOnePixel() method is:</p>
1377 PixelPacket GetOnePixel(const Image image,const long x,const long y)
1380 <p>A description of each parameter follows:</p></ol>
1383 <ol><p>the image.</p></ol>
1386 <ol><p>These values define the location of the pixel to return.</p></ol>
1389 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1390 _8c.html" target="source" name="GetPixels">GetPixels</a></h2>
1391 <div class="doc-section">
1393 <p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1395 <p>The format of the GetPixels() method is:</p>
1398 PixelPacket *GetPixels(const Image image)
1401 <p>A description of each parameter follows:</p></ol>
1404 <ol><p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1407 <ol><p>the image.</p></ol>
1410 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1411 _8c.html" target="source" name="GetPreviousImage">GetPreviousImage</a></h2>
1412 <div class="doc-section">
1414 <p>GetPreviousImage() returns the previous image in a list.</p></ol>
1416 <p>The format of the GetPreviousImage method is:</p>
1419 Image *GetPreviousImage(const Image *images)
1422 <p>A description of each parameter follows:</p></ol>
1425 <ol><p>the image list.</p></ol>
1428 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1429 _8c.html" target="source" name="HSLTransform">HSLTransform</a></h2>
1430 <div class="doc-section">
1432 <p>HSLTransform() converts a (hue, saturation, lightness) to a (red, green, blue) triple.</p></ol>
1434 <p>The format of the HSLTransformImage method is:</p>
1437 void HSLTransform(const double hue,const double saturation,
1438 const double lightness,Quantum *red,Quantum *green,Quantum *blue)
1441 <p>A description of each parameter follows:</p></ol>
1443 <h5>hue, saturation, lightness</h5>
1444 <ol><p>A double value representing a component of the HSL color space.</p></ol>
1446 <h5>red, green, blue</h5>
1447 <ol><p>A pointer to a pixel component of type Quantum.</p></ol>
1450 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1451 _8c.html" target="source" name="IdentityAffine">IdentityAffine</a></h2>
1452 <div class="doc-section">
1454 <p>IdentityAffine() initializes the affine transform to the identity matrix.</p></ol>
1456 <p>The format of the IdentityAffine method is:</p>
1459 IdentityAffine(AffineMatrix *affine)
1462 <p>A description of each parameter follows:</p></ol>
1465 <ol><p>A pointer the affine transform of type AffineMatrix.</p></ol>
1468 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1469 _8c.html" target="source" name="InitializeMagick">InitializeMagick</a></h2>
1470 <div class="doc-section">
1472 <p>InitializeMagick() initializes the ImageMagick environment.</p></ol>
1474 <p>The format of the InitializeMagick function is:</p>
1477 InitializeMagick(const char *path)
1480 <p>A description of each parameter follows:</p></ol>
1483 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1486 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1487 _8c.html" target="source" name="InterpolatePixelColor">InterpolatePixelColor</a></h2>
1488 <div class="doc-section">
1490 <p>InterpolatePixelColor() applies bi-linear or tri-linear interpolation between a pixel and it's neighbors.</p></ol>
1492 <p>The format of the InterpolatePixelColor method is:</p>
1495 MagickPixelPacket InterpolatePixelColor(const Image *image,
1496 CacheView *view_info,InterpolatePixelMethod method,const double x,
1497 const double y,ExceptionInfo *exception)
1500 <p>A description of each parameter follows:</p></ol>
1503 <ol><p>the image.</p></ol>
1506 <ol><p>the image cache view.</p></ol>
1509 <ol><p>the type of pixel color interpolation.</p></ol>
1512 <ol><p>A double representing the current (x,y) position of the pixel.</p></ol>
1515 <ol><p>return any errors or warnings in this structure.</p></ol>
1518 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1519 _8c.html" target="source" name="InterpretImageAttributes">InterpretImageAttributes</a></h2>
1520 <div class="doc-section">
1522 <p>InterpretImageAttributes() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
1524 <p>The format of the InterpretImageAttributes method is:</p>
1527 char *InterpretImageAttributes(const ImageInfo *image_info,Image *image,
1528 const char *embed_text)
1531 <p>A description of each parameter follows:</p></ol>
1534 <ol><p>the image info.</p></ol>
1537 <ol><p>the image.</p></ol>
1540 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
1543 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1544 _8c.html" target="source" name="LevelImageColor">LevelImageColor</a></h2>
1545 <div class="doc-section">
1547 <p>LevelImageColor() will map the given color to "black" and "white" values, limearly spreading out the colors, and level values on a channel by channel bases, as per LevelImage(). The given colors allows you to specify different level ranges for each of the color channels seperatally.</p></ol>
1549 <p>If the boolean 'invert' is set true the image values will modifyed in the reverse direction. That is any existing "black" and "white" colors in the image will become the color values given, with all other values compressed appropriatally. This effectivally maps a greyscale gradient into the given color gradient.</p></ol>
1551 <p>The format of the LevelImageColors method is:</p>
1554 MagickBooleanType LevelImageColors(Image *image,const ChannelType channel,
1555 const MagickPixelPacket *black_color,const MagickPixelPacket *white_color,
1556 const MagickBooleanType invert)
1559 <p>A description of each parameter follows:</p></ol>
1562 <ol><p>the image.</p></ol>
1565 <ol><p>the channel.</p></ol>
1567 <h5>black_color</h5>
1568 <ol><p>The color to map black to/from</p></ol>
1570 <h5>white_point</h5>
1571 <ol><p>The color to map white to/from</p></ol>
1574 <ol><p>if true map the colors (levelize), rather than from (level)</p></ol>
1577 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1578 _8c.html" target="source" name="LiberateMemory">LiberateMemory</a></h2>
1579 <div class="doc-section">
1581 <p>LiberateMemory() frees memory that has already been allocated, and NULL's the pointer to it.</p></ol>
1583 <p>The format of the LiberateMemory method is:</p>
1586 void LiberateMemory(void **memory)
1589 <p>A description of each parameter follows:</p></ol>
1592 <ol><p>A pointer to a block of memory to free for reuse.</p></ol>
1595 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1596 _8c.html" target="source" name="LiberateSemaphoreInfo">LiberateSemaphoreInfo</a></h2>
1597 <div class="doc-section">
1599 <p>LiberateSemaphoreInfo() relinquishes a semaphore.</p></ol>
1601 <p>The format of the LiberateSemaphoreInfo method is:</p>
1604 LiberateSemaphoreInfo(void **semaphore_info)
1607 <p>A description of each parameter follows:</p></ol>
1609 <h5>semaphore_info</h5>
1610 <ol><p>Specifies a pointer to an SemaphoreInfo structure.</p></ol>
1613 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1614 _8c.html" target="source" name="MagickIncarnate">MagickIncarnate</a></h2>
1615 <div class="doc-section">
1617 <p>MagickIncarnate() initializes the ImageMagick environment.</p></ol>
1619 <p>The format of the MagickIncarnate function is:</p>
1622 MagickIncarnate(const char *path)
1625 <p>A description of each parameter follows:</p></ol>
1628 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1631 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1632 _8c.html" target="source" name="MagickMonitor">MagickMonitor</a></h2>
1633 <div class="doc-section">
1635 <p>MagickMonitor() calls the monitor handler method with a text string that describes the task and a measure of completion. The method returns MagickTrue on success otherwise MagickFalse if an error is encountered, e.g. if there was a user interrupt.</p></ol>
1637 <p>The format of the MagickMonitor method is:</p>
1640 MagickBooleanType MagickMonitor(const char *text,
1641 const MagickOffsetType offset,const MagickSizeType span,
1645 <p>A description of each parameter follows:</p></ol>
1648 <ol><p>the position relative to the span parameter which represents how much progress has been made toward completing a task.</p></ol>
1651 <ol><p>the span relative to completing a task.</p></ol>
1653 <h5>client_data</h5>
1654 <ol><p>the client data.</p></ol>
1657 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1658 _8c.html" target="source" name="MapImage">MapImage</a></h2>
1659 <div class="doc-section">
1661 <p>MapImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
1663 <p>The format of the MapImage method is:</p>
1666 MagickBooleanType MapImage(Image *image,const Image *map_image,
1667 const MagickBooleanType dither)
1670 <p>A description of each parameter follows:</p></ol>
1673 <ol><p>Specifies a pointer to an Image structure.</p></ol>
1676 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
1679 <ol><p>Set this integer value to something other than zero to dither the mapped image.</p></ol>
1682 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1683 _8c.html" target="source" name="MapImages">MapImages</a></h2>
1684 <div class="doc-section">
1686 <p>MapImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
1688 <p>The format of the MapImage method is:</p>
1691 MagickBooleanType MapImages(Image *images,Image *map_image,
1692 const MagickBooleanType dither)
1695 <p>A description of each parameter follows:</p></ol>
1698 <ol><p>Specifies a pointer to a set of Image structures.</p></ol>
1701 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
1704 <ol><p>Set this integer value to something other than zero to dither the quantized image.</p></ol>
1707 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1708 _8c.html" target="source" name="MatteFloodfill">MatteFloodfill</a></h2>
1709 <div class="doc-section">
1711 <p>MatteFloodfill() changes the transparency value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the transparency value is changed for any neighbor pixel that does not match the bordercolor member of image.</p></ol>
1713 <p>By default target must match a particular pixel transparency exactly. However, in many cases two transparency values may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two transparency values as the same. For example, set fuzz to 10 and the opacity values of 100 and 102 respectively are now interpreted as the same value for the purposes of the floodfill.</p></ol>
1715 <p>The format of the MatteFloodfillImage method is:</p>
1718 MagickBooleanType MatteFloodfillImage(Image *image,
1719 const PixelPacket target,const Quantum opacity,const long x_offset,
1720 const long y_offset,const PaintMethod method)
1723 <p>A description of each parameter follows:</p></ol>
1726 <ol><p>the image.</p></ol>
1729 <ol><p>the RGB value of the target color.</p></ol>
1732 <ol><p>the level of transparency: 0 is fully opaque and QuantumRange is fully transparent.</p></ol>
1735 <ol><p>the starting location of the operation.</p></ol>
1738 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
1741 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1742 _8c.html" target="source" name="MaximumImages">MaximumImages</a></h2>
1743 <div class="doc-section">
1745 <p>MaximumImages() returns the maximum intensity of an image sequence.</p></ol>
1747 <p>The format of the MaxImages method is:</p>
1750 Image *MaximumImages(Image *images,ExceptionInfo *exception)
1753 <p>A description of each parameter follows:</p></ol>
1756 <ol><p>the image sequence.</p></ol>
1759 <ol><p>return any errors or warnings in this structure.</p></ol>
1762 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1763 _8c.html" target="source" name="MinimumImages">MinimumImages</a></h2>
1764 <div class="doc-section">
1766 <p>MinimumImages() returns the minimum intensity of an image sequence.</p></ol>
1768 <p>The format of the MinimumImages method is:</p>
1771 Image *MinimumImages(Image *images,ExceptionInfo *exception)
1774 <p>A description of each parameter follows:</p></ol>
1777 <ol><p>the image sequence.</p></ol>
1780 <ol><p>return any errors or warnings in this structure.</p></ol>
1783 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1784 _8c.html" target="source" name="MosaicImages">MosaicImages</a></h2>
1785 <div class="doc-section">
1787 <p>MosaicImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
1789 <p>The format of the MosaicImage method is:</p>
1792 Image *MosaicImages(const Image *image,ExceptionInfo *exception)
1795 <p>A description of each parameter follows:</p></ol>
1798 <ol><p>the image list to be composited together</p></ol>
1801 <ol><p>return any errors or warnings in this structure.</p></ol>
1804 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1805 _8c.html" target="source" name="OpaqueImage">OpaqueImage</a></h2>
1806 <div class="doc-section">
1808 <p>OpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
1810 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
1812 <p>The format of the OpaqueImage method is:</p>
1815 MagickBooleanType OpaqueImage(Image *image,
1816 const PixelPacket *target,const PixelPacket fill)
1819 <p>A description of each parameter follows:</p></ol>
1822 <ol><p>the image.</p></ol>
1825 <ol><p>the RGB value of the target color.</p></ol>
1828 <ol><p>the replacement color.</p></ol>
1831 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1832 _8c.html" target="source" name="OpenCacheView">OpenCacheView</a></h2>
1833 <div class="doc-section">
1835 <p>OpenCacheView() opens a view into the pixel cache, using the VirtualPixelMethod that is defined within the given image itself.</p></ol>
1837 <p>The format of the OpenCacheView method is:</p>
1840 CacheView *OpenCacheView(const Image *image)
1843 <p>A description of each parameter follows:</p></ol>
1846 <ol><p>the image.</p></ol>
1849 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1850 _8c.html" target="source" name="PaintFloodfill">PaintFloodfill</a></h2>
1851 <div class="doc-section">
1853 <p>PaintFloodfill() changes the color value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the color value is changed for any neighbor pixel that does not match the bordercolor member of image.</p></ol>
1855 <p>By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill.</p></ol>
1857 <p>The format of the PaintFloodfillImage method is:</p>
1860 MagickBooleanType PaintFloodfillImage(Image *image,
1861 const ChannelType channel,const MagickPixelPacket target,const long x,
1862 const long y,const DrawInfo *draw_info,const PaintMethod method)
1865 <p>A description of each parameter follows:</p></ol>
1868 <ol><p>the image.</p></ol>
1871 <ol><p>the channel(s).</p></ol>
1874 <ol><p>the RGB value of the target color.</p></ol>
1877 <ol><p>the starting location of the operation.</p></ol>
1880 <ol><p>the draw info.</p></ol>
1883 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
1886 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1887 _8c.html" target="source" name="PaintOpaqueImage">PaintOpaqueImage</a></h2>
1888 <div class="doc-section">
1890 <p>PaintOpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
1892 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
1894 <p>The format of the PaintOpaqueImage method is:</p>
1897 MagickBooleanType PaintOpaqueImage(Image *image,
1898 const PixelPacket *target,const PixelPacket *fill)
1899 MagickBooleanType PaintOpaqueImageChannel(Image *image,
1900 const ChannelType channel,const PixelPacket *target,
1901 const PixelPacket *fill)
1904 <p>A description of each parameter follows:</p></ol>
1907 <ol><p>the image.</p></ol>
1910 <ol><p>the channel(s).</p></ol>
1913 <ol><p>the RGB value of the target color.</p></ol>
1916 <ol><p>the replacement color.</p></ol>
1919 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1920 _8c.html" target="source" name="PaintTransparentImage">PaintTransparentImage</a></h2>
1921 <div class="doc-section">
1923 <p>PaintTransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
1925 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
1927 <p>The format of the PaintTransparentImage method is:</p>
1930 MagickBooleanType PaintTransparentImage(Image *image,
1931 const MagickPixelPacket *target,const Quantum opacity)
1934 <p>A description of each parameter follows:</p></ol>
1937 <ol><p>the image.</p></ol>
1940 <ol><p>the RGB value of the target color.</p></ol>
1943 <ol><p>the replacement opacity value.</p></ol>
1946 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1947 _8c.html" target="source" name="ParseSizeGeometry">ParseSizeGeometry</a></h2>
1948 <div class="doc-section">
1950 <p>ParseSizeGeometry() returns a region as defined by the geometry string with respect to the image dimensions and aspect ratio.</p></ol>
1952 <p>The format of the ParseSizeGeometry method is:</p>
1955 MagickStatusType ParseSizeGeometry(const Image *image,
1956 const char *geometry,RectangeInfo *region_info)
1959 <p>A description of each parameter follows:</p></ol>
1962 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
1964 <h5>region_info</h5>
1965 <ol><p>the region as defined by the geometry string.</p></ol>
1968 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1969 _8c.html" target="source" name="PopImageList">PopImageList</a></h2>
1970 <div class="doc-section">
1972 <p>PopImageList() removes the last image in the list.</p></ol>
1974 <p>The format of the PopImageList method is:</p>
1977 Image *PopImageList(Image **images)
1980 <p>A description of each parameter follows:</p></ol>
1983 <ol><p>the image list.</p></ol>
1986 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1987 _8c.html" target="source" name="PopImagePixels">PopImagePixels</a></h2>
1988 <div class="doc-section">
1990 <p>PopImagePixels() transfers one or more pixel components from the image pixel cache to a user supplied buffer. The pixels are returned in network byte order. MagickTrue is returned if the pixels are successfully transferred, otherwise MagickFalse.</p></ol>
1992 <p>The format of the PopImagePixels method is:</p>
1995 size_t PopImagePixels(Image *,const QuantumType quantum,
1996 unsigned char *destination)
1999 <p>A description of each parameter follows:</p></ol>
2002 <ol><p>the image.</p></ol>
2005 <ol><p>Declare which pixel components to transfer (RGB, RGBA, etc).</p></ol>
2007 <h5>destination</h5>
2008 <ol><p>The components are transferred to this buffer.</p></ol>
2011 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2012 _8c.html" target="source" name="PostscriptGeometry">PostscriptGeometry</a></h2>
2013 <div class="doc-section">
2015 <p>PostscriptGeometry() replaces any page mneumonic with the equivalent size in picas.</p></ol>
2017 <p>The format of the PostscriptGeometry method is:</p>
2020 char *PostscriptGeometry(const char *page)
2023 <p>A description of each parameter follows.</p></ol>
2026 <ol><p>Specifies a pointer to an array of characters. The string is either a Postscript page name (e.g. A4) or a postscript page geometry (e.g. 612x792+36+36).</p></ol>
2029 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2030 _8c.html" target="source" name="PushImageList">PushImageList</a></h2>
2031 <div class="doc-section">
2033 <p>PushImageList() adds an image to the end of the list.</p></ol>
2035 <p>The format of the PushImageList method is:</p>
2038 unsigned int PushImageList(Image *images,const Image *image,
2039 ExceptionInfo *exception)
2042 <p>A description of each parameter follows:</p></ol>
2045 <ol><p>the image list.</p></ol>
2048 <ol><p>the image.</p></ol>
2051 <ol><p>return any errors or warnings in this structure.</p></ol>
2054 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2055 _8c.html" target="source" name="PushImagePixels">PushImagePixels</a></h2>
2056 <div class="doc-section">
2058 <p>PushImagePixels() transfers one or more pixel components from a user supplied buffer into the image pixel cache of an image. The pixels are expected in network byte order. It returns MagickTrue if the pixels are successfully transferred, otherwise MagickFalse.</p></ol>
2060 <p>The format of the PushImagePixels method is:</p>
2063 size_t PushImagePixels(Image *image,const QuantumType quantum,
2064 const unsigned char *source)
2067 <p>A description of each parameter follows:</p></ol>
2070 <ol><p>the image.</p></ol>
2073 <ol><p>Declare which pixel components to transfer (red, green, blue, opacity, RGB, or RGBA).</p></ol>
2076 <ol><p>The pixel components are transferred from this buffer.</p></ol>
2079 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2080 _8c.html" target="source" name="QuantizationError">QuantizationError</a></h2>
2081 <div class="doc-section">
2083 <p>QuantizationError() measures the difference between the original and quantized images. This difference is the total quantization error. The error is computed by summing over all pixels in an image the distance squared in RGB space between each reference pixel value and its quantized value. These values are computed:</p>
2086 o mean_error_per_pixel: This value is the mean error for any single
2090 <h5>normalized_mean_square_error</h5>
2091 <ol><p>This value is the normalized mean quantization error for any single pixel in the image. This distance measure is normalized to a range between 0 and 1. It is independent of the range of red, green, and blue values in the image.</p></ol>
2093 <h5>normalized_maximum_square_error</h5>
2094 <ol><p>Thsi value is the normalized maximum quantization error for any single pixel in the image. This distance measure is normalized to a range between 0 and 1. It is independent of the range of red, green, and blue values in your image.</p></ol>
2097 <p>The format of the QuantizationError method is:</p>
2100 unsigned int QuantizationError(Image *image)
2103 <p>A description of each parameter follows.</p></ol>
2106 <ol><p>Specifies a pointer to an Image structure; returned from ReadImage.</p></ol>
2109 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2110 _8c.html" target="source" name="RandomChannelThresholdImage">RandomChannelThresholdImage</a></h2>
2111 <div class="doc-section">
2113 <p>RandomChannelThresholdImage() changes the value of individual pixels based on the intensity of each pixel compared to a random threshold. The result is a low-contrast, two color image.</p></ol>
2115 <p>The format of the RandomChannelThresholdImage method is:</p>
2118 unsigned int RandomChannelThresholdImage(Image *image,
2119 const char *channel, const char *thresholds,
2120 ExceptionInfo *exception)
2123 <p>A description of each parameter follows:</p></ol>
2126 <ol><p>the image.</p></ol>
2129 <ol><p>the channel or channels to be thresholded.</p></ol>
2132 <ol><p>a geometry string containing LOWxHIGH thresholds. If the string contains 2x2, 3x3, or 4x4, then an ordered dither of order 2, 3, or 4 will be performed instead.</p></ol>
2135 <ol><p>return any errors or warnings in this structure.</p></ol>
2138 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2139 _8c.html" target="source" name="ReacquireMemory">ReacquireMemory</a></h2>
2140 <div class="doc-section">
2142 <p>ReacquireMemory() changes the size of the memory and returns a pointer to the (possibly moved) block. The contents will be unchanged up to the lesser of the new and old sizes.</p></ol>
2144 <p>The format of the ReacquireMemory method is:</p>
2147 void ReacquireMemory(void **memory,const size_t size)
2150 <p>A description of each parameter follows:</p></ol>
2153 <ol><p>A pointer to a memory allocation. On return the pointer may change but the contents of the original allocation will not.</p></ol>
2156 <ol><p>the new size of the allocated memory.</p></ol>
2159 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2160 _8c.html" target="source" name="ResetImageAttributeIterator">ResetImageAttributeIterator</a></h2>
2161 <div class="doc-section">
2163 <p>ResetImageAttributeIterator() resets the image attributes iterator. Use it in conjunction with GetNextImageAttribute() to iterate over all the values associated with an image.</p></ol>
2165 <p>The format of the ResetImageAttributeIterator method is:</p>
2168 ResetImageAttributeIterator(const ImageInfo *image)
2171 <p>A description of each parameter follows:</p></ol>
2174 <ol><p>the image.</p></ol>
2177 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2178 _8c.html" target="source" name="SetCacheViewPixels">SetCacheViewPixels</a></h2>
2179 <div class="doc-section">
2181 <p>SetCacheViewPixels() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
2183 <p>The format of the SetCacheViewPixels method is:</p>
2186 PixelPacket *SetCacheViewPixels(CacheView *cache_view,const long x,
2187 const long y,const unsigned long columns,const unsigned long rows)
2190 <p>A description of each parameter follows:</p></ol>
2193 <ol><p>the cache view.</p></ol>
2195 <h5>x,y,columns,rows</h5>
2196 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2199 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2200 _8c.html" target="source" name="SetExceptionInfo">SetExceptionInfo</a></h2>
2201 <div class="doc-section">
2203 <p>SetExceptionInfo() sets the exception severity.</p></ol>
2205 <p>The format of the SetExceptionInfo method is:</p>
2208 MagickBooleanType SetExceptionInfo(ExceptionInfo *exception,
2209 ExceptionType severity)
2212 <p>A description of each parameter follows:</p></ol>
2215 <ol><p>the exception info.</p></ol>
2218 <ol><p>the exception severity.</p></ol>
2221 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2222 _8c.html" target="source" name="SetImage">SetImage</a></h2>
2223 <div class="doc-section">
2225 <p>SetImage() sets the red, green, and blue components of each pixel to the image background color and the opacity component to the specified level of transparency. The background color is defined by the background_color member of the image.</p></ol>
2227 <p>The format of the SetImage method is:</p>
2230 void SetImage(Image *image,const Quantum opacity)
2233 <p>A description of each parameter follows:</p></ol>
2236 <ol><p>the image.</p></ol>
2239 <ol><p>Set each pixel to this level of transparency.</p></ol>
2242 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2243 _8c.html" target="source" name="SetImageAttribute">SetImageAttribute</a></h2>
2244 <div class="doc-section">
2246 <p>SetImageAttribute() searches the list of image attributes and replaces the attribute value. If it is not found in the list, the attribute name and value is added to the list.</p></ol>
2248 <p>The format of the SetImageAttribute method is:</p>
2251 MagickBooleanType SetImageAttribute(Image *image,const char *key,
2255 <p>A description of each parameter follows:</p></ol>
2258 <ol><p>the image.</p></ol>
2261 <ol><p>the key.</p></ol>
2264 <ol><p>the value.</p></ol>
2267 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2268 _8c.html" target="source" name="SetImageList">SetImageList</a></h2>
2269 <div class="doc-section">
2271 <p>SetImageList() inserts an image into the list at the specified position.</p></ol>
2273 <p>The format of the SetImageList method is:</p>
2276 unsigned int SetImageList(Image *images,const Image *image,
2277 const long offset,ExceptionInfo *exception)
2280 <p>A description of each parameter follows:</p></ol>
2283 <ol><p>the image list.</p></ol>
2286 <ol><p>the image.</p></ol>
2289 <ol><p>the position within the list.</p></ol>
2292 <ol><p>return any errors or warnings in this structure.</p></ol>
2295 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2296 _8c.html" target="source" name="SetImagePixels">SetImagePixels</a></h2>
2297 <div class="doc-section">
2299 <p>SetImagePixels() queues a mutable pixel region. If the region is successfully intialized a pointer to a PixelPacket array representing the region is returned, otherwise NULL is returned. The returned pointer may point to a temporary working buffer for the pixels or it may point to the final location of the pixels in memory.</p></ol>
2301 <p>Write-only access means that any existing pixel values corresponding to the region are ignored. This useful while the initial image is being created from scratch, or if the existing pixel values are to be completely replaced without need to refer to their pre-existing values. The application is free to read and write the pixel buffer returned by SetImagePixels() any way it pleases. SetImagePixels() does not initialize the pixel array values. Initializing pixel array values is the application's responsibility.</p></ol>
2303 <p>Performance is maximized if the selected region is part of one row, or one or more full rows, since then there is opportunity to access the pixels in-place (without a copy) if the image is in RAM, or in a memory-mapped file. The returned pointer should *never* be deallocated by the user.</p></ol>
2305 <p>Pixels accessed via the returned pointer represent a simple array of type PixelPacket. If the image type is CMYK or the storage class is PseudoClass, call GetAuthenticIndexQueue() after invoking GetAuthenticPixels() to obtain the black color component or the colormap indexes (of type IndexPacket) corresponding to the region. Once the PixelPacket (and/or IndexPacket) array has been updated, the changes must be saved back to the underlying image using SyncAuthenticPixels() or they may be lost.</p></ol>
2307 <p>The format of the SetImagePixels() method is:</p>
2310 PixelPacket *SetImagePixels(Image *image,const long x,const long y,
2311 const unsigned long columns,const unsigned long rows)
2314 <p>A description of each parameter follows:</p></ol>
2317 <ol><p>SetImagePixels returns a pointer to the pixels if they are transferred, otherwise a NULL is returned.</p></ol>
2320 <ol><p>the image.</p></ol>
2322 <h5>x,y,columns,rows</h5>
2323 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2326 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2327 _8c.html" target="source" name="SetMagickRegistry">SetMagickRegistry</a></h2>
2328 <div class="doc-section">
2330 <p>SetMagickRegistry() sets a blob into the registry and returns a unique ID. If an error occurs, -1 is returned.</p></ol>
2332 <p>The format of the SetMagickRegistry method is:</p>
2335 long SetMagickRegistry(const RegistryType type,const void *blob,
2336 const size_t length,ExceptionInfo *exception)
2339 <p>A description of each parameter follows:</p></ol>
2342 <ol><p>the registry type.</p></ol>
2345 <ol><p>the address of a Binary Large OBject.</p></ol>
2348 <ol><p>For a registry type of ImageRegistryType use sizeof(Image) otherise the blob length in number of bytes.</p></ol>
2351 <ol><p>return any errors or warnings in this structure.</p></ol>
2354 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2355 _8c.html" target="source" name="SetMonitorHandler">SetMonitorHandler</a></h2>
2356 <div class="doc-section">
2358 <p>SetMonitorHandler() sets the monitor handler to the specified method and returns the previous monitor handler.</p></ol>
2360 <p>The format of the SetMonitorHandler method is:</p>
2363 MonitorHandler SetMonitorHandler(MonitorHandler handler)
2366 <p>A description of each parameter follows:</p></ol>
2369 <ol><p>Specifies a pointer to a method to handle monitors.</p></ol>
2372 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2373 _8c.html" target="source" name="ShiftImageList">ShiftImageList</a></h2>
2374 <div class="doc-section">
2376 <p>ShiftImageList() removes an image from the beginning of the list.</p></ol>
2378 <p>The format of the ShiftImageList method is:</p>
2381 Image *ShiftImageList(Image **images)
2384 <p>A description of each parameter follows:</p></ol>
2387 <ol><p>the image list.</p></ol>
2390 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2391 _8c.html" target="source" name="SpliceImageList">SpliceImageList</a></h2>
2392 <div class="doc-section">
2394 <p>SpliceImageList() removes the images designated by offset and length from the list and replaces them with the specified list.</p></ol>
2396 <p>The format of the SpliceImageList method is:</p>
2399 Image *SpliceImageList(Image *images,const long offset,
2400 const unsigned long length,const Image *splices,
2401 ExceptionInfo *exception)
2404 <p>A description of each parameter follows:</p></ol>
2407 <ol><p>the image list.</p></ol>
2410 <ol><p>the position within the list.</p></ol>
2413 <ol><p>the length of the image list to remove.</p></ol>
2416 <ol><p>Replace the removed image list with this list.</p></ol>
2419 <ol><p>return any errors or warnings in this structure.</p></ol>
2422 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2423 _8c.html" target="source" name="Strip">Strip</a></h2>
2424 <div class="doc-section">
2426 <p>Strip() strips any whitespace or quotes from the beginning and end of a string of characters.</p></ol>
2428 <p>The format of the Strip method is:</p>
2431 void Strip(char *message)
2434 <p>A description of each parameter follows:</p></ol>
2437 <ol><p>Specifies an array of characters.</p></ol>
2440 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2441 _8c.html" target="source" name="SyncCacheView">SyncCacheView</a></h2>
2442 <div class="doc-section">
2444 <p>SyncCacheView() saves the cache view pixels to the in-memory or disk cache. It returns MagickTrue if the pixel region is synced, otherwise MagickFalse.</p></ol>
2446 <p>The format of the SyncCacheView method is:</p>
2449 MagickBooleanType SyncCacheView(CacheView *cache_view)
2452 <p>A description of each parameter follows:</p></ol>
2455 <ol><p>the cache view.</p></ol>
2458 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2459 _8c.html" target="source" name="SyncCacheViewPixels">SyncCacheViewPixels</a></h2>
2460 <div class="doc-section">
2462 <p>SyncCacheViewPixels() saves the cache view pixels to the in-memory or disk cache. It returns MagickTrue if the pixel region is flushed, otherwise MagickFalse.</p></ol>
2464 <p>The format of the SyncCacheViewPixels method is:</p>
2467 MagickBooleanType SyncCacheViewPixels(CacheView *cache_view)
2470 <p>A description of each parameter follows:</p></ol>
2473 <ol><p>the cache view.</p></ol>
2476 <ol><p>return any errors or warnings in this structure.</p></ol>
2479 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2480 _8c.html" target="source" name="SyncImagePixels">SyncImagePixels</a></h2>
2481 <div class="doc-section">
2483 <p>SyncImagePixels() saves the image pixels to the in-memory or disk cache. The method returns MagickTrue if the pixel region is synced, otherwise MagickFalse.</p></ol>
2485 <p>The format of the SyncImagePixels() method is:</p>
2488 MagickBooleanType SyncImagePixels(Image *image)
2491 <p>A description of each parameter follows:</p></ol>
2494 <ol><p>the image.</p></ol>
2497 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2498 _8c.html" target="source" name="TemporaryFilename">TemporaryFilename</a></h2>
2499 <div class="doc-section">
2501 <p>TemporaryFilename() replaces the contents of path by a unique path name.</p></ol>
2503 <p>The format of the TemporaryFilename method is:</p>
2506 void TemporaryFilename(char *path)
2509 <p>A description of each parameter follows.</p></ol>
2512 <ol><p>Specifies a pointer to an array of characters. The unique path name is returned in this array.</p></ol>
2515 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2516 _8c.html" target="source" name="ThresholdImage">ThresholdImage</a></h2>
2517 <div class="doc-section">
2519 <p>ThresholdImage() changes the value of individual pixels based on the intensity of each pixel compared to threshold. The result is a high-contrast, two color image.</p></ol>
2521 <p>The format of the ThresholdImage method is:</p>
2524 unsigned int ThresholdImage(Image *image,const double threshold)
2527 <p>A description of each parameter follows:</p></ol>
2530 <ol><p>the image.</p></ol>
2533 <ol><p>Define the threshold value</p></ol>
2536 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2537 _8c.html" target="source" name="ThresholdImageChannel">ThresholdImageChannel</a></h2>
2538 <div class="doc-section">
2540 <p>ThresholdImageChannel() changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image.</p></ol>
2542 <p>The format of the ThresholdImageChannel method is:</p>
2545 unsigned int ThresholdImageChannel(Image *image,const char *threshold)
2548 <p>A description of each parameter follows:</p></ol>
2551 <ol><p>the image.</p></ol>
2554 <ol><p>define the threshold values.</p></ol>
2557 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2558 _8c.html" target="source" name="TransformHSL">TransformHSL</a></h2>
2559 <div class="doc-section">
2561 <p>TransformHSL() converts a (red, green, blue) to a (hue, saturation, lightness) triple.</p></ol>
2563 <p>The format of the TransformHSL method is:</p>
2566 void TransformHSL(const Quantum red,const Quantum green,
2567 const Quantum blue,double *hue,double *saturation,double *lightness)
2570 <p>A description of each parameter follows:</p></ol>
2572 <h5>red, green, blue</h5>
2573 <ol><p>A Quantum value representing the red, green, and blue component of a pixel..</p></ol>
2575 <h5>hue, saturation, lightness</h5>
2576 <ol><p>A pointer to a double value representing a component of the HSL color space.</p></ol>
2579 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2580 _8c.html" target="source" name="TranslateText">TranslateText</a></h2>
2581 <div class="doc-section">
2583 <p>TranslateText() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
2585 <p>The format of the TranslateText method is:</p>
2588 char *TranslateText(const ImageInfo *image_info,Image *image,
2589 const char *embed_text)
2592 <p>A description of each parameter follows:</p></ol>
2595 <ol><p>the image info.</p></ol>
2598 <ol><p>the image.</p></ol>
2601 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
2604 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2605 _8c.html" target="source" name="TransparentImage">TransparentImage</a></h2>
2606 <div class="doc-section">
2608 <p>TransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
2610 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
2612 <p>The format of the TransparentImage method is:</p>
2615 MagickBooleanType TransparentImage(Image *image,
2616 const PixelPacket target,const Quantum opacity)
2619 <p>A description of each parameter follows:</p></ol>
2622 <ol><p>the image.</p></ol>
2625 <ol><p>the RGB value of the target color.</p></ol>
2628 <ol><p>the replacement opacity value.</p></ol>
2631 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2632 _8c.html" target="source" name="UnshiftImageList">UnshiftImageList</a></h2>
2633 <div class="doc-section">
2635 <p>UnshiftImageList() adds the image to the beginning of the list.</p></ol>
2637 <p>The format of the UnshiftImageList method is:</p>
2640 unsigned int UnshiftImageList(Image *images,const Image *image,
2641 ExceptionInfo *exception)
2644 <p>A description of each parameter follows:</p></ol>
2647 <ol><p>the image list.</p></ol>
2650 <ol><p>the image.</p></ol>
2653 <ol><p>return any errors or warnings in this structure.</p></ol>
2659 <div id="linkbar">
\r
2660 <!-- <span id="linkbar-west"> </span> -->
\r
2661 <span id="linkbar-center">
\r
2662 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
2663 <a href="http://studio.webbyland.com/ImageMagick/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
2665 <span id="linkbar-east"> </span>
\r
2667 <div class="footer">
\r
2668 <span id="footer-west">© 1999-2010 ImageMagick Studio LLC</span>
\r
2669 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
2671 <div style="clear: both; margin: 0; width: 100%; "></div>
\r