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 name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />
\r
6 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />
\r
7 <style type="text/css" media="screen,projection"><!--
\r
8 @import url("../../www/magick.css");
\r
10 <link rel="shortcut icon" href="../../images/wand.ico" type="images/vnd.microsoft.icon"/>
11 <title>ImageMagick: MagickCore, C API for ImageMagick: Deprecated Methods</title>
12 <meta http-equiv="Content-Language" content="en-US"/>
13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
14 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
15 <meta name="Generator" content="PHP"/>
16 <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"/>
17 <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."/>
18 <meta name="Rating" content="GENERAL"/>
19 <meta name="Robots" content="INDEX, FOLLOW"/>
20 <meta name="Generator" content="ImageMagick Studio LLC"/>
21 <meta name="Author" content="ImageMagick Studio LLC"/>
22 <meta name="Revisit-after" content="2 DAYS"/>
23 <meta name="Resource-type" content="document"/>
24 <meta name="Copyright" content="Copyright (c) 1999-2009 ImageMagick Studio LLC"/>
25 <meta name="Distribution" content="Global"/>
28 <body id="www-imagemagick-org">
\r
29 <div class="titlebar">
\r
30 <a href="../../index.html">
\r
31 <img src="../../images/script.png" alt="[ImageMagick]"
\r
32 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
33 <a href="http://www.networkredux.com">
\r
34 <img src="../../images/networkredux.png" alt="[sponsor]"
\r
35 style="margin: 45px auto; border: 0px; float: left;" /></a>
\r
36 <a href="http://www.imagemagick.org/discourse-server/">
\r
37 <img src="../../images/logo.jpg" alt=""
\r
38 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
39 <a href="../../index.html">
\r
40 <img src="../../images/sprite.jpg" alt=""
\r
41 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
44 <div class="eastbar">
\r
47 <a href="../../index.html">About ImageMagick</a>
49 <div class="sep"></div>
\r
51 <a href="../../www/command-line-tools.html">Command-line Tools</a>
54 <a href="../../www/command-line-processing.html">Processing</a>
57 <a href="../../www/command-line-options.html">Options</a>
60 <a href="http://www.imagemagick.org/Usage/">Usage</a>
63 <a href="../../www/api.html">Program Interfaces</a>
66 <a href="../../www/magick-wand.html">MagickWand</a>
69 <a href="../../www/magick-core.html">MagickCore</a>
72 <a href="../../www/perl-magick.html">PerlMagick</a>
75 <a href="../../Magick++/">Magick++</a>
78 <a href="../../www/architecture.html">Architecture</a>
80 <div class="sep"></div>
\r
82 <a href="../../www/install-source.html">Install from Source</a>
85 <a href="../../www/install-source.html#unix">Unix</a>
88 <a href="../../www/install-source.html#windows">Windows</a>
91 <a href="../../www/binary-releases.html">Binary Releases</a>
94 <a href="../../www/binary-releases.html#unix">Unix</a>
97 <a href="../../www/binary-releases.html#macosx">Mac OS X</a>
100 <a href="../../www/binary-releases.html#windows">Windows</a>
103 <a href="../../www/resources.html">Resources</a>
105 <div class="sep"></div>
\r
107 <a href="../../www/download.html">Download</a>
109 <div class="sep"></div>
\r
111 <a href="../http://www.imagemagick.org/script/search.php">Search</a>
113 <div class="sep"></div>
\r
115 <a href="../../www/sitemap.html">Site Map</a>
118 <a href="../../www/links.html">Links</a>
120 <div class="sep"></div>
\r
122 <a href="../../www/sponsors.html">Sponsors:</a>
124 <div class="sponsbox">
125 <div class="sponsor">
126 <a href="http://www.online-kredit-index.de">Kredit</a><!-- 201004010120 Buchhorn -->
128 <div class="sponsor">
129 <a href="http://www.blumenversender.com">Blumenversand</a><!-- 201005010120 -->
131 <div class="sponsor">
132 <a href="http://www.print24.de/">Druckerei</a><!-- 201009010720 -->
134 <div class="sponsor">
135 <a href="http://www.goyax.de">Börse</a><!-- 201001000240 Gewiese digital-finance.de -->
137 <div class="sponsor">
138 <a href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012001200 allesdruck.de-->
140 <div class="sponsor">
141 <a href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 201002010000 -->
151 <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>
153 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
154 _8c.html" target="source" name="AcquireCacheViewIndexes">AcquireCacheViewIndexes</a></h2>
155 <div class="doc-section">
157 <p>AcquireCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
159 <p>The format of the AcquireCacheViewIndexes method is:</p>
162 const IndexPacket *AcquireCacheViewIndexes(const CacheView *cache_view)
165 <p>A description of each parameter follows:</p></ol>
168 <ol><p>the cache view.</p></ol>
171 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
172 _8c.html" target="source" name="AcquireCacheViewPixels">AcquireCacheViewPixels</a></h2>
173 <div class="doc-section">
175 <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>
177 <p>The format of the AcquireCacheViewPixels method is:</p>
180 const PixelPacket *AcquireCacheViewPixels(const CacheView *cache_view,
181 const long x,const long y,const unsigned long columns,
182 const unsigned long rows,ExceptionInfo *exception)
185 <p>A description of each parameter follows:</p></ol>
188 <ol><p>the cache view.</p></ol>
190 <h5>x,y,columns,rows</h5>
191 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
194 <ol><p>return any errors or warnings in this structure.</p></ol>
197 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
198 _8c.html" target="source" name="AcquireImagePixels">AcquireImagePixels</a></h2>
199 <div class="doc-section">
201 <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>
203 <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>
205 <p>If you plan to modify the pixels, use GetAuthenticPixels() instead.</p></ol>
207 <p>Note, the AcquireImagePixels() and GetAuthenticPixels() methods are not thread-safe. In a threaded environment, use GetCacheViewVirtualPixels() or GetCacheViewAuthenticPixels() instead.</p></ol>
209 <p>The format of the AcquireImagePixels() method is:</p>
212 const PixelPacket *AcquireImagePixels(const Image *image,const long x,
213 const long y,const unsigned long columns,const unsigned long rows,
214 ExceptionInfo *exception)
217 <p>A description of each parameter follows:</p></ol>
220 <ol><p>the image.</p></ol>
222 <h5>x,y,columns,rows</h5>
223 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
226 <ol><p>return any errors or warnings in this structure.</p></ol>
229 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
230 _8c.html" target="source" name="AcquireIndexes">AcquireIndexes</a></h2>
231 <div class="doc-section">
233 <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>
235 <p>The format of the AcquireIndexes() method is:</p>
238 const IndexPacket *AcquireIndexes(const Image *image)
241 <p>A description of each parameter follows:</p></ol>
244 <ol><p>AcquireIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
247 <ol><p>the image.</p></ol>
250 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
251 _8c.html" target="source" name="AcquireMemory">AcquireMemory</a></h2>
252 <div class="doc-section">
254 <p>AcquireMemory() returns a pointer to a block of memory at least size bytes suitably aligned for any use.</p></ol>
256 <p>The format of the AcquireMemory method is:</p>
259 void *AcquireMemory(const size_t size)
262 <p>A description of each parameter follows:</p></ol>
265 <ol><p>the size of the memory in bytes to allocate.</p></ol>
268 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
269 _8c.html" target="source" name="AcquireOneCacheViewPixel">AcquireOneCacheViewPixel</a></h2>
270 <div class="doc-section">
272 <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>
274 <p>The format of the AcquireOneCacheViewPixel method is:</p>
277 MagickBooleanType AcquireOneCacheViewPixel(const CacheView *cache_view,
278 const long x,const long y,PixelPacket *pixel,ExceptionInfo *exception)
281 <p>A description of each parameter follows:</p></ol>
284 <ol><p>the cache view.</p></ol>
287 <ol><p>These values define the offset of the pixel.</p></ol>
290 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
293 <ol><p>return any errors or warnings in this structure.</p></ol>
296 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
297 _8c.html" target="source" name="AcquireOneCacheViewVirtualPixel">AcquireOneCacheViewVirtualPixel</a></h2>
298 <div class="doc-section">
300 <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>
302 <p>The format of the AcquireOneCacheViewPixel method is:</p>
305 MagickBooleanType AcquireOneCacheViewVirtualPixel(
306 const CacheView *cache_view,
307 const VirtualPixelMethod virtual_pixel_method,const long x,
308 const long y,PixelPacket *pixel,ExceptionInfo *exception)
311 <p>A description of each parameter follows:</p></ol>
314 <ol><p>the cache view.</p></ol>
316 <h5>virtual_pixel_method</h5>
317 <ol><p>the virtual pixel method.</p></ol>
320 <ol><p>These values define the offset of the pixel.</p></ol>
323 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
326 <ol><p>return any errors or warnings in this structure.</p></ol>
329 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
330 _8c.html" target="source" name="AcquireOneMagickPixel">AcquireOneMagickPixel</a></h2>
331 <div class="doc-section">
333 <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>
335 <p>The format of the AcquireOneMagickPixel() method is:</p>
338 MagickPixelPacket AcquireOneMagickPixel(const Image image,const long x,
339 const long y,ExceptionInfo exception)
342 <p>A description of each parameter follows:</p></ol>
345 <ol><p>the image.</p></ol>
348 <ol><p>These values define the location of the pixel to return.</p></ol>
351 <ol><p>return any errors or warnings in this structure.</p></ol>
354 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
355 _8c.html" target="source" name="AcquireOnePixel">AcquireOnePixel</a></h2>
356 <div class="doc-section">
358 <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>
360 <p>The format of the AcquireOnePixel() method is:</p>
363 PixelPacket AcquireOnePixel(const Image image,const long x,
364 const long y,ExceptionInfo exception)
367 <p>A description of each parameter follows:</p></ol>
370 <ol><p>the image.</p></ol>
373 <ol><p>These values define the location of the pixel to return.</p></ol>
376 <ol><p>return any errors or warnings in this structure.</p></ol>
379 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
380 _8c.html" target="source" name="AcquireOneVirtualPixel">AcquireOneVirtualPixel</a></h2>
381 <div class="doc-section">
383 <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>
385 <p>The format of the AcquireOneVirtualPixel() method is:</p>
388 PixelPacket AcquireOneVirtualPixel(const Image image,
389 const VirtualPixelMethod virtual_pixel_method,const long x,
390 const long y,ExceptionInfo exception)
393 <p>A description of each parameter follows:</p></ol>
395 <h5>virtual_pixel_method</h5>
396 <ol><p>the virtual pixel method.</p></ol>
399 <ol><p>the image.</p></ol>
402 <ol><p>These values define the location of the pixel to return.</p></ol>
405 <ol><p>return any errors or warnings in this structure.</p></ol>
408 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
409 _8c.html" target="source" name="AcquirePixels">AcquirePixels</a></h2>
410 <div class="doc-section">
412 <p>AcquirePixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
414 <p>The format of the AcquirePixels() method is:</p>
417 const PixelPacket *AcquirePixels(const Image image)
420 <p>A description of each parameter follows:</p></ol>
423 <ol><p>the image.</p></ol>
426 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
427 _8c.html" target="source" name="AffinityImage">AffinityImage</a></h2>
428 <div class="doc-section">
430 <p>AffinityImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
432 <p>The format of the AffinityImage method is:</p>
435 MagickBooleanType AffinityImage(const QuantizeInfo *quantize_info,
436 Image *image,const Image *affinity_image)
439 <p>A description of each parameter follows:</p></ol>
441 <h5>quantize_info</h5>
442 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
445 <ol><p>the image.</p></ol>
447 <h5>affinity_image</h5>
448 <ol><p>the reference image.</p></ol>
451 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
452 _8c.html" target="source" name="AffinityImages">AffinityImages</a></h2>
453 <div class="doc-section">
455 <p>AffinityImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
457 <p>The format of the AffinityImage method is:</p>
460 MagickBooleanType AffinityImages(const QuantizeInfo *quantize_info,
461 Image *images,Image *affinity_image)
464 <p>A description of each parameter follows:</p></ol>
466 <h5>quantize_info</h5>
467 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
470 <ol><p>the image sequence.</p></ol>
472 <h5>affinity_image</h5>
473 <ol><p>the reference image.</p></ol>
476 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
477 _8c.html" target="source" name="AllocateImage">AllocateImage</a></h2>
478 <div class="doc-section">
480 <p>AllocateImage() returns a pointer to an image structure initialized to default values.</p></ol>
482 <p>The format of the AllocateImage method is:</p>
485 Image *AllocateImage(const ImageInfo *image_info)
488 <p>A description of each parameter follows:</p></ol>
491 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
494 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
495 _8c.html" target="source" name="AllocateImageColormap">AllocateImageColormap</a></h2>
496 <div class="doc-section">
498 <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>
500 <p>The format of the AllocateImageColormap method is:</p>
503 MagickBooleanType AllocateImageColormap(Image *image,
504 const unsigned long colors)
507 <p>A description of each parameter follows:</p></ol>
510 <ol><p>the image.</p></ol>
513 <ol><p>the number of colors in the image colormap.</p></ol>
516 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
517 _8c.html" target="source" name="AllocateNextImage">AllocateNextImage</a></h2>
518 <div class="doc-section">
520 <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>
522 <p>The format of the AllocateNextImage method is:</p>
525 void AllocateNextImage(const ImageInfo *image_info,Image *image)
528 <p>A description of each parameter follows:</p></ol>
531 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
534 <ol><p>the image.</p></ol>
537 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
538 _8c.html" target="source" name="AllocateString">AllocateString</a></h2>
539 <div class="doc-section">
541 <p>AllocateString() allocates memory for a string and copies the source string to that memory location (and returns it).</p></ol>
543 <p>The format of the AllocateString method is:</p>
546 char *AllocateString(const char *source)
549 <p>A description of each parameter follows:</p></ol>
552 <ol><p>A character string.</p></ol>
555 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
556 _8c.html" target="source" name="ChannelThresholdImage">ChannelThresholdImage</a></h2>
557 <div class="doc-section">
559 <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>
561 <p>The format of the ChannelThresholdImage method is:</p>
564 unsigned int ChannelThresholdImage(Image *image,const char *level)
567 <p>A description of each parameter follows:</p></ol>
570 <ol><p>the image.</p></ol>
573 <ol><p>define the threshold values.</p></ol>
576 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
577 _8c.html" target="source" name="ClipPathImage">ClipPathImage</a></h2>
578 <div class="doc-section">
580 <p>ClipPathImage() sets the image clip mask based any clipping path information if it exists.</p></ol>
582 <p>The format of the ClipImage method is:</p>
585 MagickBooleanType ClipPathImage(Image *image,const char *pathname,
586 const MagickBooleanType inside)
589 <p>A description of each parameter follows:</p></ol>
592 <ol><p>the image.</p></ol>
595 <ol><p>name of clipping path resource. If name is preceded by #, use clipping path numbered by name.</p></ol>
598 <ol><p>if non-zero, later operations take effect inside clipping path. Otherwise later operations take effect outside clipping path.</p></ol>
601 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
602 _8c.html" target="source" name="CloneImageAttributes">CloneImageAttributes</a></h2>
603 <div class="doc-section">
605 <p>CloneImageAttributes() clones one or more image attributes.</p></ol>
607 <p>The format of the CloneImageAttributes method is:</p>
610 MagickBooleanType CloneImageAttributes(Image *image,
611 const Image *clone_image)
614 <p>A description of each parameter follows:</p></ol>
617 <ol><p>the image.</p></ol>
620 <ol><p>the clone image.</p></ol>
623 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
624 _8c.html" target="source" name="CloneMemory">CloneMemory</a></h2>
625 <div class="doc-section">
627 <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>
629 <p>The format of the CloneMemory method is:</p>
632 void *CloneMemory(void *destination,const void *source,
636 <p>A description of each parameter follows:</p></ol>
639 <ol><p>the destination.</p></ol>
642 <ol><p>the source.</p></ol>
645 <ol><p>the size of the memory in bytes to allocate.</p></ol>
648 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
649 _8c.html" target="source" name="CloseCacheView">CloseCacheView</a></h2>
650 <div class="doc-section">
652 <p>CloseCacheView() closes the specified view returned by a previous call to OpenCacheView().</p></ol>
654 <p>The format of the CloseCacheView method is:</p>
657 CacheView *CloseCacheView(CacheView *view_info)
660 <p>A description of each parameter follows:</p></ol>
663 <ol><p>the address of a structure of type CacheView.</p></ol>
666 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
667 _8c.html" target="source" name="ColorFloodfill">ColorFloodfill</a></h2>
668 <div class="doc-section">
670 <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>
672 <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>
674 <p>The format of the ColorFloodfillImage method is:</p>
677 MagickBooleanType ColorFloodfillImage(Image *image,
678 const DrawInfo *draw_info,const PixelPacket target,
679 const long x_offset,const long y_offset,const PaintMethod method)
682 <p>A description of each parameter follows:</p></ol>
685 <ol><p>the image.</p></ol>
688 <ol><p>the draw info.</p></ol>
691 <ol><p>the RGB value of the target color.</p></ol>
694 <ol><p>the starting location of the operation.</p></ol>
697 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
700 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
701 _8c.html" target="source" name="DeleteImageAttribute">DeleteImageAttribute</a></h2>
702 <div class="doc-section">
704 <p>DeleteImageAttribute() deletes an attribute from the image.</p></ol>
706 <p>The format of the DeleteImageAttribute method is:</p>
709 MagickBooleanType DeleteImageAttribute(Image *image,const char *key)
712 <p>A description of each parameter follows:</p></ol>
715 <ol><p>the image info.</p></ol>
718 <ol><p>the image key.</p></ol>
721 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
722 _8c.html" target="source" name="DeleteImageList">DeleteImageList</a></h2>
723 <div class="doc-section">
725 <p>DeleteImageList() deletes an image at the specified position in the list.</p></ol>
727 <p>The format of the DeleteImageList method is:</p>
730 unsigned int DeleteImageList(Image *images,const long offset)
733 <p>A description of each parameter follows:</p></ol>
736 <ol><p>the image list.</p></ol>
739 <ol><p>the position within the list.</p></ol>
742 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
743 _8c.html" target="source" name="DeleteMagickRegistry">DeleteMagickRegistry</a></h2>
744 <div class="doc-section">
746 <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>
748 <p>The format of the DeleteMagickRegistry method is:</p>
751 MagickBooleanType DeleteMagickRegistry(const long id)
754 <p>A description of each parameter follows:</p></ol>
757 <ol><p>the registry id.</p></ol>
760 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
761 _8c.html" target="source" name="DescribeImage">DescribeImage</a></h2>
762 <div class="doc-section">
764 <p>DescribeImage() describes an image by printing its attributes to the file. Attributes include the image width, height, size, and others.</p></ol>
766 <p>The format of the DescribeImage method is:</p>
769 MagickBooleanType DescribeImage(Image *image,FILE *file,
770 const MagickBooleanType verbose)
773 <p>A description of each parameter follows:</p></ol>
776 <ol><p>the image.</p></ol>
779 <ol><p>the file, typically stdout.</p></ol>
782 <ol><p>A value other than zero prints more detailed information about the image.</p></ol>
785 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
786 _8c.html" target="source" name="DestroyImageAttributes">DestroyImageAttributes</a></h2>
787 <div class="doc-section">
789 <p>DestroyImageAttributes() deallocates memory associated with the image attribute list.</p></ol>
791 <p>The format of the DestroyImageAttributes method is:</p>
794 DestroyImageAttributes(Image *image)
797 <p>A description of each parameter follows:</p></ol>
800 <ol><p>the image.</p></ol>
803 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
804 _8c.html" target="source" name="DestroyImages">DestroyImages</a></h2>
805 <div class="doc-section">
807 <p>DestroyImages() destroys an image list.</p></ol>
809 <p>The format of the DestroyImages method is:</p>
812 void DestroyImages(Image *image)
815 <p>A description of each parameter follows:</p></ol>
818 <ol><p>the image sequence.</p></ol>
821 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
822 _8c.html" target="source" name="DestroyMagick">DestroyMagick</a></h2>
823 <div class="doc-section">
825 <p>DestroyMagick() destroys the ImageMagick environment.</p></ol>
827 <p>The format of the DestroyMagick function is:</p>
834 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
835 _8c.html" target="source" name="DispatchImage">DispatchImage</a></h2>
836 <div class="doc-section">
838 <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>
840 <p>Suppose you want to extract the first scanline of a 640x480 image as character data in red-green-blue order:</p>
843 DispatchImage(image,0,0,640,1,"RGB",CharPixel,pixels,exception);
846 <p>The format of the DispatchImage method is:</p>
849 unsigned int DispatchImage(const Image *image,const long x_offset,
850 const long y_offset,const unsigned long columns,
851 const unsigned long rows,const char *map,const StorageType type,
852 void *pixels,ExceptionInfo *exception)
855 <p>A description of each parameter follows:</p></ol>
858 <ol><p>the image.</p></ol>
860 <h5>x_offset, y_offset, columns, rows</h5>
861 <ol><p>These values define the perimeter of a region of pixels you want to extract.</p></ol>
864 <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>
867 <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>
870 <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>
873 <ol><p>return any errors or warnings in this structure.</p></ol>
876 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
877 _8c.html" target="source" name="ExtractSubimageFromImageImage">ExtractSubimageFromImageImage</a></h2>
878 <div class="doc-section">
880 <p>ExtractSubimageFromImageImage() extracts a region of the image that most closely resembles the reference.</p></ol>
882 <p>The format of the ExtractSubimageFromImageImage method is:</p>
885 Image *ExtractSubimageFromImage(const Image *image,const Image *reference,
886 ExceptionInfo *exception)
889 <p>A description of each parameter follows:</p></ol>
892 <ol><p>the image.</p></ol>
895 <ol><p>find an area of the image that closely resembles this image.</p></ol>
898 <ol><p>return any errors or warnings in this structure.</p></ol>
901 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
902 _8c.html" target="source" name="FlattenImages">FlattenImages</a></h2>
903 <div class="doc-section">
905 <p>FlattenImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
907 <p>The format of the FlattenImage method is:</p>
910 Image *FlattenImage(Image *image,ExceptionInfo *exception)
913 <p>A description of each parameter follows:</p></ol>
916 <ol><p>the image sequence.</p></ol>
919 <ol><p>return any errors or warnings in this structure.</p></ol>
922 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
923 _8c.html" target="source" name="FormatImageAttribute">FormatImageAttribute</a></h2>
924 <div class="doc-section">
926 <p>FormatImageAttribute() permits formatted key/value pairs to be saved as an image attribute.</p></ol>
928 <p>The format of the FormatImageAttribute method is:</p>
931 MagickBooleanType FormatImageAttribute(Image *image,const char *key,
932 const char *format,...)
935 <p>A description of each parameter follows.</p></ol>
938 <ol><p>The image.</p></ol>
941 <ol><p>The attribute key.</p></ol>
944 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
947 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
948 _8c.html" target="source" name="FormatString">FormatString</a></h2>
949 <div class="doc-section">
951 <p>FormatString() prints formatted output of a variable argument list.</p></ol>
953 <p>The format of the FormatString method is:</p>
956 void FormatString(char *string,const char *format,...)
959 <p>A description of each parameter follows.</p></ol>
962 <ol><p>Method FormatString returns the formatted string in this character buffer.</p></ol>
965 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
968 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
969 _8c.html" target="source" name="GetConfigureBlob">GetConfigureBlob</a></h2>
970 <div class="doc-section">
972 <p>GetConfigureBlob() returns the specified configure file as a blob.</p></ol>
974 <p>The format of the GetConfigureBlob method is:</p>
977 void *GetConfigureBlob(const char *filename,ExceptionInfo *exception)
980 <p>A description of each parameter follows:</p></ol>
983 <ol><p>the configure file name.</p></ol>
986 <ol><p>return the full path information of the configure file.</p></ol>
989 <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>
992 <ol><p>return any errors or warnings in this structure.</p></ol>
995 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
996 _8c.html" target="source" name="GetCacheView">GetCacheView</a></h2>
997 <div class="doc-section">
999 <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>
1001 <p>The format of the GetCacheView method is:</p>
1004 PixelPacket *GetCacheView(CacheView *cache_view,const long x,
1005 const long y,const unsigned long columns,const unsigned long rows)
1008 <p>A description of each parameter follows:</p></ol>
1011 <ol><p>the address of a structure of type CacheView.</p></ol>
1013 <h5>x,y,columns,rows</h5>
1014 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1017 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1018 _8c.html" target="source" name="GetCacheViewIndexes">GetCacheViewIndexes</a></h2>
1019 <div class="doc-section">
1021 <p>GetCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
1023 <p>The format of the GetCacheViewIndexes method is:</p>
1026 IndexPacket *GetCacheViewIndexes(CacheView *cache_view)
1029 <p>A description of each parameter follows:</p></ol>
1032 <ol><p>the cache view.</p></ol>
1035 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1036 _8c.html" target="source" name="GetCacheViewPixels">GetCacheViewPixels</a></h2>
1037 <div class="doc-section">
1039 <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>
1041 <p>The format of the GetCacheViewPixels method is:</p>
1044 PixelPacket *GetCacheViewPixels(CacheView *cache_view,const long x,
1045 const long y,const unsigned long columns,const unsigned long rows)
1048 <p>A description of each parameter follows:</p></ol>
1051 <ol><p>the cache view.</p></ol>
1053 <h5>x,y,columns,rows</h5>
1054 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1057 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1058 _8c.html" target="source" name="GetImageAttribute">GetImageAttribute</a></h2>
1059 <div class="doc-section">
1061 <p>GetImageAttribute() searches the list of image attributes and returns a pointer to the attribute if it exists otherwise NULL.</p></ol>
1063 <p>The format of the GetImageAttribute method is:</p>
1066 const ImageAttribute *GetImageAttribute(const Image *image,
1070 <p>A description of each parameter follows:</p></ol>
1073 <ol><p>the image.</p></ol>
1076 <ol><p>These character strings are the name of an image attribute to return.</p></ol>
1079 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1080 _8c.html" target="source" name="GetImageClippingPathAttribute">GetImageClippingPathAttribute</a></h2>
1081 <div class="doc-section">
1083 <p>GetImageClippingPathAttribute() searches the list of image attributes and returns a pointer to a clipping path if it exists otherwise NULL.</p></ol>
1085 <p>The format of the GetImageClippingPathAttribute method is:</p>
1088 const ImageAttribute *GetImageClippingPathAttribute(Image *image)
1091 <p>A description of each parameter follows:</p></ol>
1094 <ol><p>Method GetImageClippingPathAttribute returns the clipping path if it exists otherwise NULL.</p></ol>
1097 <ol><p>the image.</p></ol>
1100 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1101 _8c.html" target="source" name="GetImageFromMagickRegistry">GetImageFromMagickRegistry</a></h2>
1102 <div class="doc-section">
1104 <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>
1106 <p>The format of the GetImageFromMagickRegistry method is:</p>
1109 Image *GetImageFromMagickRegistry(const char *name,long *id,
1110 ExceptionInfo *exception)
1113 <p>A description of each parameter follows:</p></ol>
1116 <ol><p>the name of the image to retrieve from the registry.</p></ol>
1119 <ol><p>the registry id.</p></ol>
1122 <ol><p>return any errors or warnings in this structure.</p></ol>
1125 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1126 _8c.html" target="source" name="GetMagickRegistry">GetMagickRegistry</a></h2>
1127 <div class="doc-section">
1129 <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>
1131 <p>The format of the GetMagickRegistry method is:</p>
1134 const void *GetMagickRegistry(const long id,RegistryType *type,
1135 size_t *length,ExceptionInfo *exception)
1138 <p>A description of each parameter follows:</p></ol>
1141 <ol><p>the registry id.</p></ol>
1144 <ol><p>the registry type.</p></ol>
1147 <ol><p>the blob length in number of bytes.</p></ol>
1150 <ol><p>return any errors or warnings in this structure.</p></ol>
1153 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1154 _8c.html" target="source" name="GetImageGeometry">GetImageGeometry</a></h2>
1155 <div class="doc-section">
1157 <p>GetImageGeometry() returns a region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1159 <p>The format of the GetImageGeometry method is:</p>
1162 int GetImageGeometry(Image *image,const char *geometry,
1163 const unsigned int size_to_fit,RectangeInfo *region_info)
1166 <p>A description of each parameter follows:</p></ol>
1169 <ol><p>Method GetImageGeometry returns a bitmask that indicates which of the four values were located in the geometry string.</p></ol>
1172 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
1174 <h5>size_to_fit</h5>
1175 <ol><p>A value other than 0 means to scale the region so it fits within the specified width and height.</p></ol>
1177 <h5>region_info</h5>
1178 <ol><p>the region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1181 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1182 _8c.html" target="source" name="GetImageList">GetImageList</a></h2>
1183 <div class="doc-section">
1185 <p>GetImageList() returns an image at the specified position in the list.</p></ol>
1187 <p>The format of the GetImageList method is:</p>
1190 Image *GetImageList(const Image *images,const long offset,
1191 ExceptionInfo *exception)
1194 <p>A description of each parameter follows:</p></ol>
1197 <ol><p>the image list.</p></ol>
1200 <ol><p>the position within the list.</p></ol>
1203 <ol><p>return any errors or warnings in this structure.</p></ol>
1206 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1207 _8c.html" target="source" name="GetImageListIndex">GetImageListIndex</a></h2>
1208 <div class="doc-section">
1210 <p>GetImageListIndex() returns the position in the list of the specified image.</p></ol>
1212 <p>The format of the GetImageListIndex method is:</p>
1215 long GetImageListIndex(const Image *images)
1218 <p>A description of each parameter follows:</p></ol>
1221 <ol><p>the image list.</p></ol>
1224 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1225 _8c.html" target="source" name="GetImageListSize">GetImageListSize</a></h2>
1226 <div class="doc-section">
1228 <p>GetImageListSize() returns the number of images in the list.</p></ol>
1230 <p>The format of the GetImageListSize method is:</p>
1233 unsigned long GetImageListSize(const Image *images)
1236 <p>A description of each parameter follows:</p></ol>
1239 <ol><p>the image list.</p></ol>
1242 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1243 _8c.html" target="source" name="GetImagePixels">GetImagePixels</a></h2>
1244 <div class="doc-section">
1246 <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>
1248 <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>
1250 <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>
1252 <p>The format of the GetImagePixels() method is:</p>
1255 PixelPacket *GetImagePixels(Image *image,const long x,const long y,
1256 const unsigned long columns,const unsigned long rows)
1259 <p>A description of each parameter follows:</p></ol>
1262 <ol><p>the image.</p></ol>
1264 <h5>x,y,columns,rows</h5>
1265 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1268 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1269 _8c.html" target="source" name="GetIndexes">GetIndexes</a></h2>
1270 <div class="doc-section">
1272 <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>
1274 <p>The format of the GetIndexes() method is:</p>
1277 IndexPacket *GetIndexes(const Image *image)
1280 <p>A description of each parameter follows:</p></ol>
1283 <ol><p>GetIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1286 <ol><p>the image.</p></ol>
1289 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1290 _8c.html" target="source" name="GetNextImage">GetNextImage</a></h2>
1291 <div class="doc-section">
1293 <p>GetNextImage() returns the next image in a list.</p></ol>
1295 <p>The format of the GetNextImage method is:</p>
1298 Image *GetNextImage(const Image *images)
1301 <p>A description of each parameter follows:</p></ol>
1304 <ol><p>the image list.</p></ol>
1307 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1308 _8c.html" target="source" name="GetNextImageAttribute">GetNextImageAttribute</a></h2>
1309 <div class="doc-section">
1311 <p>GetNextImageAttribute() gets the next image attribute.</p></ol>
1313 <p>The format of the GetNextImageAttribute method is:</p>
1316 const ImageAttribute *GetNextImageAttribute(const Image *image)
1319 <p>A description of each parameter follows:</p></ol>
1322 <ol><p>the image.</p></ol>
1325 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1326 _8c.html" target="source" name="GetNumberScenes">GetNumberScenes</a></h2>
1327 <div class="doc-section">
1329 <p>GetNumberScenes() returns the number of images in the list.</p></ol>
1331 <p>The format of the GetNumberScenes method is:</p>
1334 unsigned int GetNumberScenes(const Image *images)
1337 <p>A description of each parameter follows:</p></ol>
1340 <ol><p>the image list.</p></ol>
1343 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1344 _8c.html" target="source" name="GetOnePixel">GetOnePixel</a></h2>
1345 <div class="doc-section">
1347 <p>GetOnePixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs.</p></ol>
1349 <p>The format of the GetOnePixel() method is:</p>
1352 PixelPacket GetOnePixel(const Image image,const long x,const long y)
1355 <p>A description of each parameter follows:</p></ol>
1358 <ol><p>the image.</p></ol>
1361 <ol><p>These values define the location of the pixel to return.</p></ol>
1364 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1365 _8c.html" target="source" name="GetPixels">GetPixels</a></h2>
1366 <div class="doc-section">
1368 <p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1370 <p>The format of the GetPixels() method is:</p>
1373 PixelPacket *GetPixels(const Image image)
1376 <p>A description of each parameter follows:</p></ol>
1379 <ol><p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1382 <ol><p>the image.</p></ol>
1385 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1386 _8c.html" target="source" name="GetPreviousImage">GetPreviousImage</a></h2>
1387 <div class="doc-section">
1389 <p>GetPreviousImage() returns the previous image in a list.</p></ol>
1391 <p>The format of the GetPreviousImage method is:</p>
1394 Image *GetPreviousImage(const Image *images)
1397 <p>A description of each parameter follows:</p></ol>
1400 <ol><p>the image list.</p></ol>
1403 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1404 _8c.html" target="source" name="HSLTransform">HSLTransform</a></h2>
1405 <div class="doc-section">
1407 <p>HSLTransform() converts a (hue, saturation, lightness) to a (red, green, blue) triple.</p></ol>
1409 <p>The format of the HSLTransformImage method is:</p>
1412 void HSLTransform(const double hue,const double saturation,
1413 const double lightness,Quantum *red,Quantum *green,Quantum *blue)
1416 <p>A description of each parameter follows:</p></ol>
1418 <h5>hue, saturation, lightness</h5>
1419 <ol><p>A double value representing a component of the HSL color space.</p></ol>
1421 <h5>red, green, blue</h5>
1422 <ol><p>A pointer to a pixel component of type Quantum.</p></ol>
1425 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1426 _8c.html" target="source" name="IdentityAffine">IdentityAffine</a></h2>
1427 <div class="doc-section">
1429 <p>IdentityAffine() initializes the affine transform to the identity matrix.</p></ol>
1431 <p>The format of the IdentityAffine method is:</p>
1434 IdentityAffine(AffineMatrix *affine)
1437 <p>A description of each parameter follows:</p></ol>
1440 <ol><p>A pointer the affine transform of type AffineMatrix.</p></ol>
1443 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1444 _8c.html" target="source" name="InitializeMagick">InitializeMagick</a></h2>
1445 <div class="doc-section">
1447 <p>InitializeMagick() initializes the ImageMagick environment.</p></ol>
1449 <p>The format of the InitializeMagick function is:</p>
1452 InitializeMagick(const char *path)
1455 <p>A description of each parameter follows:</p></ol>
1458 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1461 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1462 _8c.html" target="source" name="InterpolatePixelColor">InterpolatePixelColor</a></h2>
1463 <div class="doc-section">
1465 <p>InterpolatePixelColor() applies bi-linear or tri-linear interpolation between a pixel and it's neighbors.</p></ol>
1467 <p>The format of the InterpolatePixelColor method is:</p>
1470 MagickPixelPacket InterpolatePixelColor(const Image *image,
1471 CacheView *view_info,InterpolatePixelMethod method,const double x,
1472 const double y,ExceptionInfo *exception)
1475 <p>A description of each parameter follows:</p></ol>
1478 <ol><p>the image.</p></ol>
1481 <ol><p>the image cache view.</p></ol>
1484 <ol><p>the type of pixel color interpolation.</p></ol>
1487 <ol><p>A double representing the current (x,y) position of the pixel.</p></ol>
1490 <ol><p>return any errors or warnings in this structure.</p></ol>
1493 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1494 _8c.html" target="source" name="InterpretImageAttributes">InterpretImageAttributes</a></h2>
1495 <div class="doc-section">
1497 <p>InterpretImageAttributes() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
1499 <p>The format of the InterpretImageAttributes method is:</p>
1502 char *InterpretImageAttributes(const ImageInfo *image_info,Image *image,
1503 const char *embed_text)
1506 <p>A description of each parameter follows:</p></ol>
1509 <ol><p>the image info.</p></ol>
1512 <ol><p>the image.</p></ol>
1515 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
1518 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1519 _8c.html" target="source" name="LevelImageColor">LevelImageColor</a></h2>
1520 <div class="doc-section">
1522 <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>
1524 <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>
1526 <p>The format of the LevelImageColors method is:</p>
1529 MagickBooleanType LevelImageColors(Image *image,const ChannelType channel,
1530 const MagickPixelPacket *black_color,const MagickPixelPacket *white_color,
1531 const MagickBooleanType invert)
1534 <p>A description of each parameter follows:</p></ol>
1537 <ol><p>the image.</p></ol>
1540 <ol><p>the channel.</p></ol>
1542 <h5>black_color</h5>
1543 <ol><p>The color to map black to/from</p></ol>
1545 <h5>white_point</h5>
1546 <ol><p>The color to map white to/from</p></ol>
1549 <ol><p>if true map the colors (levelize), rather than from (level)</p></ol>
1552 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1553 _8c.html" target="source" name="LiberateMemory">LiberateMemory</a></h2>
1554 <div class="doc-section">
1556 <p>LiberateMemory() frees memory that has already been allocated, and NULL's the pointer to it.</p></ol>
1558 <p>The format of the LiberateMemory method is:</p>
1561 void LiberateMemory(void **memory)
1564 <p>A description of each parameter follows:</p></ol>
1567 <ol><p>A pointer to a block of memory to free for reuse.</p></ol>
1570 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1571 _8c.html" target="source" name="LiberateSemaphoreInfo">LiberateSemaphoreInfo</a></h2>
1572 <div class="doc-section">
1574 <p>LiberateSemaphoreInfo() relinquishes a semaphore.</p></ol>
1576 <p>The format of the LiberateSemaphoreInfo method is:</p>
1579 LiberateSemaphoreInfo(void **semaphore_info)
1582 <p>A description of each parameter follows:</p></ol>
1584 <h5>semaphore_info</h5>
1585 <ol><p>Specifies a pointer to an SemaphoreInfo structure.</p></ol>
1588 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1589 _8c.html" target="source" name="MagickIncarnate">MagickIncarnate</a></h2>
1590 <div class="doc-section">
1592 <p>MagickIncarnate() initializes the ImageMagick environment.</p></ol>
1594 <p>The format of the MagickIncarnate function is:</p>
1597 MagickIncarnate(const char *path)
1600 <p>A description of each parameter follows:</p></ol>
1603 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1606 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1607 _8c.html" target="source" name="MagickMonitor">MagickMonitor</a></h2>
1608 <div class="doc-section">
1610 <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>
1612 <p>The format of the MagickMonitor method is:</p>
1615 MagickBooleanType MagickMonitor(const char *text,
1616 const MagickOffsetType offset,const MagickSizeType span,
1620 <p>A description of each parameter follows:</p></ol>
1623 <ol><p>the position relative to the span parameter which represents how much progress has been made toward completing a task.</p></ol>
1626 <ol><p>the span relative to completing a task.</p></ol>
1628 <h5>client_data</h5>
1629 <ol><p>the client data.</p></ol>
1632 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1633 _8c.html" target="source" name="MapImage">MapImage</a></h2>
1634 <div class="doc-section">
1636 <p>MapImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
1638 <p>The format of the MapImage method is:</p>
1641 MagickBooleanType MapImage(Image *image,const Image *map_image,
1642 const MagickBooleanType dither)
1645 <p>A description of each parameter follows:</p></ol>
1648 <ol><p>Specifies a pointer to an Image structure.</p></ol>
1651 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
1654 <ol><p>Set this integer value to something other than zero to dither the mapped image.</p></ol>
1657 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1658 _8c.html" target="source" name="MapImages">MapImages</a></h2>
1659 <div class="doc-section">
1661 <p>MapImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
1663 <p>The format of the MapImage method is:</p>
1666 MagickBooleanType MapImages(Image *images,Image *map_image,
1667 const MagickBooleanType dither)
1670 <p>A description of each parameter follows:</p></ol>
1673 <ol><p>Specifies a pointer to a set of Image structures.</p></ol>
1676 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
1679 <ol><p>Set this integer value to something other than zero to dither the quantized image.</p></ol>
1682 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1683 _8c.html" target="source" name="MatteFloodfill">MatteFloodfill</a></h2>
1684 <div class="doc-section">
1686 <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>
1688 <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>
1690 <p>The format of the MatteFloodfillImage method is:</p>
1693 MagickBooleanType MatteFloodfillImage(Image *image,
1694 const PixelPacket target,const Quantum opacity,const long x_offset,
1695 const long y_offset,const PaintMethod method)
1698 <p>A description of each parameter follows:</p></ol>
1701 <ol><p>the image.</p></ol>
1704 <ol><p>the RGB value of the target color.</p></ol>
1707 <ol><p>the level of transparency: 0 is fully opaque and QuantumRange is fully transparent.</p></ol>
1710 <ol><p>the starting location of the operation.</p></ol>
1713 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
1716 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1717 _8c.html" target="source" name="MosaicImages">MosaicImages</a></h2>
1718 <div class="doc-section">
1720 <p>MosaicImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
1722 <p>The format of the MosaicImage method is:</p>
1725 Image *MosaicImages(const Image *image,ExceptionInfo *exception)
1728 <p>A description of each parameter follows:</p></ol>
1731 <ol><p>the image list to be composited together</p></ol>
1734 <ol><p>return any errors or warnings in this structure.</p></ol>
1737 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1738 _8c.html" target="source" name="OpaqueImage">OpaqueImage</a></h2>
1739 <div class="doc-section">
1741 <p>OpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
1743 <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>
1745 <p>The format of the OpaqueImage method is:</p>
1748 MagickBooleanType OpaqueImage(Image *image,
1749 const PixelPacket *target,const PixelPacket fill)
1752 <p>A description of each parameter follows:</p></ol>
1755 <ol><p>the image.</p></ol>
1758 <ol><p>the RGB value of the target color.</p></ol>
1761 <ol><p>the replacement color.</p></ol>
1764 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1765 _8c.html" target="source" name="OpenCacheView">OpenCacheView</a></h2>
1766 <div class="doc-section">
1768 <p>OpenCacheView() opens a view into the pixel cache, using the VirtualPixelMethod that is defined within the given image itself.</p></ol>
1770 <p>The format of the OpenCacheView method is:</p>
1773 CacheView *OpenCacheView(const Image *image)
1776 <p>A description of each parameter follows:</p></ol>
1779 <ol><p>the image.</p></ol>
1782 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1783 _8c.html" target="source" name="PaintFloodfill">PaintFloodfill</a></h2>
1784 <div class="doc-section">
1786 <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>
1788 <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>
1790 <p>The format of the PaintFloodfillImage method is:</p>
1793 MagickBooleanType PaintFloodfillImage(Image *image,
1794 const ChannelType channel,const MagickPixelPacket target,const long x,
1795 const long y,const DrawInfo *draw_info,const PaintMethod method)
1798 <p>A description of each parameter follows:</p></ol>
1801 <ol><p>the image.</p></ol>
1804 <ol><p>the channel(s).</p></ol>
1807 <ol><p>the RGB value of the target color.</p></ol>
1810 <ol><p>the starting location of the operation.</p></ol>
1813 <ol><p>the draw info.</p></ol>
1816 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
1819 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1820 _8c.html" target="source" name="PaintOpaqueImage">PaintOpaqueImage</a></h2>
1821 <div class="doc-section">
1823 <p>PaintOpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
1825 <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>
1827 <p>The format of the PaintOpaqueImage method is:</p>
1830 MagickBooleanType PaintOpaqueImage(Image *image,
1831 const PixelPacket *target,const PixelPacket *fill)
1832 MagickBooleanType PaintOpaqueImageChannel(Image *image,
1833 const ChannelType channel,const PixelPacket *target,
1834 const PixelPacket *fill)
1837 <p>A description of each parameter follows:</p></ol>
1840 <ol><p>the image.</p></ol>
1843 <ol><p>the channel(s).</p></ol>
1846 <ol><p>the RGB value of the target color.</p></ol>
1849 <ol><p>the replacement color.</p></ol>
1852 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1853 _8c.html" target="source" name="PaintTransparentImage">PaintTransparentImage</a></h2>
1854 <div class="doc-section">
1856 <p>PaintTransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
1858 <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>
1860 <p>The format of the PaintTransparentImage method is:</p>
1863 MagickBooleanType PaintTransparentImage(Image *image,
1864 const MagickPixelPacket *target,const Quantum opacity)
1867 <p>A description of each parameter follows:</p></ol>
1870 <ol><p>the image.</p></ol>
1873 <ol><p>the RGB value of the target color.</p></ol>
1876 <ol><p>the replacement opacity value.</p></ol>
1879 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1880 _8c.html" target="source" name="ParseSizeGeometry">ParseSizeGeometry</a></h2>
1881 <div class="doc-section">
1883 <p>ParseSizeGeometry() returns a region as defined by the geometry string with respect to the image dimensions and aspect ratio.</p></ol>
1885 <p>The format of the ParseSizeGeometry method is:</p>
1888 MagickStatusType ParseSizeGeometry(const Image *image,
1889 const char *geometry,RectangeInfo *region_info)
1892 <p>A description of each parameter follows:</p></ol>
1895 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
1897 <h5>region_info</h5>
1898 <ol><p>the region as defined by the geometry string.</p></ol>
1901 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1902 _8c.html" target="source" name="PopImageList">PopImageList</a></h2>
1903 <div class="doc-section">
1905 <p>PopImageList() removes the last image in the list.</p></ol>
1907 <p>The format of the PopImageList method is:</p>
1910 Image *PopImageList(Image **images)
1913 <p>A description of each parameter follows:</p></ol>
1916 <ol><p>the image list.</p></ol>
1919 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1920 _8c.html" target="source" name="PopImagePixels">PopImagePixels</a></h2>
1921 <div class="doc-section">
1923 <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>
1925 <p>The format of the PopImagePixels method is:</p>
1928 size_t PopImagePixels(Image *,const QuantumType quantum,
1929 unsigned char *destination)
1932 <p>A description of each parameter follows:</p></ol>
1935 <ol><p>the image.</p></ol>
1938 <ol><p>Declare which pixel components to transfer (RGB, RGBA, etc).</p></ol>
1940 <h5>destination</h5>
1941 <ol><p>The components are transferred to this buffer.</p></ol>
1944 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1945 _8c.html" target="source" name="PostscriptGeometry">PostscriptGeometry</a></h2>
1946 <div class="doc-section">
1948 <p>PostscriptGeometry() replaces any page mneumonic with the equivalent size in picas.</p></ol>
1950 <p>The format of the PostscriptGeometry method is:</p>
1953 char *PostscriptGeometry(const char *page)
1956 <p>A description of each parameter follows.</p></ol>
1959 <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>
1962 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1963 _8c.html" target="source" name="PushImageList">PushImageList</a></h2>
1964 <div class="doc-section">
1966 <p>PushImageList() adds an image to the end of the list.</p></ol>
1968 <p>The format of the PushImageList method is:</p>
1971 unsigned int PushImageList(Image *images,const Image *image,
1972 ExceptionInfo *exception)
1975 <p>A description of each parameter follows:</p></ol>
1978 <ol><p>the image list.</p></ol>
1981 <ol><p>the image.</p></ol>
1984 <ol><p>return any errors or warnings in this structure.</p></ol>
1987 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1988 _8c.html" target="source" name="PushImagePixels">PushImagePixels</a></h2>
1989 <div class="doc-section">
1991 <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>
1993 <p>The format of the PushImagePixels method is:</p>
1996 size_t PushImagePixels(Image *image,const QuantumType quantum,
1997 const unsigned char *source)
2000 <p>A description of each parameter follows:</p></ol>
2003 <ol><p>the image.</p></ol>
2006 <ol><p>Declare which pixel components to transfer (red, green, blue, opacity, RGB, or RGBA).</p></ol>
2009 <ol><p>The pixel components are transferred from this buffer.</p></ol>
2012 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2013 _8c.html" target="source" name="QuantizationError">QuantizationError</a></h2>
2014 <div class="doc-section">
2016 <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>
2019 o mean_error_per_pixel: This value is the mean error for any single
2023 <h5>normalized_mean_square_error</h5>
2024 <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>
2026 <h5>normalized_maximum_square_error</h5>
2027 <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>
2030 <p>The format of the QuantizationError method is:</p>
2033 unsigned int QuantizationError(Image *image)
2036 <p>A description of each parameter follows.</p></ol>
2039 <ol><p>Specifies a pointer to an Image structure; returned from ReadImage.</p></ol>
2042 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2043 _8c.html" target="source" name="RandomChannelThresholdImage">RandomChannelThresholdImage</a></h2>
2044 <div class="doc-section">
2046 <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>
2048 <p>The format of the RandomChannelThresholdImage method is:</p>
2051 unsigned int RandomChannelThresholdImage(Image *image,
2052 const char *channel, const char *thresholds,
2053 ExceptionInfo *exception)
2056 <p>A description of each parameter follows:</p></ol>
2059 <ol><p>the image.</p></ol>
2062 <ol><p>the channel or channels to be thresholded.</p></ol>
2065 <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>
2068 <ol><p>return any errors or warnings in this structure.</p></ol>
2071 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2072 _8c.html" target="source" name="ReacquireMemory">ReacquireMemory</a></h2>
2073 <div class="doc-section">
2075 <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>
2077 <p>The format of the ReacquireMemory method is:</p>
2080 void ReacquireMemory(void **memory,const size_t size)
2083 <p>A description of each parameter follows:</p></ol>
2086 <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>
2089 <ol><p>the new size of the allocated memory.</p></ol>
2092 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2093 _8c.html" target="source" name="ResetImageAttributeIterator">ResetImageAttributeIterator</a></h2>
2094 <div class="doc-section">
2096 <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>
2098 <p>The format of the ResetImageAttributeIterator method is:</p>
2101 ResetImageAttributeIterator(const ImageInfo *image)
2104 <p>A description of each parameter follows:</p></ol>
2107 <ol><p>the image.</p></ol>
2110 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2111 _8c.html" target="source" name="SetCacheViewPixels">SetCacheViewPixels</a></h2>
2112 <div class="doc-section">
2114 <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>
2116 <p>The format of the SetCacheViewPixels method is:</p>
2119 PixelPacket *SetCacheViewPixels(CacheView *cache_view,const long x,
2120 const long y,const unsigned long columns,const unsigned long rows)
2123 <p>A description of each parameter follows:</p></ol>
2126 <ol><p>the cache view.</p></ol>
2128 <h5>x,y,columns,rows</h5>
2129 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2132 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2133 _8c.html" target="source" name="SetExceptionInfo">SetExceptionInfo</a></h2>
2134 <div class="doc-section">
2136 <p>SetExceptionInfo() sets the exception severity.</p></ol>
2138 <p>The format of the SetExceptionInfo method is:</p>
2141 MagickBooleanType SetExceptionInfo(ExceptionInfo *exception,
2142 ExceptionType severity)
2145 <p>A description of each parameter follows:</p></ol>
2148 <ol><p>the exception info.</p></ol>
2151 <ol><p>the exception severity.</p></ol>
2154 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2155 _8c.html" target="source" name="SetImage">SetImage</a></h2>
2156 <div class="doc-section">
2158 <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>
2160 <p>The format of the SetImage method is:</p>
2163 void SetImage(Image *image,const Quantum opacity)
2166 <p>A description of each parameter follows:</p></ol>
2169 <ol><p>the image.</p></ol>
2172 <ol><p>Set each pixel to this level of transparency.</p></ol>
2175 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2176 _8c.html" target="source" name="SetImageAttribute">SetImageAttribute</a></h2>
2177 <div class="doc-section">
2179 <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>
2181 <p>The format of the SetImageAttribute method is:</p>
2184 MagickBooleanType SetImageAttribute(Image *image,const char *key,
2188 <p>A description of each parameter follows:</p></ol>
2191 <ol><p>the image.</p></ol>
2194 <ol><p>the key.</p></ol>
2197 <ol><p>the value.</p></ol>
2200 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2201 _8c.html" target="source" name="SetImageList">SetImageList</a></h2>
2202 <div class="doc-section">
2204 <p>SetImageList() inserts an image into the list at the specified position.</p></ol>
2206 <p>The format of the SetImageList method is:</p>
2209 unsigned int SetImageList(Image *images,const Image *image,
2210 const long offset,ExceptionInfo *exception)
2213 <p>A description of each parameter follows:</p></ol>
2216 <ol><p>the image list.</p></ol>
2219 <ol><p>the image.</p></ol>
2222 <ol><p>the position within the list.</p></ol>
2225 <ol><p>return any errors or warnings in this structure.</p></ol>
2228 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2229 _8c.html" target="source" name="SetImagePixels">SetImagePixels</a></h2>
2230 <div class="doc-section">
2232 <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>
2234 <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>
2236 <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>
2238 <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>
2240 <p>The format of the SetImagePixels() method is:</p>
2243 PixelPacket *SetImagePixels(Image *image,const long x,const long y,
2244 const unsigned long columns,const unsigned long rows)
2247 <p>A description of each parameter follows:</p></ol>
2250 <ol><p>SetImagePixels returns a pointer to the pixels if they are transferred, otherwise a NULL is returned.</p></ol>
2253 <ol><p>the image.</p></ol>
2255 <h5>x,y,columns,rows</h5>
2256 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2259 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2260 _8c.html" target="source" name="SetMagickRegistry">SetMagickRegistry</a></h2>
2261 <div class="doc-section">
2263 <p>SetMagickRegistry() sets a blob into the registry and returns a unique ID. If an error occurs, -1 is returned.</p></ol>
2265 <p>The format of the SetMagickRegistry method is:</p>
2268 long SetMagickRegistry(const RegistryType type,const void *blob,
2269 const size_t length,ExceptionInfo *exception)
2272 <p>A description of each parameter follows:</p></ol>
2275 <ol><p>the registry type.</p></ol>
2278 <ol><p>the address of a Binary Large OBject.</p></ol>
2281 <ol><p>For a registry type of ImageRegistryType use sizeof(Image) otherise the blob length in number of bytes.</p></ol>
2284 <ol><p>return any errors or warnings in this structure.</p></ol>
2287 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2288 _8c.html" target="source" name="SetMonitorHandler">SetMonitorHandler</a></h2>
2289 <div class="doc-section">
2291 <p>SetMonitorHandler() sets the monitor handler to the specified method and returns the previous monitor handler.</p></ol>
2293 <p>The format of the SetMonitorHandler method is:</p>
2296 MonitorHandler SetMonitorHandler(MonitorHandler handler)
2299 <p>A description of each parameter follows:</p></ol>
2302 <ol><p>Specifies a pointer to a method to handle monitors.</p></ol>
2305 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2306 _8c.html" target="source" name="ShiftImageList">ShiftImageList</a></h2>
2307 <div class="doc-section">
2309 <p>ShiftImageList() removes an image from the beginning of the list.</p></ol>
2311 <p>The format of the ShiftImageList method is:</p>
2314 Image *ShiftImageList(Image **images)
2317 <p>A description of each parameter follows:</p></ol>
2320 <ol><p>the image list.</p></ol>
2323 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2324 _8c.html" target="source" name="SpliceImageList">SpliceImageList</a></h2>
2325 <div class="doc-section">
2327 <p>SpliceImageList() removes the images designated by offset and length from the list and replaces them with the specified list.</p></ol>
2329 <p>The format of the SpliceImageList method is:</p>
2332 Image *SpliceImageList(Image *images,const long offset,
2333 const unsigned long length,const Image *splices,
2334 ExceptionInfo *exception)
2337 <p>A description of each parameter follows:</p></ol>
2340 <ol><p>the image list.</p></ol>
2343 <ol><p>the position within the list.</p></ol>
2346 <ol><p>the length of the image list to remove.</p></ol>
2349 <ol><p>Replace the removed image list with this list.</p></ol>
2352 <ol><p>return any errors or warnings in this structure.</p></ol>
2355 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2356 _8c.html" target="source" name="Strip">Strip</a></h2>
2357 <div class="doc-section">
2359 <p>Strip() strips any whitespace or quotes from the beginning and end of a string of characters.</p></ol>
2361 <p>The format of the Strip method is:</p>
2364 void Strip(char *message)
2367 <p>A description of each parameter follows:</p></ol>
2370 <ol><p>Specifies an array of characters.</p></ol>
2373 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2374 _8c.html" target="source" name="SyncCacheView">SyncCacheView</a></h2>
2375 <div class="doc-section">
2377 <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>
2379 <p>The format of the SyncCacheView method is:</p>
2382 MagickBooleanType SyncCacheView(CacheView *cache_view)
2385 <p>A description of each parameter follows:</p></ol>
2388 <ol><p>the cache view.</p></ol>
2391 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2392 _8c.html" target="source" name="SyncCacheViewPixels">SyncCacheViewPixels</a></h2>
2393 <div class="doc-section">
2395 <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>
2397 <p>The format of the SyncCacheViewPixels method is:</p>
2400 MagickBooleanType SyncCacheViewPixels(CacheView *cache_view)
2403 <p>A description of each parameter follows:</p></ol>
2406 <ol><p>the cache view.</p></ol>
2409 <ol><p>return any errors or warnings in this structure.</p></ol>
2412 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2413 _8c.html" target="source" name="SyncImagePixels">SyncImagePixels</a></h2>
2414 <div class="doc-section">
2416 <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>
2418 <p>The format of the SyncImagePixels() method is:</p>
2421 MagickBooleanType SyncImagePixels(Image *image)
2424 <p>A description of each parameter follows:</p></ol>
2427 <ol><p>the image.</p></ol>
2430 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2431 _8c.html" target="source" name="TemporaryFilename">TemporaryFilename</a></h2>
2432 <div class="doc-section">
2434 <p>TemporaryFilename() replaces the contents of path by a unique path name.</p></ol>
2436 <p>The format of the TemporaryFilename method is:</p>
2439 void TemporaryFilename(char *path)
2442 <p>A description of each parameter follows.</p></ol>
2445 <ol><p>Specifies a pointer to an array of characters. The unique path name is returned in this array.</p></ol>
2448 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2449 _8c.html" target="source" name="ThresholdImage">ThresholdImage</a></h2>
2450 <div class="doc-section">
2452 <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>
2454 <p>The format of the ThresholdImage method is:</p>
2457 unsigned int ThresholdImage(Image *image,const double threshold)
2460 <p>A description of each parameter follows:</p></ol>
2463 <ol><p>the image.</p></ol>
2466 <ol><p>Define the threshold value</p></ol>
2469 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2470 _8c.html" target="source" name="ThresholdImageChannel">ThresholdImageChannel</a></h2>
2471 <div class="doc-section">
2473 <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>
2475 <p>The format of the ThresholdImageChannel method is:</p>
2478 unsigned int ThresholdImageChannel(Image *image,const char *threshold)
2481 <p>A description of each parameter follows:</p></ol>
2484 <ol><p>the image.</p></ol>
2487 <ol><p>define the threshold values.</p></ol>
2490 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2491 _8c.html" target="source" name="TransformHSL">TransformHSL</a></h2>
2492 <div class="doc-section">
2494 <p>TransformHSL() converts a (red, green, blue) to a (hue, saturation, lightness) triple.</p></ol>
2496 <p>The format of the TransformHSL method is:</p>
2499 void TransformHSL(const Quantum red,const Quantum green,
2500 const Quantum blue,double *hue,double *saturation,double *lightness)
2503 <p>A description of each parameter follows:</p></ol>
2505 <h5>red, green, blue</h5>
2506 <ol><p>A Quantum value representing the red, green, and blue component of a pixel..</p></ol>
2508 <h5>hue, saturation, lightness</h5>
2509 <ol><p>A pointer to a double value representing a component of the HSL color space.</p></ol>
2512 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2513 _8c.html" target="source" name="TranslateText">TranslateText</a></h2>
2514 <div class="doc-section">
2516 <p>TranslateText() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
2518 <p>The format of the TranslateText method is:</p>
2521 char *TranslateText(const ImageInfo *image_info,Image *image,
2522 const char *embed_text)
2525 <p>A description of each parameter follows:</p></ol>
2528 <ol><p>the image info.</p></ol>
2531 <ol><p>the image.</p></ol>
2534 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
2537 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2538 _8c.html" target="source" name="TransparentImage">TransparentImage</a></h2>
2539 <div class="doc-section">
2541 <p>TransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
2543 <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>
2545 <p>The format of the TransparentImage method is:</p>
2548 MagickBooleanType TransparentImage(Image *image,
2549 const PixelPacket target,const Quantum opacity)
2552 <p>A description of each parameter follows:</p></ol>
2555 <ol><p>the image.</p></ol>
2558 <ol><p>the RGB value of the target color.</p></ol>
2561 <ol><p>the replacement opacity value.</p></ol>
2564 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2565 _8c.html" target="source" name="UnshiftImageList">UnshiftImageList</a></h2>
2566 <div class="doc-section">
2568 <p>UnshiftImageList() adds the image to the beginning of the list.</p></ol>
2570 <p>The format of the UnshiftImageList method is:</p>
2573 unsigned int UnshiftImageList(Image *images,const Image *image,
2574 ExceptionInfo *exception)
2577 <p>A description of each parameter follows:</p></ol>
2580 <ol><p>the image list.</p></ol>
2583 <ol><p>the image.</p></ol>
2586 <ol><p>return any errors or warnings in this structure.</p></ol>
2592 <div id="linkbar">
\r
2593 <!-- <span id="linkbar-west"> </span> -->
\r
2594 <span id="linkbar-center">
\r
2595 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
2596 <a href="../../www/mailing-list.html">Mailing Lists</a> •
\r
2597 <a href="http://studio.webbyland.com/ImageMagick/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
2599 <span id="linkbar-east"> </span>
\r
2601 <div class="footer">
\r
2602 <span id="footer-west">© 1999-2009 ImageMagick Studio LLC</span>
\r
2603 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
2605 <div style="clear: both; margin: 0; width: 100%; "></div>
\r