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">
\r
5 <meta http-equiv="Content-Type" value="application/xhtml+xml" />
\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.tomsgutscheine.de">Tom's Gutscheine</a><!-- 201005010360 invendio.de-->
132 <div class="sponsor">
133 <a href="http://www.online-kredit-index.de">Kredit</a><!-- 201007010120 Buchhorn -->
135 <div class="sponsor">
136 <a href="http://www.blumenversender.com">Blumenversand</a><!-- 201005010120 -->
138 <div class="sponsor">
139 <a href="http://www.print24.de/">Druckerei</a><!-- 201009010720 -->
141 <div class="sponsor">
142 <a href="http://www.goyax.de">Börse</a><!-- 201004010240 Gewiese digital-finance.de -->
144 <div class="sponsor">
145 <a href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012011200 allesdruck.de-->
147 <div class="sponsor">
148 <a href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 201002010000 -->
158 <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="#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="#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>
160 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
161 _8c.html" target="source" name="AcquireCacheViewIndexes">AcquireCacheViewIndexes</a></h2>
162 <div class="doc-section">
164 <p>AcquireCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
166 <p>The format of the AcquireCacheViewIndexes method is:</p>
169 const IndexPacket *AcquireCacheViewIndexes(const CacheView *cache_view)
172 <p>A description of each parameter follows:</p></ol>
175 <ol><p>the cache view.</p></ol>
178 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
179 _8c.html" target="source" name="AcquireCacheViewPixels">AcquireCacheViewPixels</a></h2>
180 <div class="doc-section">
182 <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>
184 <p>The format of the AcquireCacheViewPixels method is:</p>
187 const PixelPacket *AcquireCacheViewPixels(const CacheView *cache_view,
188 const long x,const long y,const unsigned long columns,
189 const unsigned long rows,ExceptionInfo *exception)
192 <p>A description of each parameter follows:</p></ol>
195 <ol><p>the cache view.</p></ol>
197 <h5>x,y,columns,rows</h5>
198 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
201 <ol><p>return any errors or warnings in this structure.</p></ol>
204 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
205 _8c.html" target="source" name="AcquireImagePixels">AcquireImagePixels</a></h2>
206 <div class="doc-section">
208 <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>
210 <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>
212 <p>If you plan to modify the pixels, use GetAuthenticPixels() instead.</p></ol>
214 <p>Note, the AcquireImagePixels() and GetAuthenticPixels() methods are not thread-safe. In a threaded environment, use GetCacheViewVirtualPixels() or GetCacheViewAuthenticPixels() instead.</p></ol>
216 <p>The format of the AcquireImagePixels() method is:</p>
219 const PixelPacket *AcquireImagePixels(const Image *image,const long x,
220 const long y,const unsigned long columns,const unsigned long rows,
221 ExceptionInfo *exception)
224 <p>A description of each parameter follows:</p></ol>
227 <ol><p>the image.</p></ol>
229 <h5>x,y,columns,rows</h5>
230 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
233 <ol><p>return any errors or warnings in this structure.</p></ol>
236 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
237 _8c.html" target="source" name="AcquireIndexes">AcquireIndexes</a></h2>
238 <div class="doc-section">
240 <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>
242 <p>The format of the AcquireIndexes() method is:</p>
245 const IndexPacket *AcquireIndexes(const Image *image)
248 <p>A description of each parameter follows:</p></ol>
251 <ol><p>AcquireIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
254 <ol><p>the image.</p></ol>
257 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
258 _8c.html" target="source" name="AcquireMemory">AcquireMemory</a></h2>
259 <div class="doc-section">
261 <p>AcquireMemory() returns a pointer to a block of memory at least size bytes suitably aligned for any use.</p></ol>
263 <p>The format of the AcquireMemory method is:</p>
266 void *AcquireMemory(const size_t size)
269 <p>A description of each parameter follows:</p></ol>
272 <ol><p>the size of the memory in bytes to allocate.</p></ol>
275 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
276 _8c.html" target="source" name="AcquireOneCacheViewPixel">AcquireOneCacheViewPixel</a></h2>
277 <div class="doc-section">
279 <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>
281 <p>The format of the AcquireOneCacheViewPixel method is:</p>
284 MagickBooleanType AcquireOneCacheViewPixel(const CacheView *cache_view,
285 const long x,const long y,PixelPacket *pixel,ExceptionInfo *exception)
288 <p>A description of each parameter follows:</p></ol>
291 <ol><p>the cache view.</p></ol>
294 <ol><p>These values define the offset of the pixel.</p></ol>
297 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
300 <ol><p>return any errors or warnings in this structure.</p></ol>
303 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
304 _8c.html" target="source" name="AcquireOneCacheViewVirtualPixel">AcquireOneCacheViewVirtualPixel</a></h2>
305 <div class="doc-section">
307 <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>
309 <p>The format of the AcquireOneCacheViewPixel method is:</p>
312 MagickBooleanType AcquireOneCacheViewVirtualPixel(
313 const CacheView *cache_view,
314 const VirtualPixelMethod virtual_pixel_method,const long x,
315 const long y,PixelPacket *pixel,ExceptionInfo *exception)
318 <p>A description of each parameter follows:</p></ol>
321 <ol><p>the cache view.</p></ol>
323 <h5>virtual_pixel_method</h5>
324 <ol><p>the virtual pixel method.</p></ol>
327 <ol><p>These values define the offset of the pixel.</p></ol>
330 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
333 <ol><p>return any errors or warnings in this structure.</p></ol>
336 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
337 _8c.html" target="source" name="AcquireOneMagickPixel">AcquireOneMagickPixel</a></h2>
338 <div class="doc-section">
340 <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>
342 <p>The format of the AcquireOneMagickPixel() method is:</p>
345 MagickPixelPacket AcquireOneMagickPixel(const Image image,const long x,
346 const long y,ExceptionInfo exception)
349 <p>A description of each parameter follows:</p></ol>
352 <ol><p>the image.</p></ol>
355 <ol><p>These values define the location of the pixel to return.</p></ol>
358 <ol><p>return any errors or warnings in this structure.</p></ol>
361 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
362 _8c.html" target="source" name="AcquireOnePixel">AcquireOnePixel</a></h2>
363 <div class="doc-section">
365 <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>
367 <p>The format of the AcquireOnePixel() method is:</p>
370 PixelPacket AcquireOnePixel(const Image image,const long x,
371 const long y,ExceptionInfo exception)
374 <p>A description of each parameter follows:</p></ol>
377 <ol><p>the image.</p></ol>
380 <ol><p>These values define the location of the pixel to return.</p></ol>
383 <ol><p>return any errors or warnings in this structure.</p></ol>
386 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
387 _8c.html" target="source" name="AcquireOneVirtualPixel">AcquireOneVirtualPixel</a></h2>
388 <div class="doc-section">
390 <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>
392 <p>The format of the AcquireOneVirtualPixel() method is:</p>
395 PixelPacket AcquireOneVirtualPixel(const Image image,
396 const VirtualPixelMethod virtual_pixel_method,const long x,
397 const long y,ExceptionInfo exception)
400 <p>A description of each parameter follows:</p></ol>
402 <h5>virtual_pixel_method</h5>
403 <ol><p>the virtual pixel method.</p></ol>
406 <ol><p>the image.</p></ol>
409 <ol><p>These values define the location of the pixel to return.</p></ol>
412 <ol><p>return any errors or warnings in this structure.</p></ol>
415 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
416 _8c.html" target="source" name="AcquirePixels">AcquirePixels</a></h2>
417 <div class="doc-section">
419 <p>AcquirePixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
421 <p>The format of the AcquirePixels() method is:</p>
424 const PixelPacket *AcquirePixels(const Image image)
427 <p>A description of each parameter follows:</p></ol>
430 <ol><p>the image.</p></ol>
433 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
434 _8c.html" target="source" name="AffinityImage">AffinityImage</a></h2>
435 <div class="doc-section">
437 <p>AffinityImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
439 <p>The format of the AffinityImage method is:</p>
442 MagickBooleanType AffinityImage(const QuantizeInfo *quantize_info,
443 Image *image,const Image *affinity_image)
446 <p>A description of each parameter follows:</p></ol>
448 <h5>quantize_info</h5>
449 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
452 <ol><p>the image.</p></ol>
454 <h5>affinity_image</h5>
455 <ol><p>the reference image.</p></ol>
458 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
459 _8c.html" target="source" name="AffinityImages">AffinityImages</a></h2>
460 <div class="doc-section">
462 <p>AffinityImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
464 <p>The format of the AffinityImage method is:</p>
467 MagickBooleanType AffinityImages(const QuantizeInfo *quantize_info,
468 Image *images,Image *affinity_image)
471 <p>A description of each parameter follows:</p></ol>
473 <h5>quantize_info</h5>
474 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
477 <ol><p>the image sequence.</p></ol>
479 <h5>affinity_image</h5>
480 <ol><p>the reference image.</p></ol>
483 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
484 _8c.html" target="source" name="AllocateImage">AllocateImage</a></h2>
485 <div class="doc-section">
487 <p>AllocateImage() returns a pointer to an image structure initialized to default values.</p></ol>
489 <p>The format of the AllocateImage method is:</p>
492 Image *AllocateImage(const ImageInfo *image_info)
495 <p>A description of each parameter follows:</p></ol>
498 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
501 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
502 _8c.html" target="source" name="AllocateImageColormap">AllocateImageColormap</a></h2>
503 <div class="doc-section">
505 <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>
507 <p>The format of the AllocateImageColormap method is:</p>
510 MagickBooleanType AllocateImageColormap(Image *image,
511 const unsigned long colors)
514 <p>A description of each parameter follows:</p></ol>
517 <ol><p>the image.</p></ol>
520 <ol><p>the number of colors in the image colormap.</p></ol>
523 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
524 _8c.html" target="source" name="AllocateNextImage">AllocateNextImage</a></h2>
525 <div class="doc-section">
527 <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>
529 <p>The format of the AllocateNextImage method is:</p>
532 void AllocateNextImage(const ImageInfo *image_info,Image *image)
535 <p>A description of each parameter follows:</p></ol>
538 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
541 <ol><p>the image.</p></ol>
544 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
545 _8c.html" target="source" name="AllocateString">AllocateString</a></h2>
546 <div class="doc-section">
548 <p>AllocateString() allocates memory for a string and copies the source string to that memory location (and returns it).</p></ol>
550 <p>The format of the AllocateString method is:</p>
553 char *AllocateString(const char *source)
556 <p>A description of each parameter follows:</p></ol>
559 <ol><p>A character string.</p></ol>
562 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
563 _8c.html" target="source" name="ChannelThresholdImage">ChannelThresholdImage</a></h2>
564 <div class="doc-section">
566 <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>
568 <p>The format of the ChannelThresholdImage method is:</p>
571 unsigned int ChannelThresholdImage(Image *image,const char *level)
574 <p>A description of each parameter follows:</p></ol>
577 <ol><p>the image.</p></ol>
580 <ol><p>define the threshold values.</p></ol>
583 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
584 _8c.html" target="source" name="ClipPathImage">ClipPathImage</a></h2>
585 <div class="doc-section">
587 <p>ClipPathImage() sets the image clip mask based any clipping path information if it exists.</p></ol>
589 <p>The format of the ClipImage method is:</p>
592 MagickBooleanType ClipPathImage(Image *image,const char *pathname,
593 const MagickBooleanType inside)
596 <p>A description of each parameter follows:</p></ol>
599 <ol><p>the image.</p></ol>
602 <ol><p>name of clipping path resource. If name is preceded by #, use clipping path numbered by name.</p></ol>
605 <ol><p>if non-zero, later operations take effect inside clipping path. Otherwise later operations take effect outside clipping path.</p></ol>
608 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
609 _8c.html" target="source" name="CloneImageAttributes">CloneImageAttributes</a></h2>
610 <div class="doc-section">
612 <p>CloneImageAttributes() clones one or more image attributes.</p></ol>
614 <p>The format of the CloneImageAttributes method is:</p>
617 MagickBooleanType CloneImageAttributes(Image *image,
618 const Image *clone_image)
621 <p>A description of each parameter follows:</p></ol>
624 <ol><p>the image.</p></ol>
627 <ol><p>the clone image.</p></ol>
630 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
631 _8c.html" target="source" name="CloneMemory">CloneMemory</a></h2>
632 <div class="doc-section">
634 <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>
636 <p>The format of the CloneMemory method is:</p>
639 void *CloneMemory(void *destination,const void *source,
643 <p>A description of each parameter follows:</p></ol>
646 <ol><p>the destination.</p></ol>
649 <ol><p>the source.</p></ol>
652 <ol><p>the size of the memory in bytes to allocate.</p></ol>
655 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
656 _8c.html" target="source" name="CloseCacheView">CloseCacheView</a></h2>
657 <div class="doc-section">
659 <p>CloseCacheView() closes the specified view returned by a previous call to OpenCacheView().</p></ol>
661 <p>The format of the CloseCacheView method is:</p>
664 CacheView *CloseCacheView(CacheView *view_info)
667 <p>A description of each parameter follows:</p></ol>
670 <ol><p>the address of a structure of type CacheView.</p></ol>
673 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
674 _8c.html" target="source" name="ColorFloodfill">ColorFloodfill</a></h2>
675 <div class="doc-section">
677 <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>
679 <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>
681 <p>The format of the ColorFloodfillImage method is:</p>
684 MagickBooleanType ColorFloodfillImage(Image *image,
685 const DrawInfo *draw_info,const PixelPacket target,
686 const long x_offset,const long y_offset,const PaintMethod method)
689 <p>A description of each parameter follows:</p></ol>
692 <ol><p>the image.</p></ol>
695 <ol><p>the draw info.</p></ol>
698 <ol><p>the RGB value of the target color.</p></ol>
701 <ol><p>the starting location of the operation.</p></ol>
704 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
707 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
708 _8c.html" target="source" name="DeleteImageAttribute">DeleteImageAttribute</a></h2>
709 <div class="doc-section">
711 <p>DeleteImageAttribute() deletes an attribute from the image.</p></ol>
713 <p>The format of the DeleteImageAttribute method is:</p>
716 MagickBooleanType DeleteImageAttribute(Image *image,const char *key)
719 <p>A description of each parameter follows:</p></ol>
722 <ol><p>the image info.</p></ol>
725 <ol><p>the image key.</p></ol>
728 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
729 _8c.html" target="source" name="DeleteImageList">DeleteImageList</a></h2>
730 <div class="doc-section">
732 <p>DeleteImageList() deletes an image at the specified position in the list.</p></ol>
734 <p>The format of the DeleteImageList method is:</p>
737 unsigned int DeleteImageList(Image *images,const long offset)
740 <p>A description of each parameter follows:</p></ol>
743 <ol><p>the image list.</p></ol>
746 <ol><p>the position within the list.</p></ol>
749 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
750 _8c.html" target="source" name="DeleteMagickRegistry">DeleteMagickRegistry</a></h2>
751 <div class="doc-section">
753 <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>
755 <p>The format of the DeleteMagickRegistry method is:</p>
758 MagickBooleanType DeleteMagickRegistry(const long id)
761 <p>A description of each parameter follows:</p></ol>
764 <ol><p>the registry id.</p></ol>
767 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
768 _8c.html" target="source" name="DescribeImage">DescribeImage</a></h2>
769 <div class="doc-section">
771 <p>DescribeImage() describes an image by printing its attributes to the file. Attributes include the image width, height, size, and others.</p></ol>
773 <p>The format of the DescribeImage method is:</p>
776 MagickBooleanType DescribeImage(Image *image,FILE *file,
777 const MagickBooleanType verbose)
780 <p>A description of each parameter follows:</p></ol>
783 <ol><p>the image.</p></ol>
786 <ol><p>the file, typically stdout.</p></ol>
789 <ol><p>A value other than zero prints more detailed information about the image.</p></ol>
792 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
793 _8c.html" target="source" name="DestroyImageAttributes">DestroyImageAttributes</a></h2>
794 <div class="doc-section">
796 <p>DestroyImageAttributes() deallocates memory associated with the image attribute list.</p></ol>
798 <p>The format of the DestroyImageAttributes method is:</p>
801 DestroyImageAttributes(Image *image)
804 <p>A description of each parameter follows:</p></ol>
807 <ol><p>the image.</p></ol>
810 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
811 _8c.html" target="source" name="DestroyImages">DestroyImages</a></h2>
812 <div class="doc-section">
814 <p>DestroyImages() destroys an image list.</p></ol>
816 <p>The format of the DestroyImages method is:</p>
819 void DestroyImages(Image *image)
822 <p>A description of each parameter follows:</p></ol>
825 <ol><p>the image sequence.</p></ol>
828 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
829 _8c.html" target="source" name="DestroyMagick">DestroyMagick</a></h2>
830 <div class="doc-section">
832 <p>DestroyMagick() destroys the ImageMagick environment.</p></ol>
834 <p>The format of the DestroyMagick function is:</p>
841 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
842 _8c.html" target="source" name="DispatchImage">DispatchImage</a></h2>
843 <div class="doc-section">
845 <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>
847 <p>Suppose you want to extract the first scanline of a 640x480 image as character data in red-green-blue order:</p>
850 DispatchImage(image,0,0,640,1,"RGB",CharPixel,pixels,exception);
853 <p>The format of the DispatchImage method is:</p>
856 unsigned int DispatchImage(const Image *image,const long x_offset,
857 const long y_offset,const unsigned long columns,
858 const unsigned long rows,const char *map,const StorageType type,
859 void *pixels,ExceptionInfo *exception)
862 <p>A description of each parameter follows:</p></ol>
865 <ol><p>the image.</p></ol>
867 <h5>x_offset, y_offset, columns, rows</h5>
868 <ol><p>These values define the perimeter of a region of pixels you want to extract.</p></ol>
871 <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>
874 <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>
877 <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>
880 <ol><p>return any errors or warnings in this structure.</p></ol>
883 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
884 _8c.html" target="source" name="ExtractSubimageFromImageImage">ExtractSubimageFromImageImage</a></h2>
885 <div class="doc-section">
887 <p>ExtractSubimageFromImageImage() extracts a region of the image that most closely resembles the reference.</p></ol>
889 <p>The format of the ExtractSubimageFromImageImage method is:</p>
892 Image *ExtractSubimageFromImage(const Image *image,const Image *reference,
893 ExceptionInfo *exception)
896 <p>A description of each parameter follows:</p></ol>
899 <ol><p>the image.</p></ol>
902 <ol><p>find an area of the image that closely resembles this image.</p></ol>
905 <ol><p>return any errors or warnings in this structure.</p></ol>
908 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
909 _8c.html" target="source" name="FlattenImages">FlattenImages</a></h2>
910 <div class="doc-section">
912 <p>FlattenImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
914 <p>The format of the FlattenImage method is:</p>
917 Image *FlattenImage(Image *image,ExceptionInfo *exception)
920 <p>A description of each parameter follows:</p></ol>
923 <ol><p>the image sequence.</p></ol>
926 <ol><p>return any errors or warnings in this structure.</p></ol>
929 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
930 _8c.html" target="source" name="FormatImageAttribute">FormatImageAttribute</a></h2>
931 <div class="doc-section">
933 <p>FormatImageAttribute() permits formatted key/value pairs to be saved as an image attribute.</p></ol>
935 <p>The format of the FormatImageAttribute method is:</p>
938 MagickBooleanType FormatImageAttribute(Image *image,const char *key,
939 const char *format,...)
942 <p>A description of each parameter follows.</p></ol>
945 <ol><p>The image.</p></ol>
948 <ol><p>The attribute key.</p></ol>
951 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
954 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
955 _8c.html" target="source" name="FormatString">FormatString</a></h2>
956 <div class="doc-section">
958 <p>FormatString() prints formatted output of a variable argument list.</p></ol>
960 <p>The format of the FormatString method is:</p>
963 void FormatString(char *string,const char *format,...)
966 <p>A description of each parameter follows.</p></ol>
969 <ol><p>Method FormatString returns the formatted string in this character buffer.</p></ol>
972 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
975 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
976 _8c.html" target="source" name="GetConfigureBlob">GetConfigureBlob</a></h2>
977 <div class="doc-section">
979 <p>GetConfigureBlob() returns the specified configure file as a blob.</p></ol>
981 <p>The format of the GetConfigureBlob method is:</p>
984 void *GetConfigureBlob(const char *filename,ExceptionInfo *exception)
987 <p>A description of each parameter follows:</p></ol>
990 <ol><p>the configure file name.</p></ol>
993 <ol><p>return the full path information of the configure file.</p></ol>
996 <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>
999 <ol><p>return any errors or warnings in this structure.</p></ol>
1002 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1003 _8c.html" target="source" name="GetCacheView">GetCacheView</a></h2>
1004 <div class="doc-section">
1006 <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>
1008 <p>The format of the GetCacheView method is:</p>
1011 PixelPacket *GetCacheView(CacheView *cache_view,const long x,
1012 const long y,const unsigned long columns,const unsigned long rows)
1015 <p>A description of each parameter follows:</p></ol>
1018 <ol><p>the address of a structure of type CacheView.</p></ol>
1020 <h5>x,y,columns,rows</h5>
1021 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1024 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1025 _8c.html" target="source" name="GetCacheViewIndexes">GetCacheViewIndexes</a></h2>
1026 <div class="doc-section">
1028 <p>GetCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
1030 <p>The format of the GetCacheViewIndexes method is:</p>
1033 IndexPacket *GetCacheViewIndexes(CacheView *cache_view)
1036 <p>A description of each parameter follows:</p></ol>
1039 <ol><p>the cache view.</p></ol>
1042 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1043 _8c.html" target="source" name="GetCacheViewPixels">GetCacheViewPixels</a></h2>
1044 <div class="doc-section">
1046 <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>
1048 <p>The format of the GetCacheViewPixels method is:</p>
1051 PixelPacket *GetCacheViewPixels(CacheView *cache_view,const long x,
1052 const long y,const unsigned long columns,const unsigned long rows)
1055 <p>A description of each parameter follows:</p></ol>
1058 <ol><p>the cache view.</p></ol>
1060 <h5>x,y,columns,rows</h5>
1061 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1064 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1065 _8c.html" target="source" name="GetImageAttribute">GetImageAttribute</a></h2>
1066 <div class="doc-section">
1068 <p>GetImageAttribute() searches the list of image attributes and returns a pointer to the attribute if it exists otherwise NULL.</p></ol>
1070 <p>The format of the GetImageAttribute method is:</p>
1073 const ImageAttribute *GetImageAttribute(const Image *image,
1077 <p>A description of each parameter follows:</p></ol>
1080 <ol><p>the image.</p></ol>
1083 <ol><p>These character strings are the name of an image attribute to return.</p></ol>
1086 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1087 _8c.html" target="source" name="GetImageClippingPathAttribute">GetImageClippingPathAttribute</a></h2>
1088 <div class="doc-section">
1090 <p>GetImageClippingPathAttribute() searches the list of image attributes and returns a pointer to a clipping path if it exists otherwise NULL.</p></ol>
1092 <p>The format of the GetImageClippingPathAttribute method is:</p>
1095 const ImageAttribute *GetImageClippingPathAttribute(Image *image)
1098 <p>A description of each parameter follows:</p></ol>
1101 <ol><p>Method GetImageClippingPathAttribute returns the clipping path if it exists otherwise NULL.</p></ol>
1104 <ol><p>the image.</p></ol>
1107 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1108 _8c.html" target="source" name="GetImageFromMagickRegistry">GetImageFromMagickRegistry</a></h2>
1109 <div class="doc-section">
1111 <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>
1113 <p>The format of the GetImageFromMagickRegistry method is:</p>
1116 Image *GetImageFromMagickRegistry(const char *name,long *id,
1117 ExceptionInfo *exception)
1120 <p>A description of each parameter follows:</p></ol>
1123 <ol><p>the name of the image to retrieve from the registry.</p></ol>
1126 <ol><p>the registry id.</p></ol>
1129 <ol><p>return any errors or warnings in this structure.</p></ol>
1132 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1133 _8c.html" target="source" name="GetMagickRegistry">GetMagickRegistry</a></h2>
1134 <div class="doc-section">
1136 <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>
1138 <p>The format of the GetMagickRegistry method is:</p>
1141 const void *GetMagickRegistry(const long id,RegistryType *type,
1142 size_t *length,ExceptionInfo *exception)
1145 <p>A description of each parameter follows:</p></ol>
1148 <ol><p>the registry id.</p></ol>
1151 <ol><p>the registry type.</p></ol>
1154 <ol><p>the blob length in number of bytes.</p></ol>
1157 <ol><p>return any errors or warnings in this structure.</p></ol>
1160 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1161 _8c.html" target="source" name="GetImageGeometry">GetImageGeometry</a></h2>
1162 <div class="doc-section">
1164 <p>GetImageGeometry() returns a region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1166 <p>The format of the GetImageGeometry method is:</p>
1169 int GetImageGeometry(Image *image,const char *geometry,
1170 const unsigned int size_to_fit,RectangeInfo *region_info)
1173 <p>A description of each parameter follows:</p></ol>
1176 <ol><p>Method GetImageGeometry returns a bitmask that indicates which of the four values were located in the geometry string.</p></ol>
1179 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
1181 <h5>size_to_fit</h5>
1182 <ol><p>A value other than 0 means to scale the region so it fits within the specified width and height.</p></ol>
1184 <h5>region_info</h5>
1185 <ol><p>the region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1188 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1189 _8c.html" target="source" name="GetImageList">GetImageList</a></h2>
1190 <div class="doc-section">
1192 <p>GetImageList() returns an image at the specified position in the list.</p></ol>
1194 <p>The format of the GetImageList method is:</p>
1197 Image *GetImageList(const Image *images,const long offset,
1198 ExceptionInfo *exception)
1201 <p>A description of each parameter follows:</p></ol>
1204 <ol><p>the image list.</p></ol>
1207 <ol><p>the position within the list.</p></ol>
1210 <ol><p>return any errors or warnings in this structure.</p></ol>
1213 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1214 _8c.html" target="source" name="GetImageListIndex">GetImageListIndex</a></h2>
1215 <div class="doc-section">
1217 <p>GetImageListIndex() returns the position in the list of the specified image.</p></ol>
1219 <p>The format of the GetImageListIndex method is:</p>
1222 long GetImageListIndex(const Image *images)
1225 <p>A description of each parameter follows:</p></ol>
1228 <ol><p>the image list.</p></ol>
1231 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1232 _8c.html" target="source" name="GetImageListSize">GetImageListSize</a></h2>
1233 <div class="doc-section">
1235 <p>GetImageListSize() returns the number of images in the list.</p></ol>
1237 <p>The format of the GetImageListSize method is:</p>
1240 unsigned long GetImageListSize(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="GetImagePixels">GetImagePixels</a></h2>
1251 <div class="doc-section">
1253 <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>
1255 <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>
1257 <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>
1259 <p>The format of the GetImagePixels() method is:</p>
1262 PixelPacket *GetImagePixels(Image *image,const long x,const long y,
1263 const unsigned long columns,const unsigned long rows)
1266 <p>A description of each parameter follows:</p></ol>
1269 <ol><p>the image.</p></ol>
1271 <h5>x,y,columns,rows</h5>
1272 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1275 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1276 _8c.html" target="source" name="GetIndexes">GetIndexes</a></h2>
1277 <div class="doc-section">
1279 <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>
1281 <p>The format of the GetIndexes() method is:</p>
1284 IndexPacket *GetIndexes(const Image *image)
1287 <p>A description of each parameter follows:</p></ol>
1290 <ol><p>GetIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1293 <ol><p>the image.</p></ol>
1296 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1297 _8c.html" target="source" name="GetNextImage">GetNextImage</a></h2>
1298 <div class="doc-section">
1300 <p>GetNextImage() returns the next image in a list.</p></ol>
1302 <p>The format of the GetNextImage method is:</p>
1305 Image *GetNextImage(const Image *images)
1308 <p>A description of each parameter follows:</p></ol>
1311 <ol><p>the image list.</p></ol>
1314 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1315 _8c.html" target="source" name="GetNextImageAttribute">GetNextImageAttribute</a></h2>
1316 <div class="doc-section">
1318 <p>GetNextImageAttribute() gets the next image attribute.</p></ol>
1320 <p>The format of the GetNextImageAttribute method is:</p>
1323 const ImageAttribute *GetNextImageAttribute(const Image *image)
1326 <p>A description of each parameter follows:</p></ol>
1329 <ol><p>the image.</p></ol>
1332 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1333 _8c.html" target="source" name="GetNumberScenes">GetNumberScenes</a></h2>
1334 <div class="doc-section">
1336 <p>GetNumberScenes() returns the number of images in the list.</p></ol>
1338 <p>The format of the GetNumberScenes method is:</p>
1341 unsigned int GetNumberScenes(const Image *images)
1344 <p>A description of each parameter follows:</p></ol>
1347 <ol><p>the image list.</p></ol>
1350 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1351 _8c.html" target="source" name="GetOnePixel">GetOnePixel</a></h2>
1352 <div class="doc-section">
1354 <p>GetOnePixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs.</p></ol>
1356 <p>The format of the GetOnePixel() method is:</p>
1359 PixelPacket GetOnePixel(const Image image,const long x,const long y)
1362 <p>A description of each parameter follows:</p></ol>
1365 <ol><p>the image.</p></ol>
1368 <ol><p>These values define the location of the pixel to return.</p></ol>
1371 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1372 _8c.html" target="source" name="GetPixels">GetPixels</a></h2>
1373 <div class="doc-section">
1375 <p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1377 <p>The format of the GetPixels() method is:</p>
1380 PixelPacket *GetPixels(const Image image)
1383 <p>A description of each parameter follows:</p></ol>
1386 <ol><p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1389 <ol><p>the image.</p></ol>
1392 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1393 _8c.html" target="source" name="GetPreviousImage">GetPreviousImage</a></h2>
1394 <div class="doc-section">
1396 <p>GetPreviousImage() returns the previous image in a list.</p></ol>
1398 <p>The format of the GetPreviousImage method is:</p>
1401 Image *GetPreviousImage(const Image *images)
1404 <p>A description of each parameter follows:</p></ol>
1407 <ol><p>the image list.</p></ol>
1410 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1411 _8c.html" target="source" name="HSLTransform">HSLTransform</a></h2>
1412 <div class="doc-section">
1414 <p>HSLTransform() converts a (hue, saturation, lightness) to a (red, green, blue) triple.</p></ol>
1416 <p>The format of the HSLTransformImage method is:</p>
1419 void HSLTransform(const double hue,const double saturation,
1420 const double lightness,Quantum *red,Quantum *green,Quantum *blue)
1423 <p>A description of each parameter follows:</p></ol>
1425 <h5>hue, saturation, lightness</h5>
1426 <ol><p>A double value representing a component of the HSL color space.</p></ol>
1428 <h5>red, green, blue</h5>
1429 <ol><p>A pointer to a pixel component of type Quantum.</p></ol>
1432 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1433 _8c.html" target="source" name="IdentityAffine">IdentityAffine</a></h2>
1434 <div class="doc-section">
1436 <p>IdentityAffine() initializes the affine transform to the identity matrix.</p></ol>
1438 <p>The format of the IdentityAffine method is:</p>
1441 IdentityAffine(AffineMatrix *affine)
1444 <p>A description of each parameter follows:</p></ol>
1447 <ol><p>A pointer the affine transform of type AffineMatrix.</p></ol>
1450 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1451 _8c.html" target="source" name="InitializeMagick">InitializeMagick</a></h2>
1452 <div class="doc-section">
1454 <p>InitializeMagick() initializes the ImageMagick environment.</p></ol>
1456 <p>The format of the InitializeMagick function is:</p>
1459 InitializeMagick(const char *path)
1462 <p>A description of each parameter follows:</p></ol>
1465 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1468 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1469 _8c.html" target="source" name="InterpolatePixelColor">InterpolatePixelColor</a></h2>
1470 <div class="doc-section">
1472 <p>InterpolatePixelColor() applies bi-linear or tri-linear interpolation between a pixel and it's neighbors.</p></ol>
1474 <p>The format of the InterpolatePixelColor method is:</p>
1477 MagickPixelPacket InterpolatePixelColor(const Image *image,
1478 CacheView *view_info,InterpolatePixelMethod method,const double x,
1479 const double y,ExceptionInfo *exception)
1482 <p>A description of each parameter follows:</p></ol>
1485 <ol><p>the image.</p></ol>
1488 <ol><p>the image cache view.</p></ol>
1491 <ol><p>the type of pixel color interpolation.</p></ol>
1494 <ol><p>A double representing the current (x,y) position of the pixel.</p></ol>
1497 <ol><p>return any errors or warnings in this structure.</p></ol>
1500 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1501 _8c.html" target="source" name="InterpretImageAttributes">InterpretImageAttributes</a></h2>
1502 <div class="doc-section">
1504 <p>InterpretImageAttributes() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
1506 <p>The format of the InterpretImageAttributes method is:</p>
1509 char *InterpretImageAttributes(const ImageInfo *image_info,Image *image,
1510 const char *embed_text)
1513 <p>A description of each parameter follows:</p></ol>
1516 <ol><p>the image info.</p></ol>
1519 <ol><p>the image.</p></ol>
1522 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
1525 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1526 _8c.html" target="source" name="LevelImageColor">LevelImageColor</a></h2>
1527 <div class="doc-section">
1529 <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>
1531 <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>
1533 <p>The format of the LevelImageColors method is:</p>
1536 MagickBooleanType LevelImageColors(Image *image,const ChannelType channel,
1537 const MagickPixelPacket *black_color,const MagickPixelPacket *white_color,
1538 const MagickBooleanType invert)
1541 <p>A description of each parameter follows:</p></ol>
1544 <ol><p>the image.</p></ol>
1547 <ol><p>the channel.</p></ol>
1549 <h5>black_color</h5>
1550 <ol><p>The color to map black to/from</p></ol>
1552 <h5>white_point</h5>
1553 <ol><p>The color to map white to/from</p></ol>
1556 <ol><p>if true map the colors (levelize), rather than from (level)</p></ol>
1559 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1560 _8c.html" target="source" name="LiberateMemory">LiberateMemory</a></h2>
1561 <div class="doc-section">
1563 <p>LiberateMemory() frees memory that has already been allocated, and NULL's the pointer to it.</p></ol>
1565 <p>The format of the LiberateMemory method is:</p>
1568 void LiberateMemory(void **memory)
1571 <p>A description of each parameter follows:</p></ol>
1574 <ol><p>A pointer to a block of memory to free for reuse.</p></ol>
1577 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1578 _8c.html" target="source" name="LiberateSemaphoreInfo">LiberateSemaphoreInfo</a></h2>
1579 <div class="doc-section">
1581 <p>LiberateSemaphoreInfo() relinquishes a semaphore.</p></ol>
1583 <p>The format of the LiberateSemaphoreInfo method is:</p>
1586 LiberateSemaphoreInfo(void **semaphore_info)
1589 <p>A description of each parameter follows:</p></ol>
1591 <h5>semaphore_info</h5>
1592 <ol><p>Specifies a pointer to an SemaphoreInfo structure.</p></ol>
1595 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1596 _8c.html" target="source" name="MagickIncarnate">MagickIncarnate</a></h2>
1597 <div class="doc-section">
1599 <p>MagickIncarnate() initializes the ImageMagick environment.</p></ol>
1601 <p>The format of the MagickIncarnate function is:</p>
1604 MagickIncarnate(const char *path)
1607 <p>A description of each parameter follows:</p></ol>
1610 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1613 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1614 _8c.html" target="source" name="MagickMonitor">MagickMonitor</a></h2>
1615 <div class="doc-section">
1617 <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>
1619 <p>The format of the MagickMonitor method is:</p>
1622 MagickBooleanType MagickMonitor(const char *text,
1623 const MagickOffsetType offset,const MagickSizeType span,
1627 <p>A description of each parameter follows:</p></ol>
1630 <ol><p>the position relative to the span parameter which represents how much progress has been made toward completing a task.</p></ol>
1633 <ol><p>the span relative to completing a task.</p></ol>
1635 <h5>client_data</h5>
1636 <ol><p>the client data.</p></ol>
1639 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1640 _8c.html" target="source" name="MapImage">MapImage</a></h2>
1641 <div class="doc-section">
1643 <p>MapImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
1645 <p>The format of the MapImage method is:</p>
1648 MagickBooleanType MapImage(Image *image,const Image *map_image,
1649 const MagickBooleanType dither)
1652 <p>A description of each parameter follows:</p></ol>
1655 <ol><p>Specifies a pointer to an Image structure.</p></ol>
1658 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
1661 <ol><p>Set this integer value to something other than zero to dither the mapped image.</p></ol>
1664 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1665 _8c.html" target="source" name="MapImages">MapImages</a></h2>
1666 <div class="doc-section">
1668 <p>MapImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
1670 <p>The format of the MapImage method is:</p>
1673 MagickBooleanType MapImages(Image *images,Image *map_image,
1674 const MagickBooleanType dither)
1677 <p>A description of each parameter follows:</p></ol>
1680 <ol><p>Specifies a pointer to a set of Image structures.</p></ol>
1683 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
1686 <ol><p>Set this integer value to something other than zero to dither the quantized image.</p></ol>
1689 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1690 _8c.html" target="source" name="MatteFloodfill">MatteFloodfill</a></h2>
1691 <div class="doc-section">
1693 <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>
1695 <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>
1697 <p>The format of the MatteFloodfillImage method is:</p>
1700 MagickBooleanType MatteFloodfillImage(Image *image,
1701 const PixelPacket target,const Quantum opacity,const long x_offset,
1702 const long y_offset,const PaintMethod method)
1705 <p>A description of each parameter follows:</p></ol>
1708 <ol><p>the image.</p></ol>
1711 <ol><p>the RGB value of the target color.</p></ol>
1714 <ol><p>the level of transparency: 0 is fully opaque and QuantumRange is fully transparent.</p></ol>
1717 <ol><p>the starting location of the operation.</p></ol>
1720 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
1723 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1724 _8c.html" target="source" name="MosaicImages">MosaicImages</a></h2>
1725 <div class="doc-section">
1727 <p>MosaicImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
1729 <p>The format of the MosaicImage method is:</p>
1732 Image *MosaicImages(const Image *image,ExceptionInfo *exception)
1735 <p>A description of each parameter follows:</p></ol>
1738 <ol><p>the image list to be composited together</p></ol>
1741 <ol><p>return any errors or warnings in this structure.</p></ol>
1744 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1745 _8c.html" target="source" name="OpaqueImage">OpaqueImage</a></h2>
1746 <div class="doc-section">
1748 <p>OpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
1750 <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>
1752 <p>The format of the OpaqueImage method is:</p>
1755 MagickBooleanType OpaqueImage(Image *image,
1756 const PixelPacket *target,const PixelPacket fill)
1759 <p>A description of each parameter follows:</p></ol>
1762 <ol><p>the image.</p></ol>
1765 <ol><p>the RGB value of the target color.</p></ol>
1768 <ol><p>the replacement color.</p></ol>
1771 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1772 _8c.html" target="source" name="OpenCacheView">OpenCacheView</a></h2>
1773 <div class="doc-section">
1775 <p>OpenCacheView() opens a view into the pixel cache, using the VirtualPixelMethod that is defined within the given image itself.</p></ol>
1777 <p>The format of the OpenCacheView method is:</p>
1780 CacheView *OpenCacheView(const Image *image)
1783 <p>A description of each parameter follows:</p></ol>
1786 <ol><p>the image.</p></ol>
1789 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1790 _8c.html" target="source" name="PaintFloodfill">PaintFloodfill</a></h2>
1791 <div class="doc-section">
1793 <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>
1795 <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>
1797 <p>The format of the PaintFloodfillImage method is:</p>
1800 MagickBooleanType PaintFloodfillImage(Image *image,
1801 const ChannelType channel,const MagickPixelPacket target,const long x,
1802 const long y,const DrawInfo *draw_info,const PaintMethod method)
1805 <p>A description of each parameter follows:</p></ol>
1808 <ol><p>the image.</p></ol>
1811 <ol><p>the channel(s).</p></ol>
1814 <ol><p>the RGB value of the target color.</p></ol>
1817 <ol><p>the starting location of the operation.</p></ol>
1820 <ol><p>the draw info.</p></ol>
1823 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
1826 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1827 _8c.html" target="source" name="PaintOpaqueImage">PaintOpaqueImage</a></h2>
1828 <div class="doc-section">
1830 <p>PaintOpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
1832 <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>
1834 <p>The format of the PaintOpaqueImage method is:</p>
1837 MagickBooleanType PaintOpaqueImage(Image *image,
1838 const PixelPacket *target,const PixelPacket *fill)
1839 MagickBooleanType PaintOpaqueImageChannel(Image *image,
1840 const ChannelType channel,const PixelPacket *target,
1841 const PixelPacket *fill)
1844 <p>A description of each parameter follows:</p></ol>
1847 <ol><p>the image.</p></ol>
1850 <ol><p>the channel(s).</p></ol>
1853 <ol><p>the RGB value of the target color.</p></ol>
1856 <ol><p>the replacement color.</p></ol>
1859 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1860 _8c.html" target="source" name="PaintTransparentImage">PaintTransparentImage</a></h2>
1861 <div class="doc-section">
1863 <p>PaintTransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
1865 <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>
1867 <p>The format of the PaintTransparentImage method is:</p>
1870 MagickBooleanType PaintTransparentImage(Image *image,
1871 const MagickPixelPacket *target,const Quantum opacity)
1874 <p>A description of each parameter follows:</p></ol>
1877 <ol><p>the image.</p></ol>
1880 <ol><p>the RGB value of the target color.</p></ol>
1883 <ol><p>the replacement opacity value.</p></ol>
1886 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1887 _8c.html" target="source" name="ParseSizeGeometry">ParseSizeGeometry</a></h2>
1888 <div class="doc-section">
1890 <p>ParseSizeGeometry() returns a region as defined by the geometry string with respect to the image dimensions and aspect ratio.</p></ol>
1892 <p>The format of the ParseSizeGeometry method is:</p>
1895 MagickStatusType ParseSizeGeometry(const Image *image,
1896 const char *geometry,RectangeInfo *region_info)
1899 <p>A description of each parameter follows:</p></ol>
1902 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
1904 <h5>region_info</h5>
1905 <ol><p>the region as defined by the geometry string.</p></ol>
1908 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1909 _8c.html" target="source" name="PopImageList">PopImageList</a></h2>
1910 <div class="doc-section">
1912 <p>PopImageList() removes the last image in the list.</p></ol>
1914 <p>The format of the PopImageList method is:</p>
1917 Image *PopImageList(Image **images)
1920 <p>A description of each parameter follows:</p></ol>
1923 <ol><p>the image list.</p></ol>
1926 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1927 _8c.html" target="source" name="PopImagePixels">PopImagePixels</a></h2>
1928 <div class="doc-section">
1930 <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>
1932 <p>The format of the PopImagePixels method is:</p>
1935 size_t PopImagePixels(Image *,const QuantumType quantum,
1936 unsigned char *destination)
1939 <p>A description of each parameter follows:</p></ol>
1942 <ol><p>the image.</p></ol>
1945 <ol><p>Declare which pixel components to transfer (RGB, RGBA, etc).</p></ol>
1947 <h5>destination</h5>
1948 <ol><p>The components are transferred to this buffer.</p></ol>
1951 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1952 _8c.html" target="source" name="PostscriptGeometry">PostscriptGeometry</a></h2>
1953 <div class="doc-section">
1955 <p>PostscriptGeometry() replaces any page mneumonic with the equivalent size in picas.</p></ol>
1957 <p>The format of the PostscriptGeometry method is:</p>
1960 char *PostscriptGeometry(const char *page)
1963 <p>A description of each parameter follows.</p></ol>
1966 <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>
1969 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1970 _8c.html" target="source" name="PushImageList">PushImageList</a></h2>
1971 <div class="doc-section">
1973 <p>PushImageList() adds an image to the end of the list.</p></ol>
1975 <p>The format of the PushImageList method is:</p>
1978 unsigned int PushImageList(Image *images,const Image *image,
1979 ExceptionInfo *exception)
1982 <p>A description of each parameter follows:</p></ol>
1985 <ol><p>the image list.</p></ol>
1988 <ol><p>the image.</p></ol>
1991 <ol><p>return any errors or warnings in this structure.</p></ol>
1994 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1995 _8c.html" target="source" name="PushImagePixels">PushImagePixels</a></h2>
1996 <div class="doc-section">
1998 <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>
2000 <p>The format of the PushImagePixels method is:</p>
2003 size_t PushImagePixels(Image *image,const QuantumType quantum,
2004 const unsigned char *source)
2007 <p>A description of each parameter follows:</p></ol>
2010 <ol><p>the image.</p></ol>
2013 <ol><p>Declare which pixel components to transfer (red, green, blue, opacity, RGB, or RGBA).</p></ol>
2016 <ol><p>The pixel components are transferred from this buffer.</p></ol>
2019 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2020 _8c.html" target="source" name="QuantizationError">QuantizationError</a></h2>
2021 <div class="doc-section">
2023 <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>
2026 o mean_error_per_pixel: This value is the mean error for any single
2030 <h5>normalized_mean_square_error</h5>
2031 <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>
2033 <h5>normalized_maximum_square_error</h5>
2034 <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>
2037 <p>The format of the QuantizationError method is:</p>
2040 unsigned int QuantizationError(Image *image)
2043 <p>A description of each parameter follows.</p></ol>
2046 <ol><p>Specifies a pointer to an Image structure; returned from ReadImage.</p></ol>
2049 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2050 _8c.html" target="source" name="RandomChannelThresholdImage">RandomChannelThresholdImage</a></h2>
2051 <div class="doc-section">
2053 <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>
2055 <p>The format of the RandomChannelThresholdImage method is:</p>
2058 unsigned int RandomChannelThresholdImage(Image *image,
2059 const char *channel, const char *thresholds,
2060 ExceptionInfo *exception)
2063 <p>A description of each parameter follows:</p></ol>
2066 <ol><p>the image.</p></ol>
2069 <ol><p>the channel or channels to be thresholded.</p></ol>
2072 <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>
2075 <ol><p>return any errors or warnings in this structure.</p></ol>
2078 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2079 _8c.html" target="source" name="ReacquireMemory">ReacquireMemory</a></h2>
2080 <div class="doc-section">
2082 <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>
2084 <p>The format of the ReacquireMemory method is:</p>
2087 void ReacquireMemory(void **memory,const size_t size)
2090 <p>A description of each parameter follows:</p></ol>
2093 <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>
2096 <ol><p>the new size of the allocated memory.</p></ol>
2099 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2100 _8c.html" target="source" name="ResetImageAttributeIterator">ResetImageAttributeIterator</a></h2>
2101 <div class="doc-section">
2103 <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>
2105 <p>The format of the ResetImageAttributeIterator method is:</p>
2108 ResetImageAttributeIterator(const ImageInfo *image)
2111 <p>A description of each parameter follows:</p></ol>
2114 <ol><p>the image.</p></ol>
2117 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2118 _8c.html" target="source" name="SetCacheViewPixels">SetCacheViewPixels</a></h2>
2119 <div class="doc-section">
2121 <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>
2123 <p>The format of the SetCacheViewPixels method is:</p>
2126 PixelPacket *SetCacheViewPixels(CacheView *cache_view,const long x,
2127 const long y,const unsigned long columns,const unsigned long rows)
2130 <p>A description of each parameter follows:</p></ol>
2133 <ol><p>the cache view.</p></ol>
2135 <h5>x,y,columns,rows</h5>
2136 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2139 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2140 _8c.html" target="source" name="SetExceptionInfo">SetExceptionInfo</a></h2>
2141 <div class="doc-section">
2143 <p>SetExceptionInfo() sets the exception severity.</p></ol>
2145 <p>The format of the SetExceptionInfo method is:</p>
2148 MagickBooleanType SetExceptionInfo(ExceptionInfo *exception,
2149 ExceptionType severity)
2152 <p>A description of each parameter follows:</p></ol>
2155 <ol><p>the exception info.</p></ol>
2158 <ol><p>the exception severity.</p></ol>
2161 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2162 _8c.html" target="source" name="SetImage">SetImage</a></h2>
2163 <div class="doc-section">
2165 <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>
2167 <p>The format of the SetImage method is:</p>
2170 void SetImage(Image *image,const Quantum opacity)
2173 <p>A description of each parameter follows:</p></ol>
2176 <ol><p>the image.</p></ol>
2179 <ol><p>Set each pixel to this level of transparency.</p></ol>
2182 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2183 _8c.html" target="source" name="SetImageAttribute">SetImageAttribute</a></h2>
2184 <div class="doc-section">
2186 <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>
2188 <p>The format of the SetImageAttribute method is:</p>
2191 MagickBooleanType SetImageAttribute(Image *image,const char *key,
2195 <p>A description of each parameter follows:</p></ol>
2198 <ol><p>the image.</p></ol>
2201 <ol><p>the key.</p></ol>
2204 <ol><p>the value.</p></ol>
2207 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2208 _8c.html" target="source" name="SetImageList">SetImageList</a></h2>
2209 <div class="doc-section">
2211 <p>SetImageList() inserts an image into the list at the specified position.</p></ol>
2213 <p>The format of the SetImageList method is:</p>
2216 unsigned int SetImageList(Image *images,const Image *image,
2217 const long offset,ExceptionInfo *exception)
2220 <p>A description of each parameter follows:</p></ol>
2223 <ol><p>the image list.</p></ol>
2226 <ol><p>the image.</p></ol>
2229 <ol><p>the position within the list.</p></ol>
2232 <ol><p>return any errors or warnings in this structure.</p></ol>
2235 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2236 _8c.html" target="source" name="SetImagePixels">SetImagePixels</a></h2>
2237 <div class="doc-section">
2239 <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>
2241 <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>
2243 <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>
2245 <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>
2247 <p>The format of the SetImagePixels() method is:</p>
2250 PixelPacket *SetImagePixels(Image *image,const long x,const long y,
2251 const unsigned long columns,const unsigned long rows)
2254 <p>A description of each parameter follows:</p></ol>
2257 <ol><p>SetImagePixels returns a pointer to the pixels if they are transferred, otherwise a NULL is returned.</p></ol>
2260 <ol><p>the image.</p></ol>
2262 <h5>x,y,columns,rows</h5>
2263 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2266 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2267 _8c.html" target="source" name="SetMagickRegistry">SetMagickRegistry</a></h2>
2268 <div class="doc-section">
2270 <p>SetMagickRegistry() sets a blob into the registry and returns a unique ID. If an error occurs, -1 is returned.</p></ol>
2272 <p>The format of the SetMagickRegistry method is:</p>
2275 long SetMagickRegistry(const RegistryType type,const void *blob,
2276 const size_t length,ExceptionInfo *exception)
2279 <p>A description of each parameter follows:</p></ol>
2282 <ol><p>the registry type.</p></ol>
2285 <ol><p>the address of a Binary Large OBject.</p></ol>
2288 <ol><p>For a registry type of ImageRegistryType use sizeof(Image) otherise the blob length in number of bytes.</p></ol>
2291 <ol><p>return any errors or warnings in this structure.</p></ol>
2294 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2295 _8c.html" target="source" name="SetMonitorHandler">SetMonitorHandler</a></h2>
2296 <div class="doc-section">
2298 <p>SetMonitorHandler() sets the monitor handler to the specified method and returns the previous monitor handler.</p></ol>
2300 <p>The format of the SetMonitorHandler method is:</p>
2303 MonitorHandler SetMonitorHandler(MonitorHandler handler)
2306 <p>A description of each parameter follows:</p></ol>
2309 <ol><p>Specifies a pointer to a method to handle monitors.</p></ol>
2312 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2313 _8c.html" target="source" name="ShiftImageList">ShiftImageList</a></h2>
2314 <div class="doc-section">
2316 <p>ShiftImageList() removes an image from the beginning of the list.</p></ol>
2318 <p>The format of the ShiftImageList method is:</p>
2321 Image *ShiftImageList(Image **images)
2324 <p>A description of each parameter follows:</p></ol>
2327 <ol><p>the image list.</p></ol>
2330 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2331 _8c.html" target="source" name="SpliceImageList">SpliceImageList</a></h2>
2332 <div class="doc-section">
2334 <p>SpliceImageList() removes the images designated by offset and length from the list and replaces them with the specified list.</p></ol>
2336 <p>The format of the SpliceImageList method is:</p>
2339 Image *SpliceImageList(Image *images,const long offset,
2340 const unsigned long length,const Image *splices,
2341 ExceptionInfo *exception)
2344 <p>A description of each parameter follows:</p></ol>
2347 <ol><p>the image list.</p></ol>
2350 <ol><p>the position within the list.</p></ol>
2353 <ol><p>the length of the image list to remove.</p></ol>
2356 <ol><p>Replace the removed image list with this list.</p></ol>
2359 <ol><p>return any errors or warnings in this structure.</p></ol>
2362 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2363 _8c.html" target="source" name="Strip">Strip</a></h2>
2364 <div class="doc-section">
2366 <p>Strip() strips any whitespace or quotes from the beginning and end of a string of characters.</p></ol>
2368 <p>The format of the Strip method is:</p>
2371 void Strip(char *message)
2374 <p>A description of each parameter follows:</p></ol>
2377 <ol><p>Specifies an array of characters.</p></ol>
2380 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2381 _8c.html" target="source" name="SyncCacheView">SyncCacheView</a></h2>
2382 <div class="doc-section">
2384 <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>
2386 <p>The format of the SyncCacheView method is:</p>
2389 MagickBooleanType SyncCacheView(CacheView *cache_view)
2392 <p>A description of each parameter follows:</p></ol>
2395 <ol><p>the cache view.</p></ol>
2398 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2399 _8c.html" target="source" name="SyncCacheViewPixels">SyncCacheViewPixels</a></h2>
2400 <div class="doc-section">
2402 <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>
2404 <p>The format of the SyncCacheViewPixels method is:</p>
2407 MagickBooleanType SyncCacheViewPixels(CacheView *cache_view)
2410 <p>A description of each parameter follows:</p></ol>
2413 <ol><p>the cache view.</p></ol>
2416 <ol><p>return any errors or warnings in this structure.</p></ol>
2419 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2420 _8c.html" target="source" name="SyncImagePixels">SyncImagePixels</a></h2>
2421 <div class="doc-section">
2423 <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>
2425 <p>The format of the SyncImagePixels() method is:</p>
2428 MagickBooleanType SyncImagePixels(Image *image)
2431 <p>A description of each parameter follows:</p></ol>
2434 <ol><p>the image.</p></ol>
2437 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2438 _8c.html" target="source" name="TemporaryFilename">TemporaryFilename</a></h2>
2439 <div class="doc-section">
2441 <p>TemporaryFilename() replaces the contents of path by a unique path name.</p></ol>
2443 <p>The format of the TemporaryFilename method is:</p>
2446 void TemporaryFilename(char *path)
2449 <p>A description of each parameter follows.</p></ol>
2452 <ol><p>Specifies a pointer to an array of characters. The unique path name is returned in this array.</p></ol>
2455 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2456 _8c.html" target="source" name="ThresholdImage">ThresholdImage</a></h2>
2457 <div class="doc-section">
2459 <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>
2461 <p>The format of the ThresholdImage method is:</p>
2464 unsigned int ThresholdImage(Image *image,const double threshold)
2467 <p>A description of each parameter follows:</p></ol>
2470 <ol><p>the image.</p></ol>
2473 <ol><p>Define the threshold value</p></ol>
2476 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2477 _8c.html" target="source" name="ThresholdImageChannel">ThresholdImageChannel</a></h2>
2478 <div class="doc-section">
2480 <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>
2482 <p>The format of the ThresholdImageChannel method is:</p>
2485 unsigned int ThresholdImageChannel(Image *image,const char *threshold)
2488 <p>A description of each parameter follows:</p></ol>
2491 <ol><p>the image.</p></ol>
2494 <ol><p>define the threshold values.</p></ol>
2497 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2498 _8c.html" target="source" name="TransformHSL">TransformHSL</a></h2>
2499 <div class="doc-section">
2501 <p>TransformHSL() converts a (red, green, blue) to a (hue, saturation, lightness) triple.</p></ol>
2503 <p>The format of the TransformHSL method is:</p>
2506 void TransformHSL(const Quantum red,const Quantum green,
2507 const Quantum blue,double *hue,double *saturation,double *lightness)
2510 <p>A description of each parameter follows:</p></ol>
2512 <h5>red, green, blue</h5>
2513 <ol><p>A Quantum value representing the red, green, and blue component of a pixel..</p></ol>
2515 <h5>hue, saturation, lightness</h5>
2516 <ol><p>A pointer to a double value representing a component of the HSL color space.</p></ol>
2519 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2520 _8c.html" target="source" name="TranslateText">TranslateText</a></h2>
2521 <div class="doc-section">
2523 <p>TranslateText() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
2525 <p>The format of the TranslateText method is:</p>
2528 char *TranslateText(const ImageInfo *image_info,Image *image,
2529 const char *embed_text)
2532 <p>A description of each parameter follows:</p></ol>
2535 <ol><p>the image info.</p></ol>
2538 <ol><p>the image.</p></ol>
2541 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
2544 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2545 _8c.html" target="source" name="TransparentImage">TransparentImage</a></h2>
2546 <div class="doc-section">
2548 <p>TransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
2550 <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>
2552 <p>The format of the TransparentImage method is:</p>
2555 MagickBooleanType TransparentImage(Image *image,
2556 const PixelPacket target,const Quantum opacity)
2559 <p>A description of each parameter follows:</p></ol>
2562 <ol><p>the image.</p></ol>
2565 <ol><p>the RGB value of the target color.</p></ol>
2568 <ol><p>the replacement opacity value.</p></ol>
2571 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2572 _8c.html" target="source" name="UnshiftImageList">UnshiftImageList</a></h2>
2573 <div class="doc-section">
2575 <p>UnshiftImageList() adds the image to the beginning of the list.</p></ol>
2577 <p>The format of the UnshiftImageList method is:</p>
2580 unsigned int UnshiftImageList(Image *images,const Image *image,
2581 ExceptionInfo *exception)
2584 <p>A description of each parameter follows:</p></ol>
2587 <ol><p>the image list.</p></ol>
2590 <ol><p>the image.</p></ol>
2593 <ol><p>return any errors or warnings in this structure.</p></ol>
2599 <div id="linkbar">
\r
2600 <!-- <span id="linkbar-west"> </span> -->
\r
2601 <span id="linkbar-center">
\r
2602 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
2603 <a href="http://studio.webbyland.com/ImageMagick/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
2605 <span id="linkbar-east"> </span>
\r
2607 <div class="footer">
\r
2608 <span id="footer-west">© 1999-2010 ImageMagick Studio LLC</span>
\r
2609 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
2611 <div style="clear: both; margin: 0; width: 100%; "></div>
\r