• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6<title>Magick++ API: Working with Images</title>
7<link rel="stylesheet" href="magick.css" type="text/css" />
8</head>
9<body>
10<div class="doc-section">
11<center>
12<h1> Magick::Image Class</h1>
13</center>
14<h4> Quick Contents</h4>
15<ul>
16  <li> <a href="Image++.html#BLOBs">BLOBs</a> </li>
17  <li> <a href="Image++.html#Constructors">Constructors</a> </li>
18  <li> <a href="Image++.html#Image%20Manipulation%20Methods">Image Manipulation
19Methods</a> </li>
20  <li> <a href="Image++.html#Image%20Attributes">Image Attributes</a> </li>
21  <li> <a href="Image++.html#Raw%20Image%20Pixel%20Access">Low-Level Image Pixel
22Access</a> </li>
23</ul>
24<p>Image is the primary object in Magick++ and represents
25a single image frame (see <a href="ImageDesign.html">design</a> ). The
26<a href="STL.html">STL interface</a> <b>must</b> be used to operate on
27image sequences or images (e.g. of format GIF, TIFF, MIFF, Postscript,
28&amp; MNG) which are comprized of multiple image frames. Individual
29frames of a multi-frame image may be requested by adding array-style
30notation to the end of the file name (e.g. "animation.gif[3]" retrieves
31the fourth frame of a GIF animation.&#160; Various image manipulation
32operations may be applied to the image. Attributes may be set on the
33image to influence the operation of the manipulation operations. The <a
34 href="Pixels.html"> Pixels</a> class provides low-level access to
35image
36pixels. As a convenience, including <tt><font color="#663366">&lt;Magick++.h&gt;</font></tt>
37is sufficient in order to use the complete Magick++ API. The Magick++
38API is enclosed within the <i>Magick</i> namespace so you must either
39add the prefix "<tt> Magick::</tt> " to each class/enumeration name or
40add
41the statement "<tt> using namespace Magick;</tt>" after including the <tt>Magick++.h</tt>
42header.</p>
43<p>The preferred way to allocate Image objects is via automatic
44allocation (on the stack). There is no concern that allocating Image
45objects on the stack will excessively enlarge the stack since Magick++
46allocates all large data objects (such as the actual image data) from
47the heap. Use of automatic allocation is preferred over explicit
48allocation (via <i>new</i>) since it is much less error prone and
49allows use of C++ scoping rules to avoid memory leaks. Use of automatic
50allocation allows Magick++ objects to be assigned and copied just like
51the C++ intrinsic data types (e.g. '<i>int</i> '), leading to clear and
52easy to read code. Use of automatic allocation leads to naturally
53exception-safe code since if an exception is thrown, the object is
54automagically deallocated once the stack unwinds past the scope of the
55allocation (not the case for objects allocated via <i>new</i> ). </p>
56<p>Image is very easy to use. For example, here is a the source to a
57program which reads an image, crops it, and writes it to a new file
58(the
59exception handling is optional but strongly recommended): </p>
60<pre class="code">
61#include &lt;Magick++.h>
62#include &lt;iostream>
63using namespace std;
64using namespace Magick;
65int main(int argc,char **argv)
66{
67  InitializeMagick(*argv);
68
69  // Construct the image object. Seperating image construction from the
70  // the read operation ensures that a failure to read the image file
71  // doesn't render the image object useless.
72  Image image;
73  try {
74    // Read a file into image object
75    image.read( "girl.gif" );
76
77    // Crop the image to specified size (width, height, xOffset, yOffset)
78    image.crop( Geometry(100,100, 100, 100) );
79
80    // Write the image to a file
81    image.write( "x.gif" );
82  }
83  catch( Exception &amp;error_ )
84    {
85      cout &lt;&lt; "Caught exception: " &lt;&lt; error_.what() &lt;&lt; endl;
86      return 1;
87    }
88  return 0;
89}
90</pre>
91The following is the source to a program which illustrates the use of
92Magick++'s efficient reference-counted assignment and copy-constructor
93operations which minimize use of memory and eliminate unncessary copy
94operations (allowing Image objects to be efficiently assigned, and
95copied into containers).&#160; The program accomplishes the
96following:
97<ol>
98  <li> Read master image.</li>
99  <li> Assign master image to second image.</li>
100  <li> Resize second image to the size 640x480.</li>
101  <li> Assign master image to a third image.</li>
102  <li> Resize third image to the size 800x600.</li>
103  <li> Write the second image to a file.</li>
104  <li> Write the third image to a file.</li>
105</ol>
106<pre class="code">
107#include &lt;Magick++.h>
108#include &lt;iostream>
109using namespace std;
110using namespace Magick;
111int main(int argc,char **argv)
112{
113  InitializeMagick(*argv);
114
115  Image master("horse.jpg");
116  Image second = master;
117  second.resize("640x480");
118  Image third = master;
119  third.resize("800x600");
120  second.write("horse640x480.jpg");
121  third.write("horse800x600.jpg");
122  return 0;
123}
124</pre>
125During the entire operation, a maximum of three images exist in memory
126and the image data is never copied.
127<p>The following is the source for another simple program which creates
128a 100 by 100 pixel white image with a red pixel in the center and
129writes it to a file: </p>
130<pre class="code">
131#include &lt;Magick++.h>
132using namespace std;
133using namespace Magick;
134int main(int argc,char **argv)
135{
136  InitializeMagick(*argv);
137  Image image( "100x100", "white" );
138  image.pixelColor( 49, 49, "red" );
139  image.write( "red_pixel.png" );
140  return 0;
141}
142</pre>
143If you wanted to change the color image to grayscale, you could add the
144lines:
145<pre class="code">
146image.quantizeColorSpace( GRAYColorspace );
147image.quantizeColors( 256 );
148image.quantize( );
149</pre>
150<p>or, more simply: </p>
151<pre class="code">
152 image.type( GrayscaleType );
153</pre>
154<p>prior to writing the image. </p>
155<center>
156<h3> <a name="BLOBs"></a> BLOBs</h3>
157</center>
158While encoded images (e.g. JPEG) are most often written-to and
159read-from a disk file, encoded images may also reside in memory.
160Encoded
161images in memory are known as BLOBs (Binary Large OBjects) and may be
162represented using the <a href="Blob.html">Blob</a> class. The encoded
163image may be initially placed in memory by reading it directly from a
164file, reading the image from a database, memory-mapped from a disk
165file, or could be written to memory by Magick++. Once the encoded image
166has been placed within a Blob, it may be read into a Magick++ Image via
167a <a href="Image++.html#constructor_blob">constructor</a> or <a href="Image++.html#read">read()</a>
168. Likewise, a Magick++ image may be written to a Blob via <a
169 href="Image++.html#write"> write()</a> .
170<p>An example of using Image to write to a Blob follows: <br />
171&#160; </p>
172<pre class="code">
173#include &gt;Magick++.h>
174using namespace std;
175using namespace Magick;
176int main(int argc,char **argv)
177{
178  InitializeMagick(*argv);
179
180  // Read GIF file from disk
181  Image image( "giraffe.gif" );
182  // Write to BLOB in JPEG format
183  Blob blob;
184  image.magick( "JPEG" ) // Set JPEG output format
185  image.write( &amp;blob );
186
187  [ Use BLOB data (in JPEG format) here ]
188
189  return 0;
190}
191</pre>
192<p><br />
193likewise, to read an image from a Blob, you could use one of the
194following examples: </p>
195<p>[ <font color="#000000">Entry condition for the following examples
196is that <i>data</i> is pointer to encoded image data and <i>length</i>
197represents the size of the data</font> ] </p>
198<pre class="code">
199Blob blob( data, length );
200Image image( blob );
201</pre>
202or
203<pre class="code">
204Blob blob( data, length );
205Image image;
206image.read( blob);
207</pre>
208some images do not contain their size or format so the size and format must be specified in advance:
209<pre class="code">
210Blob blob( data, length );
211Image image;
212image.size( "640x480")
213image.magick( "RGBA" );
214image.read( blob);
215</pre>
216<center>
217<h3> <a name="Constructors"></a> Constructors</h3>
218</center>
219Image may be constructed in a number of ways. It may be constructed
220from a file, a URL, or an encoded image (e.g. JPEG) contained in an
221in-memory <a href="Blob.html"> BLOB</a> . The available Image
222constructors are shown in the following table: <br />
223&#160; <br />
224&#160;
225<table bgcolor="#ffffff" border="1" width="100%">
226  <caption><b>Image Constructors</b></caption> <tbody>
227    <tr>
228      <td>
229      <center><b>Signature</b></center>
230      </td>
231      <td>
232      <center><b>Description</b></center>
233      </td>
234    </tr>
235    <tr>
236      <td><font size="-1">const std::string &amp;imageSpec_</font></td>
237      <td><font size="-1">Construct Image by reading from file or URL
238specified by <i>imageSpec_</i>. Use array notation (e.g. filename[9])
239to select a specific scene from a multi-frame image.</font></td>
240    </tr>
241    <tr>
242      <td><font size="-1">const Geometry &amp;size_, const <a
243 href="Color.html"> Color</a> &amp;color_</font></td>
244      <td><font size="-1">Construct a blank image canvas of specified
245size and color</font></td>
246    </tr>
247    <tr>
248      <td><a name="constructor_blob"></a> <font size="-1">const <a
249 href="Blob.html">Blob</a> &amp;blob_</font></td>
250      <td rowspan="5"><font size="-1">Construct Image by reading from
251encoded image data contained in an in-memory <a href="Blob.html">BLOB</a>
252. Depending on the constructor arguments, the Blob <a href="Image++.html#size">size</a>
253, <a href="Image++.html#depth">depth</a> , <a href="Image++.html#magick">magick</a> (format)
254may
255also be specified. Some image formats require that size be specified.
256The default ImageMagick uses for depth depends on the compiled-in
257Quantum size (8 or 16).&#160; If ImageMagick's Quantum size does not
258match that of the image, the depth may need to be specified.
259ImageMagick can usually automagically detect the image's format.
260When a format can't be automagically detected, the format (<a
261 href="Image++.html#magick">magick</a> ) must be specified.</font></td>
262    </tr>
263    <tr>
264      <td><font size="-1">const <a href="Blob.html">Blob</a>
265&amp;blob_, const <a href="Geometry.html">Geometry</a> &amp;size_</font></td>
266    </tr>
267    <tr>
268      <td><font size="-1">const <a href="Blob.html">Blob</a>
269&amp;blob_, const <a href="Geometry.html">Geometry</a> &amp;size,
270size_t depth</font></td>
271    </tr>
272    <tr>
273      <td><font size="-1">const <a href="Blob.html">Blob</a>
274&amp;blob_, const <a href="Geometry.html">Geometry</a> &amp;size,
275size_t depth_, const string &amp;magick_</font></td>
276    </tr>
277    <tr>
278      <td><font size="-1">const <a href="Blob.html">Blob</a>
279&amp;blob_, const <a href="Geometry.html">Geometry</a> &amp;size,
280const
281string &amp;magick_</font></td>
282    </tr>
283    <tr>
284      <td><font size="-1">const size_t width_,&#160;</font> <br />
285      <font size="-1">const size_t height_,</font> <br />
286      <font size="-1">std::string map_,</font> <br />
287      <font size="-1">const <a href="Enumerations.html#StorageType">
288StorageType</a> type_,</font> <br />
289      <font size="-1">const void *pixels_</font></td>
290      <td><font size="-1">Construct a new Image based on an array of
291image pixels. The pixel data must be in scanline order top-to-bottom.
292The data can be character, short int, integer, float, or double. Float
293and double require the pixels to be normalized [0..1]. The other types
294are [0..MaxRGB].&#160; For example, to create a 640x480 image from
295unsigned red-green-blue character data, use</font>
296      <p><font size="-1">&#160;&#160; Image image( 640, 480, "RGB",
2970, pixels );</font> </p>
298      <p><font size="-1">The parameters are as follows:</font> <br />
299&#160;</p>
300      <table border="0" width="100%">
301        <tbody>
302          <tr>
303            <td><font size="-1">width_</font></td>
304            <td><font size="-1">Width in pixels of the image.</font></td>
305          </tr>
306          <tr>
307            <td><font size="-1">height_</font></td>
308            <td><font size="-1">Height in pixels of the image.</font></td>
309          </tr>
310          <tr>
311            <td><font size="-1">map_</font></td>
312            <td><font size="-1">This character string can be any
313combination or order of R = red, G = green, B = blue, A = alpha, C =
314cyan, Y = yellow M = magenta, and K = black. The ordering reflects the
315order of the pixels in the supplied pixel array.</font></td>
316          </tr>
317          <tr>
318            <td><font size="-1">type_</font></td>
319            <td><font size="-1"><a href="Enumerations.html#StorageType">Pixel
320storage type</a> (CharPixel, ShortPixel, IntegerPixel, FloatPixel, or
321DoublePixel)</font></td>
322          </tr>
323          <tr>
324            <td><font size="-1">pixels_</font></td>
325            <td><font size="-1">This array of values contain the pixel
326components as defined by the map_ and type_ parameters. The length of
327the arrays must equal the area specified by the width_ and height_
328values and type_ parameters.</font></td>
329          </tr>
330        </tbody>
331      </table>
332      </td>
333    </tr>
334  </tbody>
335</table>
336<center>
337<h3> <a name="Image Manipulation Methods"></a> Image Manipulation
338Methods</h3>
339</center>
340<i>Image</i> supports access to all the single-image (versus
341image-list) manipulation operations provided by the ImageMagick
342library. If you
343must process a multi-image file (such as an animation), the <a
344 href="STL.html"> STL interface</a> , which provides a multi-image
345abstraction on top of <i>Image</i>, must be used.
346<p>Image manipulation methods are very easy to use.&#160; For example: </p>
347<pre class="code">
348Image image;
349image.read("myImage.tiff");
350image.addNoise(GaussianNoise);
351image.write("myImage.tiff");
352</pre>
353adds gaussian noise to the image file "myImage.tiff".
354<p>The operations supported by Image are shown in the following table: <br />
355&#160;</p>
356<table border="1">
357  <caption><b>Image Image Manipulation Methods</b></caption> <tbody>
358    <tr align="center">
359      <td><b>Method</b></td>
360      <td><b>Signature(s)</b></td>
361      <td><b>Description</b></td>
362    </tr>
363    <tr>
364      <td style="text-align: center;" valign="middle">
365      <div style="text-align:center"><a name="adaptiveThreshold"></a> <font
366 size="-1">adaptiveThreshold<br />
367      </font></div>
368      </td>
369      <td valign="middle"><font size="-1">size_t width, size_t
370height, size_t offset = 0<br />
371      </font></td>
372      <td valign="top"><font size="-1">Apply adaptive thresholding to
373the image. Adaptive thresholding is useful if the ideal threshold level
374is not known in advance, or if the illumination gradient is not
375constant
376across the image. Adaptive thresholding works by evaulating the mean
377(average) of a pixel region (size specified by <i>width</i> and <i>height</i>)
378and using the mean as the thresholding value. In order to remove
379residual noise from the background, the threshold may be adjusted by
380subtracting a constant <i>offset</i> (default zero) from the mean to
381compute the threshold.</font><br />
382      </td>
383    </tr>
384    <tr>
385      <td style="text-align: center;">
386      <center><a name="addNoise"></a> <font size="-1">addNoise</font></center>
387      </td>
388      <td><font size="-1"><a href="Enumerations.html#NoiseType">NoiseType</a>
389noiseType_</font></td>
390      <td><font size="-1">Add noise to image with specified noise type.</font></td>
391    </tr>
392    <tr>
393      <td style="vertical-align: middle; text-align: center;"><small><a
394 name="addNoiseChannel"></a>addNoiseChannel<br />
395      </small></td>
396      <td style="vertical-align: middle;"><small>const ChannelType
397channel_, const NoiseType noiseType_<br />
398      </small></td>
399      <td style="vertical-align: middle;"><small>Add noise to an image
400channel with the specified noise type.</small><font size="-1"> The <span
401 style="font-style: italic;">channel_</span> parameter specifies the
402channel to add noise to.&#160; The </font><small>noiseType_ parameter
403specifies the type of noise.<br />
404      </small></td>
405    </tr>
406    <tr>
407      <td style="vertical-align: middle; text-align: center;"><small><a
408 name="affineTransform"></a>affineTransform<br />
409      </small></td>
410      <td style="vertical-align: middle;"><small>const DrawableAffine
411&amp;affine<br />
412      </small></td>
413      <td style="vertical-align: middle;"><small>Transform image by
414specified affine (or free transform) matrix.<br />
415      </small></td>
416    </tr>
417    <tr>
418      <td style="text-align: center;" rowspan="4">
419      <center><a name="annotate"></a> <font size="-1">annotate</font></center>
420      </td>
421      <td><font size="-1">const std::string &amp;text_, const <a
422 href="Geometry.html"> Geometry</a> &amp;location_</font></td>
423      <td><font size="-1">Annotate using specified text, and placement
424location</font></td>
425    </tr>
426    <tr>
427      <td><font size="-1">string text_, const <a href="Geometry.html">Geometry</a>
428&amp;boundingArea_, <a href="Enumerations.html#GravityType">GravityType</a>
429gravity_</font></td>
430      <td><font size="-1">Annotate using specified text, bounding area,
431and placement gravity. If <i>boundingArea_</i> is invalid, then
432bounding area is entire image.</font></td>
433    </tr>
434    <tr>
435      <td><font size="-1">const std::string &amp;text_, const <a
436 href="Geometry.html"> Geometry</a> &amp;boundingArea_, <a
437 href="Enumerations.html#GravityType">GravityType</a> gravity_, double
438degrees_,&#160;</font></td>
439      <td><font size="-1">Annotate with text using specified text,
440bounding area, placement gravity, and rotation. If <i>boundingArea_</i>
441is invalid, then bounding area is entire image.</font></td>
442    </tr>
443    <tr>
444      <td><font size="-1">const std::string &amp;text_, <a
445 href="Enumerations.html#GravityType"> GravityType</a> gravity_</font></td>
446      <td><font size="-1">Annotate with text (bounding area is entire
447image) and placement gravity.</font></td>
448    </tr>
449    <tr>
450      <td style="text-align: center;">
451      <center><a name="blur"></a> <font size="-1">blur</font></center>
452      </td>
453      <td><font size="-1">const double radius_ = 1, const double sigma_
454= 0.5</font></td>
455      <td><font size="-1">Blur image. The <i>radius_ </i>parameter
456specifies the radius of the Gaussian, in pixels, not counting the
457center
458pixel.&#160; The <i>sigma_</i> parameter specifies the standard
459deviation of the Laplacian, in pixels.</font></td>
460    </tr>
461    <tr>
462      <td style="vertical-align: middle; text-align: center;"><small><a
463 name="blurChannel"></a>blurChannel<br />
464      </small></td>
465      <td style="vertical-align: middle;"><small>const ChannelType
466channel_, const double radius_ = 0.0, const double sigma_ = 1.0<br />
467      </small></td>
468      <td style="vertical-align: middle;"><font size="-1">Blur an image
469channel. The <span style="font-style: italic;">channel_</span>
470parameter specifies the channel to blur. The <i>radius_ </i>parameter
471specifies the radius of the Gaussian, in pixels, not counting the
472center
473pixel.&#160; The <i>sigma_</i> parameter specifies the standard
474deviation of the Laplacian, in pixels.</font></td>
475    </tr>
476    <tr>
477      <td style="text-align: center;">
478      <center><a name="border"></a> <font size="-1">border</font></center>
479      </td>
480      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
481&amp;geometry_ = "6x6+0+0"</font></td>
482      <td><font size="-1">Border image (add border to image).&#160; The
483color of the border is specified by the <i>borderColor</i> attribute.</font></td>
484    </tr>
485    <tr>
486      <td style="text-align: center;">
487      <center><a name="cdl"></a> <font size="-1">cdl</font></center>
488      </td>
489      <td><font size="-1">const std::string &amp;cdl_</font></td>
490      <td><font size="-1">color correct with a color decision list. See <a href="http://en.wikipedia.org/wiki/ASC_CDL">http://en.wikipedia.org/wiki/ASC_CDL</a> for details.</font></td>
491    </tr>
492    <tr>
493      <td style="text-align: center;">
494      <center><a name="channel"></a> <font size="-1">channel</font></center>
495      </td>
496      <td><font size="-1"><a href="Enumerations.html#ChannelType">ChannelType</a>
497layer_</font></td>
498      <td><font size="-1">Extract channel from image. Use this option
499to extract a particular channel from&#160; the image.&#160; <i>MatteChannel</i>
500&#160; for&#160; example, is useful for extracting the opacity values
501from an image.</font></td>
502    </tr>
503    <tr>
504      <td style="text-align: center;">
505      <center><a name="charcoal"></a> <font size="-1">charcoal</font></center>
506      </td>
507      <td><font size="-1">const double radius_ = 1, const double sigma_
508= 0.5</font></td>
509      <td><font size="-1">Charcoal effect image (looks like charcoal
510sketch). The <i>radius_</i> parameter specifies the radius of the
511Gaussian, in pixels, not counting the center pixel.&#160; The <i>sigma_</i>
512parameter specifies the standard deviation of the Laplacian, in pixels.</font></td>
513    </tr>
514    <tr>
515      <td style="text-align: center;">
516      <center><a name="chop"></a> <font size="-1">chop</font></center>
517      </td>
518      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
519&amp;geometry_</font></td>
520      <td><font size="-1">Chop image (remove vertical or horizontal
521subregion of image)</font></td>
522    </tr>
523    <tr>
524      <td style="text-align: center;">
525      <center><a name="colorize"></a> <font size="-1">colorize</font></center>
526      </td>
527      <td><font size="-1">const unsigned int opacityRed_, const
528unsigned int opacityGreen_, const unsigned int opacityBlue_, const
529Color &amp;penColor_</font></td>
530      <td><font size="-1">Colorize image with pen color, using
531specified percent opacity for red, green, and blue quantums.</font></td>
532    </tr>
533    <tr>
534      <td style="text-align: center;">
535      <center><a name="colorMatrix"></a> <font size="-1">colorMatrix</font></center>
536      </td>
537      <td><font size="-1">const size_t order_, const double *color_matrix_</font></td>
538      <td><font size="-1">apply color correction to the image.</font></td>
539    </tr>
540    <tr>
541      <td style="text-align: center;">
542      <center><a name="comment"></a> <font size="-1">comment</font></center>
543      </td>
544      <td><font size="-1">const std::string &amp;comment_</font></td>
545      <td><font size="-1">Comment image (add comment string to
546image).&#160; By default, each image is commented with its file name.
547Use&#160; this&#160; method to&#160; assign a specific comment to the
548image.&#160; Optionally you can include the image filename, type,
549width, height, or other&#160; image&#160; attributes by embedding <a
550 href="FormatCharacters.html">special format characters.</a> </font></td>
551    </tr>
552    <tr>
553      <td style="text-align: center;" valign="middle"><font size="-1"><a
554 name="compare"></a> compare<br />
555      </font></td>
556      <td valign="middle"><font size="-1">const Image &amp;reference_<br />
557      </font></td>
558      <td valign="top"><font size="-1">Compare current image with
559another image. Sets <a href="Image++.html#meanErrorPerPixel">meanErrorPerPixel</a>
560, <a href="Image++.html#normalizedMaxError">normalizedMaxError</a> , and <a
561 href="Image++.html#normalizedMeanError">normalizedMeanError</a> in the current
562image. False is returned if the images are identical. An ErrorOption
563exception is thrown if the reference image columns, rows, colorspace,
564or
565matte differ from the current image.</font><br />
566      </td>
567    </tr>
568    <tr>
569      <td style="text-align: center;" rowspan="3">
570      <center><a name="composite"></a> <font size="-1">composite</font></center>
571      </td>
572      <td><font size="-1">const <a href="Image++.html">Image</a>
573&amp;compositeImage_, ssize_t xOffset_, ssize_t yOffset_, <a
574 href="Enumerations.html#CompositeOperator"> CompositeOperator</a>
575compose_ = <i>InCompositeOp</i></font></td>
576      <td><font size="-1">Compose an image onto the current image at
577offset specified by <i>xOffset_</i>, <i>yOffset_ </i>using the
578composition algorithm specified by <i>compose_</i>.&#160;</font></td>
579    </tr>
580    <tr>
581      <td><font size="-1">const <a href="Image++.html">Image</a>
582&amp;compositeImage_, const <a href="Geometry.html">Geometry</a>
583&amp;offset_, <a href="Enumerations.html#CompositeOperator">CompositeOperator</a>
584compose_ = <i>InCompositeOp</i></font></td>
585      <td><font size="-1">Compose an image onto the current image at
586offset specified by <i>offset_</i> using the composition algorithm
587specified by <i>compose_</i> .&#160;</font></td>
588    </tr>
589    <tr>
590      <td><font size="-1">const <a href="Image++.html">Image</a>
591&amp;compositeImage_, <a href="Enumerations.html#GravityType">GravityType</a>
592gravity_, <a href="Enumerations.html#CompositeOperator">CompositeOperator</a>
593compose_ = <i>InCompositeOp</i></font></td>
594      <td><font size="-1">Compose an image onto the current image with
595placement specified by <i>gravity_ </i>using the composition
596algorithm
597specified by <i>compose_</i>.&#160;</font></td>
598    </tr>
599    <tr>
600      <td style="text-align: center;">
601      <center><a name="contrast"></a> <font size="-1">contrast</font></center>
602      </td>
603      <td><font size="-1">size_t sharpen_</font></td>
604      <td><font size="-1">Contrast image (enhance intensity differences
605in image)</font></td>
606    </tr>
607    <tr>
608      <td style="text-align: center;">
609      <center><a name="convolve"></a> <font size="-1">convolve</font></center>
610      </td>
611      <td><font size="-1">size_t order_, const double *kernel_</font></td>
612      <td><font size="-1">Convolve image.&#160; Applies a user-specfied
613convolution to the image. The <i>order_</i> parameter represents the
614number of columns and rows in the filter kernel, and <i>kernel_</i>
615is a two-dimensional array of doubles representing the convolution
616kernel to apply.</font></td>
617    </tr>
618    <tr>
619      <td style="text-align: center;">
620      <center><a name="crop"></a> <font size="-1">crop</font></center>
621      </td>
622      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
623&amp;geometry_</font></td>
624      <td><font size="-1">Crop image (subregion of original image)</font></td>
625    </tr>
626    <tr>
627      <td style="text-align: center;">
628      <center><a name="cycleColormap"></a> <font size="-1">cycleColormap</font></center>
629      </td>
630      <td><font size="-1">int amount_</font></td>
631      <td><font size="-1">Cycle image colormap</font></td>
632    </tr>
633    <tr>
634      <td style="text-align: center;">
635      <center><a name="despeckle"></a> <font size="-1">despeckle</font></center>
636      </td>
637      <td><font size="-1">void</font></td>
638      <td><font size="-1">Despeckle image (reduce speckle noise)</font></td>
639    </tr>
640    <tr>
641      <td style="text-align: center;">
642      <center><a name="display"></a> <font size="-1">display</font></center>
643      </td>
644      <td><font size="-1">void</font></td>
645      <td><font size="-1">Display image on screen.</font> <br />
646      <font size="-1"><b><font color="#ff0000">Caution: </font></b> if
647an image format is is not compatible with the display visual (e.g.
648JPEG on a colormapped display) then the original image will be
649altered. Use a copy of the original if this is a problem.</font></td>
650    </tr>
651    <tr>
652      <td>
653      <center><a name="distort"></a> <font size="-1">distort</font></center>
654      </td>
655      <td><font size="-1">const DistortImageMethod method, const size_t number_arguments, const double *arguments, const bool bestfit = false </font></td>
656      <td><font size="-1">Distort image.&#160; Applies a user-specfied
657distortion to the image.</font></td>
658    </tr>
659    <tr>
660      <td style="text-align: center;" rowspan="2">
661      <center><a name="draw"></a> <font size="-1">draw</font></center>
662      </td>
663      <td><font size="-1">const <a href="Drawable.html">Drawable</a>
664&amp;drawable_</font></td>
665      <td><font size="-1">Draw shape or text on image.</font></td>
666    </tr>
667    <tr>
668      <td><font size="-1">const std::list&lt;<a href="Drawable.html">Drawable</a>
669&gt; &amp;drawable_</font></td>
670      <td><font size="-1">Draw shapes or text on image using a set of
671Drawable objects contained in an STL list. Use of this method improves
672drawing performance and allows batching draw objects together in a
673list for repeated use.</font></td>
674    </tr>
675    <tr>
676      <td style="text-align: center;">
677      <center><a name="edge"></a> <font size="-1">edge</font></center>
678      </td>
679      <td><font size="-1">size_t radius_ = 0.0</font></td>
680      <td><font size="-1">Edge image (hilight edges in image).&#160;
681The radius is the radius of the pixel neighborhood.. Specify a radius
682of zero for automatic radius selection.</font></td>
683    </tr>
684    <tr>
685      <td style="text-align: center;">
686      <center><a name="emboss"></a> <font size="-1">emboss</font></center>
687      </td>
688      <td><font size="-1">const double radius_ = 1, const double sigma_
689= 0.5</font></td>
690      <td><font size="-1">Emboss image (hilight edges with 3D effect).
691The <i> radius_</i> parameter specifies the radius of the Gaussian, in
692pixels, not counting the center pixel.&#160; The <i>sigma_</i>
693parameter specifies the standard deviation of the Laplacian, in pixels.</font></td>
694    </tr>
695    <tr>
696      <td style="text-align: center;">
697      <center><a name="enhance"></a> <font size="-1">enhance</font></center>
698      </td>
699      <td><font size="-1">void</font></td>
700      <td><font size="-1">Enhance image (minimize noise)</font></td>
701    </tr>
702    <tr>
703      <td style="text-align: center;">
704      <center><a name="equalize"></a> <font size="-1">equalize</font></center>
705      </td>
706      <td><font size="-1">void</font></td>
707      <td><font size="-1">Equalize image (histogram equalization)</font></td>
708    </tr>
709    <tr>
710      <td style="text-align: center;">
711      <center><a name="erase"></a> <font size="-1">erase</font></center>
712      </td>
713      <td><font size="-1">void</font></td>
714      <td><font size="-1">Set all image pixels to the current
715background color.</font></td>
716    </tr>
717    <tr>
718      <td style="text-align: center;" rowspan="4">
719      <center><a name="extent"></a> <font size="-1">extent</font></center></td>
720      <td><font size="-1">const <a href="Geometry.html"> Geometry</a> &amp;geometry_</font></td>
721      <td rowspan="2"><font size="-1">extends the image as defined by the geometry, gravity, and image background color.</font></td>
722    </tr>
723    <tr>
724      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
725&amp;geometry_, const <a href="Color.html">Color</a> &amp;backgroundColor_</font></td>
726    </tr>
727    <tr>
728      <td><font size="-1">const <a href="Geometry.html"> Geometry</a> &amp;geometry_, const <a href="Enumerations.html#GravityType">GravityType</a>
729&amp;gravity_</font></td>
730      <td rowspan="2"><font size="-1">extends the image as defined by the geometry, gravity, and image background color.</font></td>
731    </tr>
732    <tr>
733      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
734&amp;geometry_, const <a href="Color.html">Color</a> &amp;backgroundColor_,
735const <a href="Enumerations.html#GravityType">GravityType</a> &amp;gravity_</font></td>
736    </tr>
737    <tr>
738      <td style="text-align: center;">
739      <center><a name="flip"></a> <font size="-1">flip</font></center>
740      </td>
741      <td><font size="-1">void</font></td>
742      <td><font size="-1">Flip image (reflect each scanline in the
743vertical direction)</font></td>
744    </tr>
745    <tr>
746      <td style="text-align: center;" rowspan="4">
747      <center><a name="floodFillColor"></a> <font size="-1">floodFill-</font>
748      <br />
749      <font size="-1">Color</font></center>
750      </td>
751      <td><font size="-1">ssize_t x_, ssize_t y_, const <a
752 href="Color.html"> Color</a> &amp;fillColor_</font></td>
753      <td rowspan="2"><font size="-1">Flood-fill color across pixels
754that match the color of the target pixel and are neighbors of the
755target pixel. Uses current fuzz setting when determining color match.</font></td>
756    </tr>
757    <tr>
758      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
759&amp;point_, const <a href="Color.html">Color</a> &amp;fillColor_</font></td>
760    </tr>
761    <tr>
762      <td><font size="-1">ssize_t x_, ssize_t y_, const <a
763 href="Color.html"> Color</a> &amp;fillColor_, const <a
764 href="Color.html">Color</a>
765&amp;borderColor_</font></td>
766      <td rowspan="2"><font size="-1">Flood-fill color across pixels
767starting at target-pixel and stopping at pixels matching specified
768border color. Uses current fuzz setting when determining color match.</font></td>
769    </tr>
770    <tr>
771      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
772&amp;point_, const <a href="Color.html">Color</a> &amp;fillColor_,
773const <a href="Color.html">Color</a> &amp;borderColor_</font></td>
774    </tr>
775    <tr>
776      <td style="text-align: center;"><a name="floodFillOpacity"></a> <font
777 size="-1">floodFillOpacity</font></td>
778      <td><font size="-1">const long x_, const long y_, const unsigned int
779opacity_, const PaintMethod method_</font></td>
780      <td><font size="-1">Floodfill pixels matching color (within fuzz
781factor) of target pixel(x,y) with replacement opacity value using
782method.</font></td>
783    </tr>
784    <tr>
785      <td style="text-align: center;" rowspan="4">
786      <center><a name="floodFillTexture"></a> <font size="-1">floodFill-</font>
787      <br />
788      <font size="-1">Texture</font></center>
789      </td>
790      <td><font size="-1">ssize_t x_, ssize_t y_,&#160; const
791Image &amp;texture_</font></td>
792      <td rowspan="2"><font size="-1">Flood-fill texture across pixels
793that match the color of the target pixel and are neighbors of the
794target pixel. Uses current fuzz setting when determining color match.</font></td>
795    </tr>
796    <tr>
797      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
798&amp;point_, const Image &amp;texture_</font></td>
799    </tr>
800    <tr>
801      <td><font size="-1">ssize_t x_, ssize_t y_, const Image
802&amp;texture_, const <a href="Color.html">Color</a> &amp;borderColor_</font></td>
803      <td rowspan="2"><font size="-1">Flood-fill texture across pixels
804starting at target-pixel and stopping at pixels matching specified
805border color. Uses current fuzz setting when determining color match.</font></td>
806    </tr>
807    <tr>
808      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
809&amp;point_, const Image &amp;texture_, const <a href="Color.html">
810Color</a>
811&amp;borderColor_</font></td>
812    </tr>
813    <tr>
814      <td style="text-align: center;">
815      <center><a name="flop"></a> <font size="-1">flop</font></center>
816      </td>
817      <td><font size="-1">void&#160;</font></td>
818      <td><font size="-1">Flop image (reflect each scanline in the
819horizontal direction)</font></td>
820    </tr>
821    <tr>
822      <td style="text-align: center;" rowspan="2">
823      <center><a name="frame"></a> <font size="-1">frame</font></center>
824      </td>
825      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
826&amp;geometry_ = "25x25+6+6"</font></td>
827      <td rowspan="2"><font size="-1">Add decorative frame around image</font></td>
828    </tr>
829    <tr>
830      <td><font size="-1">size_t width_, size_t height_,
831ssize_t x_, ssize_t y_, ssize_t innerBevel_ = 0, ssize_t outerBevel_ = 0</font></td>
832    </tr>
833    <tr>
834      <td>
835      <center><a name="fx"></a> <font size="-1">fx</font></center>
836      </td>
837      <td><font size="-1">const std::string expression, const Magick::ChannelType channel</font></td>
838      <td><font size="-1">Fx image.&#160; Applies a mathematical
839expression to the image.</font></td>
840    </tr>
841    <tr>
842      <td style="text-align: center;" rowspan="2">
843      <center><a name="gamma"></a> <font size="-1">gamma</font></center>
844      </td>
845      <td><font size="-1">double gamma_</font></td>
846      <td><font size="-1">Gamma correct image (uniform red, green, and
847blue correction).</font></td>
848    </tr>
849    <tr>
850      <td><font size="-1">double gammaRed_, double gammaGreen_, double
851gammaBlue_</font></td>
852      <td><font size="-1">Gamma correct red, green, and blue channels
853of image.</font></td>
854    </tr>
855    <tr>
856      <td style="text-align: center;">
857      <center><a name="gaussianBlur"></a> <font size="-1">gaussianBlur</font></center>
858      </td>
859      <td><font size="-1">const double width_, const double sigma_</font></td>
860      <td><font size="-1">Gaussian blur image. The number of neighbor
861pixels to be included in the convolution mask is specified by
862'width_'.&#160; For example, a width of one gives a (standard) 3x3
863convolution mask. The standard deviation of the gaussian bell curve is
864specified by 'sigma_'.</font></td>
865    </tr>
866    <tr>
867      <td style="vertical-align: middle; text-align: center;"><small><a
868 name="gaussianBlurChannel"></a>gaussianBlurChannel<br />
869      </small></td>
870      <td style="vertical-align: middle;"><small>const ChannelType
871channel_, const double radius_ = 0.0, const double sigma_ = 1.0<br />
872      </small></td>
873      <td style="vertical-align: middle;"><font size="-1">Gaussian blur
874an image channel. </font><font size="-1">The <span
875 style="font-style: italic;">channel_</span> parameter specifies the
876channel to blur. </font><font size="-1">The number of neighbor
877pixels to be included in the convolution mask is specified by
878'width_'.&#160; For example, a width of one gives a (standard) 3x3
879convolution mask. The standard deviation of the gaussian bell curve is
880specified by 'sigma_'.</font></td>
881    </tr>
882    <tr>
883      <td style="text-align: center;" valign="middle"><font size="-1"><a
884 name="haldClut"></a> haldClut<br />
885      </font></td>
886      <td valign="middle"><font size="-1">const Image &amp;reference_<br />
887      </font></td>
888      <td valign="top"><font size="-1">apply a Hald color lookup table to the image.</font><br />
889      </td>
890    </tr>
891    <tr>
892      <td style="text-align: center;">
893      <center><a name="implode"></a> <font size="-1">implode</font></center>
894      </td>
895      <td><font size="-1">const double factor_</font></td>
896      <td><font size="-1">Implode image (special effect)</font></td>
897    </tr>
898    <tr>
899      <td style="text-align: center;">
900      <center><a name="inverseFourierTransform"></a> <font size="-1">inverseFourierTransform</font></center>
901      </td>
902      <td><font size="-1">const Image &amp;phaseImage_, const bool magnitude_</font></td>
903      <td><font size="-1">implements the inverse discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair.</font></td>
904    </tr>
905    <tr>
906      <td style="text-align: center;">
907      <center><a name="label"></a> <font size="-1">label</font></center>
908      </td>
909      <td><font size="-1">const string &amp;label_</font></td>
910      <td><font size="-1">Assign a label to an image. Use this option
911to&#160; assign&#160; a&#160; specific label to the image. Optionally
912you can include the image filename, type, width, height, or scene
913number in the label by embedding&#160; <a href="FormatCharacters.html">
914special format characters.</a> If the first character of string is @,
915the
916image label is read from a file titled by the remaining characters in
917the string. When converting to Postscript, use this&#160; option to
918specify a header string to print above the image.</font></td>
919    </tr>
920    <tr>
921      <td style="vertical-align: top; text-align: center;"><small><a
922 name="level"></a>level<br />
923      </small></td>
924      <td style="vertical-align: top;"><small>const double black_point,
925const double white_point, const double mid_point=1.0<br />
926      </small></td>
927      <td style="vertical-align: top;"><small>Level image. Adjust the
928levels of the image by scaling the colors falling between specified
929white and black points to the full available quantum range. The
930parameters provided represent the black, mid (gamma), and white
931points.&#160; The black point specifies the darkest color in the image.
932Colors darker than the black point are set to zero. Mid point (gamma)
933specifies a gamma correction to apply to the image. White point
934specifies the lightest color in the image.&#160; Colors brighter than
935the white point are set to the maximum quantum value. The black and
936white point have the valid range 0 to MaxRGB while mid (gamma) has a
937useful range of 0 to ten.<br />
938      </small></td>
939    </tr>
940    <tr>
941      <td style="vertical-align: middle; text-align: center;"><small><a
942 name="levelChannel"></a>levelChannel<br />
943      </small></td>
944      <td style="vertical-align: middle;"><small>const ChannelType
945channel, const double black_point, const double white_point, const
946double mid_point=1.0<br />
947      </small></td>
948      <td style="vertical-align: middle;"><small>Level image channel.
949Adjust the levels of the image channel by scaling the values falling
950between specified white and black points to the full available quantum
951range. The parameters provided represent the black, mid (gamma), and
952white points. The black point specifies the darkest color in the image.
953Colors darker than the black point are set to zero. Mid point (gamma)
954specifies a gamma correction to apply to the image. White point
955specifies the lightest color in the image. Colors brighter than the
956white point are set to the maximum quantum value. The black and white
957point have the valid range 0 to MaxRGB while mid (gamma) has a useful
958range of 0 to ten.<br />
959      </small></td>
960    </tr>
961    <tr>
962      <td style="text-align: center;">
963      <center><a name="magnify"></a> <font size="-1">magnify</font></center>
964      </td>
965      <td><font size="-1">void</font></td>
966      <td><font size="-1">Magnify image by integral size</font></td>
967    </tr>
968    <tr>
969      <td style="text-align: center;">
970      <center><a name="map"></a> <font size="-1">map</font></center>
971      </td>
972      <td><font size="-1">const Image &amp;mapImage_ , bool dither_ =
973false</font></td>
974      <td><font size="-1">Remap image colors with closest color from
975reference image. Set dither_ to <i>true</i> in to apply
976Floyd/Steinberg
977error diffusion to the image. By default, color reduction chooses an
978optimal&#160; set&#160; of colors that best represent the original
979image. Alternatively, you can&#160; choose&#160; a&#160;
980particular&#160; set&#160; of colors&#160; from&#160; an image file
981with this option.</font></td>
982    </tr>
983    <tr>
984      <td style="text-align: center;">
985      <center><a name="matteFloodfill"></a> <font size="-1">matteFloodfill</font></center>
986      </td>
987      <td><font size="-1">const <a href="Color.html">Color</a>
988&amp;target_, const unsigned int&#160; opacity_, const ssize_t x_, const
989ssize_t
990y_, <a href="Enumerations.html#PaintMethod">PaintMethod</a> method_</font></td>
991      <td><font size="-1">Floodfill designated area with a replacement
992opacity value.</font></td>
993    </tr>
994    <tr>
995      <td style="text-align: center;"><a name="medianFilter"></a> <font
996 size="-1">medianFilter</font></td>
997      <td><font size="-1">const double radius_ = 0.0</font></td>
998      <td><font size="-1">Filter image by replacing each pixel
999component with the median color in a circular neighborhood</font></td>
1000    </tr>
1001    <tr>
1002      <td style="text-align: center;">
1003      <center><a name="mergeLayers"></a> <font size="-1">mergeLayers</font></center>
1004      </td>
1005      <td><font size="-1"><a href="Enumerations.html#LayerMethod">LayerMethod</a>
1006noiseType_</font></td>
1007      <td><font size="-1">handle multiple images forming a set of image layers or animation frames.</font></td>
1008    </tr>
1009    <tr>
1010      <td style="text-align: center;">
1011      <center><a name="minify"></a> <font size="-1">minify</font></center>
1012      </td>
1013      <td><font size="-1">void</font></td>
1014      <td><font size="-1">Reduce image by integral size</font></td>
1015    </tr>
1016    <tr>
1017      <td style="text-align: center;"><a name="modifyImage"></a> <font
1018 size="-1">modifyImage</font></td>
1019      <td><font size="-1">void</font></td>
1020      <td><font size="-1">Prepare to update image. Ensures that there
1021is only one reference to the underlying image so that the underlying
1022image may be safely modified without effecting previous generations of
1023the image. Copies the underlying image to a new image if necessary.</font></td>
1024    </tr>
1025    <tr>
1026      <td style="text-align: center;">
1027      <center><a name="modulate"></a> <font size="-1">modulate</font></center>
1028      </td>
1029      <td><font size="-1">double brightness_, double saturation_,
1030double hue_</font></td>
1031      <td><font size="-1">Modulate percent hue, saturation, and
1032brightness of an image. Modulation of saturation and brightness is as a
1033ratio of the current value (100.0 for no change). Modulation of hue is an
1034absolute rotation of -180 degrees to +180 degrees from the current
1035position corresponding to an argument range of 0 to 200.0 (100.0 for no
1036change).</font></td>
1037    </tr>
1038    <tr>
1039      <td style="vertical-align: middle; text-align: center;"><small><a
1040 name="motionBlur"></a>motionBlur<br />
1041      </small></td>
1042      <td style="vertical-align: middle;"><small>const double radius_,
1043const double sigma_, const double angle_<br />
1044      </small></td>
1045      <td style="vertical-align: middle;"><small>Motion blur image with
1046specified blur factor. The radius_ parameter specifies the radius of
1047the Gaussian, in pixels, not counting the center pixel.&#160; The
1048sigma_ parameter specifies the standard deviation of the Laplacian, in
1049pixels. The angle_ parameter specifies the angle the object appears to
1050be comming from (zero degrees is from the right).<br />
1051      </small></td>
1052    </tr>
1053    <tr>
1054      <td style="text-align: center;">
1055      <center><a name="negate"></a> <font size="-1">negate</font></center>
1056      </td>
1057      <td><font size="-1">bool grayscale_ = false</font></td>
1058      <td><font size="-1">Negate colors in image.&#160; Replace every
1059pixel with its complementary color (white becomes black, yellow becomes
1060blue, etc.).&#160; Set grayscale to only negate grayscale values in
1061image.</font></td>
1062    </tr>
1063    <tr>
1064      <td style="text-align: center;">
1065      <center><a name="normalize"></a> <font size="-1">normalize</font></center>
1066      </td>
1067      <td><font size="-1">void</font></td>
1068      <td><font size="-1">Normalize image (increase contrast by
1069normalizing the pixel values to span the full range of color values).</font></td>
1070    </tr>
1071    <tr>
1072      <td style="text-align: center;">
1073      <center><a name="oilPaint"></a> <font size="-1">oilPaint</font></center>
1074      </td>
1075      <td><font size="-1">size_t radius_ = 3</font></td>
1076      <td><font size="-1">Oilpaint image (image looks like oil painting)</font></td>
1077    </tr>
1078    <tr>
1079      <td style="text-align: center;">
1080      <center><a name="opacity"></a> <font size="-1">opacity</font></center>
1081      </td>
1082      <td><font size="-1">unsigned int opacity_</font></td>
1083      <td><font size="-1">Set or attenuate the opacity channel in the
1084image. If the image pixels are opaque then they are set to the
1085specified
1086opacity value, otherwise they are blended with the supplied opacity
1087value.&#160; The value of opacity_ ranges from 0 (completely opaque) to
1088      <i>MaxRGB</i>
1089. The defines <i>OpaqueOpacity</i> and <i>TransparentOpacity</i> are
1090available to specify completely opaque or completely transparent,
1091respectively.</font></td>
1092    </tr>
1093    <tr>
1094      <td style="text-align: center;">
1095      <center><a name="opaque"></a> <font size="-1">opaque</font></center>
1096      </td>
1097      <td><font size="-1">const <a href="Color.html">Color</a>
1098&amp;opaqueColor_, const <a href="Color.html">Color</a> &amp;penColor_</font></td>
1099      <td><font size="-1">Change color of pixels matching opaqueColor_
1100to specified penColor_.</font></td>
1101    </tr>
1102    <tr>
1103      <td style="text-align: center;" rowspan="2">
1104      <center><a name="ping"></a> <font size="-1">ping</font></center>
1105      </td>
1106      <td><font size="-1">const std::string &amp;imageSpec_</font></td>
1107      <td rowspan="2"><font size="-1">Ping is similar to read
1108except only enough of the image is read to determine the image columns,
1109rows, and filesize.&#160; The <a href="Image++.html#columns">columns</a> </font>,
1110      <font size="-1"><a href="Image++.html#rows">rows</a> , and <a
1111 href="Image++.html#fileSize">fileSize</a>
1112attributes are valid after invoking ping.&#160; The image data is not
1113valid after calling ping.</font></td>
1114    </tr>
1115    <tr>
1116      <td><font size="-1">const Blob &amp;blob_</font></td>
1117    </tr>
1118    <tr>
1119      <td style="vertical-align: middle; text-align: center;"><small><a
1120 name="process"></a>process<br />
1121      </small></td>
1122      <td style="vertical-align: middle;"><small>std::string name_,
1123const ssize_t argc_, char **argv_<br />
1124      </small></td>
1125      <td style="vertical-align: middle;"><small>Execute the named
1126process module, passing any arguments via an argument vector, with
1127argc_
1128specifying the number of arguments in the vector, and argv_ passing the
1129address of an array of null-terminated C strings which constitute the
1130argument vector. An exception is thrown if the requested process module
1131does not exist, fails to load, or fails during execution.</small><br />
1132      </td>
1133    </tr>
1134    <tr>
1135      <td style="text-align: center;">
1136      <center><a name="quantize"></a> <font size="-1">quantize</font></center>
1137      </td>
1138      <td><font size="-1">bool measureError_ = false</font></td>
1139      <td><font size="-1">Quantize image (reduce number of colors). Set
1140measureError_ to true in order to calculate error attributes.</font></td>
1141    </tr>
1142    <tr>
1143      <td style="text-align: center;">
1144      <center><a name="raise"></a> <font size="-1">raise</font></center>
1145      </td>
1146      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
1147&amp;geometry_ = "6x6+0+0",&#160; bool raisedFlag_ =&#160; false</font></td>
1148      <td><font size="-1">Raise image (lighten or darken the edges of
1149an image to give a 3-D raised or lowered effect)</font></td>
1150    </tr>
1151    <tr>
1152      <td style="text-align: center;" rowspan="8">
1153      <center><a name="read"></a> <font size="-1">read</font></center>
1154      </td>
1155      <td><font size="-1">const string &amp;imageSpec_</font></td>
1156      <td><font size="-1">Read image into current object</font></td>
1157    </tr>
1158    <tr>
1159      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
1160&amp;size_, const std::string &amp;imageSpec_</font></td>
1161      <td><font size="-1">Read image of specified size into current
1162object. This form is useful for images that do not specifiy their size
1163or to specify a size hint for decoding an image. For example, when
1164reading a Photo CD, JBIG, or JPEG image, a size request causes the
1165library to return an image which is the next resolution greater or
1166equal to the specified size. This may result in memory and time savings.</font></td>
1167    </tr>
1168    <tr>
1169      <td><font size="-1">const <a href="Blob.html">Blob</a> &amp;blob_</font></td>
1170      <td rowspan="5"><font size="-1">Read encoded image of specified
1171size from an in-memory <a href="Blob.html">BLOB</a> into current
1172object. Depending on the method arguments, the Blob size, depth, and
1173format may also be specified. Some image formats require that size be
1174specified. The default ImageMagick uses for depth depends on its
1175Quantum size (8 or 16).&#160; If ImageMagick's Quantum size does not
1176match that of the image, the depth may need to be specified.
1177ImageMagick can usually automagically detect the image's format.
1178When
1179a format can't be automagically detected, the format must be specified.</font></td>
1180    </tr>
1181    <tr>
1182      <td><font size="-1">const <a href="Blob.html">Blob</a>
1183&amp;blob_, const <a href="Geometry.html">Geometry</a> &amp;size_</font></td>
1184    </tr>
1185    <tr>
1186      <td><font size="-1">const <a href="Blob.html">Blob</a>
1187&amp;blob_, const <a href="Geometry.html">Geometry</a> &amp;size_,
1188size_t depth_</font></td>
1189    </tr>
1190    <tr>
1191      <td><font size="-1">const <a href="Blob.html">Blob</a>
1192&amp;blob_, const <a href="Geometry.html">Geometry</a> &amp;size_,
1193size_t depth_, const string &amp;magick_&#160;</font></td>
1194    </tr>
1195    <tr>
1196      <td><font size="-1">const <a href="Blob.html">Blob</a>
1197&amp;blob_, const <a href="Geometry.html">Geometry</a> &amp;size_,
1198const
1199string &amp;magick_</font></td>
1200    </tr>
1201    <tr>
1202      <td><font size="-1">const size_t width_, const size_t
1203height_, std::string map_, const StorageType type_, const void *pixels_</font></td>
1204      <td><font size="-1">Read image based on an array of image pixels.
1205The pixel data must be in scanline order top-to-bottom. The data can be
1206character, short int, integer, float, or double. Float and double
1207require the pixels to be normalized [0..1]. The other types are
1208[0..MaxRGB].&#160; For example, to create a 640x480 image from
1209unsigned red-green-blue character data, use</font>
1210      <p><font size="-1">&#160; image.read( 640, 480, "RGB", CharPixel,
1211pixels );</font> </p>
1212      <p><font size="-1">The parameters are as follows:</font> <br />
1213&#160;</p>
1214      <table border="0" width="100%">
1215        <tbody>
1216          <tr>
1217            <td><font size="-1">width_</font></td>
1218            <td><font size="-1">Width in pixels of the image.</font></td>
1219          </tr>
1220          <tr>
1221            <td><font size="-1">height_</font></td>
1222            <td><font size="-1">Height in pixels of the image.</font></td>
1223          </tr>
1224          <tr>
1225            <td><font size="-1">map_</font></td>
1226            <td><font size="-1">This character string can be any
1227combination or order of R = red, G = green, B = blue, A = alpha, C =
1228cyan, Y = yellow M = magenta, and K = black. The ordering reflects the
1229order of the pixels in the supplied pixel array.</font></td>
1230          </tr>
1231          <tr>
1232            <td><font size="-1">type_</font></td>
1233            <td><font size="-1">Pixel storage type (CharPixel,
1234ShortPixel, IntegerPixel, FloatPixel, or DoublePixel)</font></td>
1235          </tr>
1236          <tr>
1237            <td><font size="-1">pixels_</font></td>
1238            <td><font size="-1">This array of values contain the pixel
1239components as defined by the map_ and type_ parameters. The length of
1240the arrays must equal the area specified by the width_ and height_
1241values and type_ parameters.</font></td>
1242          </tr>
1243        </tbody>
1244      </table>
1245      </td>
1246    </tr>
1247    <tr>
1248      <td style="text-align: center;">
1249      <center><a name="reduceNoise"></a> <font size="-1">reduceNoise</font></center>
1250      </td>
1251      <td><font size="-1">const double order_</font></td>
1252      <td><font size="-1">reduce noise in image using a noise peak elimination filter.</font></td>
1253    </tr>
1254    <tr>
1255      <td style="vertical-align: middle; text-align: center;"><small><a
1256 name="randomThreshold"></a>randomThreshold<br />
1257      </small></td>
1258      <td style="vertical-align: middle;"><small>const Geometry
1259&amp;thresholds_<br />
1260      </small></td>
1261      <td style="vertical-align: middle;"><small>Random threshold the
1262image. Changes the value of individual pixels based on the intensity of
1263each pixel compared to a random threshold.  The result is a
1264low-contrast, two color image.  The thresholds_ argument is a
1265geometry containing LOWxHIGH thresholds.  If the string contains
12662x2, 3x3, or 4x4, then an ordered dither of order 2, 3, or 4 will be
1267performed instead. This is a very fast alternative to 'quantize' based
1268dithering.<br />
1269      </small></td>
1270    </tr>
1271    <tr>
1272      <td style="vertical-align: middle; text-align: center;"><small><a
1273 name="randomThresholdChannel"></a>randomThresholdChannel<br />
1274      </small></td>
1275      <td style="vertical-align: middle;"><small>const Geometry
1276&amp;thresholds_, const ChannelType channel_<br />
1277      </small></td>
1278      <td style="vertical-align: middle;"><small>Random threshold an
1279image channel. Similar to <a href="Image++.html#randomThreshold">randomThreshold</a>()
1280but restricted to the specified channel.<br />
1281      </small></td>
1282    </tr>
1283    <tr>
1284      <td style="text-align: center;">
1285      <center><a name="roll"></a> <font size="-1">roll</font></center>
1286      </td>
1287      <td><font size="-1">int columns_, ssize_t rows_</font></td>
1288      <td><font size="-1">Roll image (rolls image vertically and
1289horizontally) by specified number of columnms and rows)</font></td>
1290    </tr>
1291    <tr>
1292      <td style="text-align: center;">
1293      <center><a name="rotate"></a> <font size="-1">rotate</font></center>
1294      </td>
1295      <td><font size="-1">double degrees_</font></td>
1296      <td><font size="-1">Rotate image counter-clockwise by specified
1297number of degrees.</font></td>
1298    </tr>
1299    <tr>
1300      <td style="text-align: center;">
1301      <center><a name="sample"></a> <font size="-1">sample</font></center>
1302      </td>
1303      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
1304&amp;geometry_&#160;</font></td>
1305      <td><font size="-1">Resize image by using pixel sampling algorithm</font></td>
1306    </tr>
1307    <tr>
1308      <td style="text-align: center;">
1309      <center><a name="scale"></a> <font size="-1">scale</font></center>
1310      </td>
1311      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
1312&amp;geometry_</font></td>
1313      <td><font size="-1">Resize image by using simple ratio algorithm</font></td>
1314    </tr>
1315    <tr>
1316      <td style="text-align: center;">
1317      <center><a name="segment"></a> <font size="-1">segment</font></center>
1318      </td>
1319      <td><font size="-1">double clusterThreshold_ = 1.0,</font> <br />
1320      <font size="-1">double smoothingThreshold_ = 1.5</font></td>
1321      <td><font size="-1">Segment (coalesce similar image components)
1322by analyzing the histograms of the color components and identifying
1323units that are homogeneous with the fuzzy c-means technique. Also uses <i>quantizeColorSpace</i>
1324and <i>verbose</i> image attributes. Specify <i> clusterThreshold_</i>
1325,
1326as the number&#160; of&#160; pixels&#160; each cluster&#160; must
1327exceed
1328the cluster threshold to be considered valid. <i>SmoothingThreshold_</i>
1329eliminates noise in the&#160; second derivative of the histogram. As
1330the
1331value is&#160; increased, you can&#160; expect&#160; a&#160; smoother
1332second derivative.&#160; The default is 1.5.</font></td>
1333    </tr>
1334    <tr>
1335      <td style="text-align: center;">
1336      <center><a name="shade"></a> <font size="-1">shade</font></center>
1337      </td>
1338      <td><font size="-1">double azimuth_ = 30, double elevation_ = 30,</font>
1339      <br />
1340      <font size="-1">bool colorShading_ = false</font></td>
1341      <td><font size="-1">Shade image using distant light source.
1342Specify <i> azimuth_</i> and <i>elevation_</i> as the&#160;
1343position&#160; of&#160; the light source. By default, the shading
1344results as a grayscale image.. Set c<i>olorShading_</i> to <i>true</i>
1345to
1346shade the red, green, and blue components of the image.</font></td>
1347    </tr>
1348    <tr>
1349      <td style="text-align: center;">
1350      <center><a name="shadow"></a> <font size="-1">shadow</font></center>
1351      </td>
1352      <td><font size="-1">const double percent_opacity = 80, const double sigma_
1353= 0.5, const ssize_t x_ = 0, const ssize_t y_ = 0</font></td>
1354      <td><font size="-1">simulate an image shadow</font></td>
1355    </tr>
1356    <tr>
1357      <td style="text-align: center;">
1358      <center><a name="sharpen"></a> <font size="-1">sharpen</font></center>
1359      </td>
1360      <td><font size="-1">const double radius_ = 1, const double sigma_
1361= 0.5</font></td>
1362      <td><font size="-1">Sharpen pixels in image.&#160; The <i>radius_</i>
1363parameter specifies the radius of the Gaussian, in pixels, not counting
1364the center pixel.&#160; The <i>sigma_</i> parameter specifies the
1365standard deviation of the Laplacian, in pixels.</font></td>
1366    </tr>
1367    <tr>
1368      <td style="vertical-align: middle; text-align: center;"><small><a
1369 name="sharpenChannel"></a>sharpenChannel<br />
1370      </small></td>
1371      <td style="vertical-align: middle;"><small>const ChannelType
1372channel_, const double radius_ = 0.0, const double sigma_ = 1.0<br />
1373      </small></td>
1374      <td style="vertical-align: middle;"><font size="-1">Sharpen pixel
1375quantums in an image channel&#160; The <span
1376 style="font-style: italic;">channel_</span> parameter specifies the
1377channel to sharpen..&#160; The <i>radius_</i>
1378parameter specifies the radius of the Gaussian, in pixels, not counting
1379the center pixel.&#160; The <i>sigma_</i> parameter specifies the
1380standard deviation of the Laplacian, in pixels.</font></td>
1381    </tr>
1382    <tr>
1383      <td style="text-align: center;">
1384      <center><a name="shave"></a> <font size="-1">shave</font></center>
1385      </td>
1386      <td><font size="-1">const Geometry &amp;geometry_</font></td>
1387      <td><font size="-1">Shave pixels from image edges.</font></td>
1388    </tr>
1389    <tr>
1390      <td style="text-align: center;">
1391      <center><a name="shear"></a> <font size="-1">shear</font></center>
1392      </td>
1393      <td><font size="-1">double xShearAngle_, double yShearAngle_</font></td>
1394      <td><font size="-1">Shear image (create parallelogram by sliding
1395image by X or Y axis).&#160; Shearing slides one edge of an image along
1396the X&#160; or&#160; Y axis,&#160; creating&#160; a
1397parallelogram.&#160; An X direction shear slides an edge along the X
1398axis, while&#160; a&#160; Y&#160; direction shear&#160; slides&#160;
1399an edge along the Y axis.&#160; The amount of the shear is controlled
1400by a shear angle.&#160; For X direction&#160; shears,&#160; x&#160;
1401degrees is measured relative to the Y axis, and similarly, for Y
1402direction shears&#160; y&#160; degrees is measured relative to the X
1403axis. Empty triangles left over from shearing the&#160; image&#160; are
1404filled&#160; with&#160; the&#160; color&#160; defined as <i>borderColor</i>.&#160;</font></td>
1405    </tr>
1406    <tr>
1407      <td style="text-align: center;">
1408      <center><a name="solarize"></a> <font size="-1">solarize</font></center>
1409      </td>
1410      <td><font size="-1">double factor_ = 50.0</font></td>
1411      <td><font size="-1">Solarize image (similar to effect seen when
1412exposing a photographic film to light during the development process)</font></td>
1413    </tr>
1414    <tr>
1415      <td style="text-align: center;">
1416      <center><a name="splice"></a> <font size="-1">splice</font></center>
1417      </td>
1418      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
1419&amp;geometry_</font></td>
1420      <td><font size="-1">splice the background color into the image</font></td>
1421    </tr>
1422    <tr>
1423      <td style="text-align: center;">
1424      <center><a name="spread"></a> <font size="-1">spread</font></center>
1425      </td>
1426      <td><font size="-1">size_t amount_ = 3</font></td>
1427      <td><font size="-1">Spread pixels randomly within image by
1428specified amount</font></td>
1429    </tr>
1430    <tr>
1431      <td style="text-align: center;">
1432      <center><a name="stegano"></a> <font size="-1">stegano</font></center>
1433      </td>
1434      <td><font size="-1">const Image &amp;watermark_</font></td>
1435      <td><font size="-1">Add a digital watermark to the image (based
1436on second image)</font></td>
1437    </tr>
1438    <tr>
1439      <td>
1440      <center><a name="sparseColor"></a> <font size="-1">sparseColor</font></center>
1441      </td>
1442      <td><font size="-1">const ChannelType channel, const SparseColorMethod method, const size_t number_arguments, const double *arguments </font></td>
1443      <td><font size="-1">Sparse color image, given a set of coordinates, interpolates the colors found at those coordinates, across the whole image, using various methods.</font></td>
1444    </tr>
1445    <tr>
1446      <td style="text-align: center;">
1447      <center><a name="statistics"></a> <font size="-1">statistics</font></center>
1448      </td>
1449      <td><font size="-1">ImageStatistics *statistics</font></td>
1450      <td><font size="-1">Obtain image statistics. Statistics are normalized to the range of 0.0 to 1.0 and are output to the specified ImageStatistics structure.  The structure includes members maximum, minimum, mean, standard_deviation, and variance for each of these channels: red, green, blue, and opacity (e.g. statistics->red.maximum).</font></td>
1451    </tr>
1452    <tr>
1453      <td style="text-align: center;">
1454      <center><a name="stereo"></a> <font size="-1">stereo</font></center>
1455      </td>
1456      <td><font size="-1">const Image &amp;rightImage_</font></td>
1457      <td><font size="-1">Create an image which appears in stereo when
1458viewed with red-blue glasses (Red image on left, blue on right)</font></td>
1459    </tr>
1460    <tr>
1461      <td style="text-align: center;">
1462      <center><a name="swirl"></a> <font size="-1">swirl</font></center>
1463      </td>
1464      <td><font size="-1">double degrees_</font></td>
1465      <td><font size="-1">Swirl image (image pixels are rotated by
1466degrees)</font></td>
1467    </tr>
1468    <tr>
1469      <td style="text-align: center;">
1470      <center><a name="texture"></a> <font size="-1">texture</font></center>
1471      </td>
1472      <td><font size="-1">const Image &amp;texture_</font></td>
1473      <td><font size="-1">Layer a texture on pixels matching image
1474background color.</font></td>
1475    </tr>
1476    <tr>
1477      <td style="text-align: center;">
1478      <center><a name="threshold"></a> <font size="-1">threshold</font></center>
1479      </td>
1480      <td><font size="-1">double threshold_</font></td>
1481      <td><font size="-1">Threshold image</font></td>
1482    </tr>
1483    <tr>
1484      <td style="text-align: center;" rowspan="2">
1485      <center><a name="transform"></a> <font size="-1">transform</font></center>
1486      </td>
1487      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
1488&amp;imageGeometry_</font></td>
1489      <td rowspan="2"><font size="-1">Transform image based on image
1490and crop geometries. Crop geometry is optional.</font></td>
1491    </tr>
1492    <tr>
1493      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
1494&amp;imageGeometry_, const <a href="Geometry.html">Geometry</a>
1495&amp;cropGeometry_&#160;</font></td>
1496    </tr>
1497    <tr>
1498      <td style="text-align: center;">
1499      <center><a name="transparent"></a> <font size="-1">transparent</font></center>
1500      </td>
1501      <td><font size="-1">const <a href="Color.html">Color</a>
1502&amp;color_</font></td>
1503      <td><font size="-1">Add matte image to image, setting pixels
1504matching color to transparent.</font></td>
1505    </tr>
1506    <tr>
1507      <td style="text-align: center;">
1508      <center><a name="trim"></a> <font size="-1">trim</font></center>
1509      </td>
1510      <td><font size="-1">void</font></td>
1511      <td><font size="-1">Trim edges that are the background color from
1512the image.</font></td>
1513    </tr>
1514    <tr>
1515      <td style="text-align: center;">
1516      <center><a name="unsharpmask"></a> <font size="-1">unsharpmask</font></center>
1517      </td>
1518      <td><font size="-1">double radius_, double sigma_, double
1519amount_, double threshold_</font></td>
1520      <td><font size="-1">Sharpen the image using the unsharp mask
1521algorithm. The <i>radius</i>_
1522parameter specifies the radius of the Gaussian, in pixels, not
1523counting the center pixel. The <i>sigma</i>_ parameter specifies the
1524standard deviation of the Gaussian, in pixels. The <i>amount</i>_
1525parameter specifies the percentage of the difference between the
1526original and the blur image that is added back into the original. The <i>threshold</i>_
1527parameter specifies the threshold in pixels needed to apply the
1528diffence amount.</font></td>
1529    </tr>
1530    <tr>
1531      <td style="vertical-align: middle; text-align: center;"><small><a
1532 name="unsharpmaskChannel"></a>unsharpmaskChannel<br />
1533      </small></td>
1534      <td style="vertical-align: middle;"><small>const ChannelType
1535channel_, const double radius_, const double sigma_, const double
1536amount_, const double threshold_<br />
1537      </small></td>
1538      <td style="vertical-align: middle;"><small>Sharpen an image
1539channel using the unsharp mask algorithm. The <span
1540 style="font-style: italic;">channel_</span> parameter specifies the
1541channel to sharpen. </small><font size="-1">The <i>radius</i>_
1542parameter specifies the radius of the Gaussian, in pixels, not
1543counting the center pixel. The <i>sigma</i>_ parameter specifies the
1544standard deviation of the Gaussian, in pixels. The <i>amount</i>_
1545parameter specifies the percentage of the difference between the
1546original and the blur image that is added back into the original. The <i>threshold</i>_
1547parameter specifies the threshold in pixels needed to apply the
1548diffence amount.</font></td>
1549    </tr>
1550    <tr>
1551      <td style="text-align: center;">
1552      <center><a name="wave"></a> <font size="-1">wave</font></center>
1553      </td>
1554      <td><font size="-1">double amplitude_ = 25.0, double wavelength_
1555= 150.0</font></td>
1556      <td><font size="-1">Alter an image along a sine wave.</font></td>
1557    </tr>
1558    <tr>
1559      <td style="text-align: center;" rowspan="5">
1560      <center><a name="write"></a> <font size="-1">write</font></center>
1561      </td>
1562      <td><font size="-1">const string &amp;imageSpec_</font></td>
1563      <td><font size="-1">Write image to a file using filename i<i>mageSpec_</i>
1564.</font> <br />
1565      <font size="-1"><b><font color="#ff0000">Caution: </font></b> if
1566an image format is selected which is capable of supporting fewer
1567colors than the original image or quantization has been requested, the
1568original image will be quantized to fewer colors. Use a copy of the
1569original if this is a problem.</font></td>
1570    </tr>
1571    <tr>
1572      <td><font size="-1"><a href="Blob.html">Blob</a> *blob_</font></td>
1573      <td rowspan="3"><font size="-1">Write image to a in-memory <a
1574 href="Blob.html"> BLOB</a> stored in <i>blob_</i>. The <i>magick</i>_
1575parameter specifies the image format to write (defaults to <a
1576 href="Image++.html#magick">magick</a> ). The depth_ parameter species the image
1577depth (defaults to <a href="Image++.html#depth"> depth</a> ).</font> <br />
1578      <font size="-1"><b><font color="#ff0000">Caution: </font></b> if
1579an image format is selected which is capable of supporting fewer
1580colors than the original image or quantization has been requested, the
1581original image will be quantized to fewer colors. Use a copy of the
1582original if this is a problem.</font></td>
1583    </tr>
1584    <tr>
1585      <td><font size="-1"><a href="Blob.html">Blob</a> *blob_,
1586std::string &amp;magick_</font></td>
1587    </tr>
1588    <tr>
1589      <td><font size="-1"><a href="Blob.html">Blob</a> *blob_,
1590std::string &amp;magick_, size_t depth_</font></td>
1591    </tr>
1592    <tr>
1593      <td><font size="-1">const ssize_t x_, const ssize_t y_, const size_t
1594columns_, const size_t rows_, const std::string &amp;map_,
1595const StorageType type_, void *pixels_</font></td>
1596      <td><font size="-1">Write pixel data into a buffer you supply.
1597The data is saved either as char, short int, integer, float or double
1598format in the order specified by the type_ parameter. For example, we
1599want to extract scanline 1 of a 640x480 image as character data in
1600red-green-blue order:</font>
1601      <p><font size="-1">&#160; image.write(0,0,640,1,"RGB",0,pixels);</font>
1602      </p>
1603      <p><font size="-1">The parameters are as follows:</font> <br />
1604&#160;</p>
1605      <table border="0" width="100%">
1606        <tbody>
1607          <tr>
1608            <td><font size="-1">x_</font></td>
1609            <td><font size="-1">Horizontal ordinate of left-most
1610coordinate of region to extract.</font></td>
1611          </tr>
1612          <tr>
1613            <td><font size="-1">y_</font></td>
1614            <td><font size="-1">Vertical ordinate of top-most
1615coordinate of region to extract.</font></td>
1616          </tr>
1617          <tr>
1618            <td><font size="-1">columns_</font></td>
1619            <td><font size="-1">Width in pixels of the region to
1620extract.</font></td>
1621          </tr>
1622          <tr>
1623            <td><font size="-1">rows_</font></td>
1624            <td><font size="-1">Height in pixels of the region to
1625extract.</font></td>
1626          </tr>
1627          <tr>
1628            <td><font size="-1">map_</font></td>
1629            <td><font size="-1">This character string can be any
1630combination or order of R = red, G = green, B = blue, A = alpha, C =
1631cyan, Y = yellow, M = magenta, and K = black. The ordering reflects
1632the order of the pixels in the supplied pixel array.</font></td>
1633          </tr>
1634          <tr>
1635            <td><font size="-1">type_</font></td>
1636            <td><font size="-1">Pixel storage type (CharPixel,
1637ShortPixel, IntegerPixel, FloatPixel, or DoublePixel)</font></td>
1638          </tr>
1639          <tr>
1640            <td><font size="-1">pixels_</font></td>
1641            <td><font size="-1">This array of values contain the pixel
1642components as defined by the map_ and type_ parameters. The length of
1643the arrays must equal the area specified by the width_ and height_
1644values and type_ parameters.</font></td>
1645          </tr>
1646        </tbody>
1647      </table>
1648      </td>
1649    </tr>
1650    <tr>
1651      <td style="text-align: center;">
1652      <center><a name="resize"></a> <font size="-1">resize</font></center>
1653      </td>
1654      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
1655&amp;geometry_</font></td>
1656      <td><font size="-1">Resize image to specified size.</font></td>
1657    </tr>
1658  </tbody>
1659</table>
1660<center>
1661<h3> <a name="Image Attributes"></a> Image Attributes</h3>
1662</center>
1663Image attributes are set and obtained via methods in Image. Except for
1664methods which accept pointer arguments (e.g. c<tt>hromaBluePrimary)</tt>
1665all methods return attributes by value.
1666<p>Image attributes are easily used. For example, to set the resolution
1667of the TIFF file "file.tiff" to 150 dots-per-inch (DPI) in both the
1668horizontal and vertical directions, you can use the following example
1669code: </p>
1670<pre class="code">
1671string filename("file.tiff");
1672Image image;
1673image.read(filename);
1674image.resolutionUnits(PixelsPerInchResolution);
1675image.density(Geometry(150,150));   // could also use image.density("150x150")
1676image.write(filename)
1677</pre>
1678The supported image attributes and the method arguments required to
1679obtain them are shown in the following table: <br />
1680&#160;
1681<table border="1">
1682  <caption>Image Attributes</caption> <tbody>
1683    <tr>
1684      <td>
1685      <center><b>Function</b></center>
1686      </td>
1687      <td>
1688      <center><b>Type</b></center>
1689      </td>
1690      <td>
1691      <center><b>Get Signature</b></center>
1692      </td>
1693      <td>
1694      <center><b>Set Signature</b></center>
1695      </td>
1696      <td>
1697      <center><b>Description</b></center>
1698      </td>
1699    </tr>
1700    <tr>
1701      <td>
1702      <center><a name="adjoin"></a> <font size="-1">adjoin</font></center>
1703      </td>
1704      <td><font size="-1">bool</font></td>
1705      <td><font size="-1">void</font></td>
1706      <td><font size="-1">bool flag_</font></td>
1707      <td><font size="-1">Join images into a single multi-image file.</font></td>
1708    </tr>
1709    <tr>
1710      <td>
1711      <center><a name="antiAlias"></a> <font size="-1">antiAlias</font></center>
1712      </td>
1713      <td><font size="-1">bool</font></td>
1714      <td><font size="-1">void</font></td>
1715      <td><font size="-1">bool flag_</font></td>
1716      <td><font size="-1">Control antialiasing of rendered Postscript
1717and Postscript or TrueType fonts. Enabled by default.</font></td>
1718    </tr>
1719    <tr>
1720      <td>
1721      <center><a name="animationDelay"></a> <font size="-1">animation-</font>
1722      <br />
1723      <font size="-1">Delay</font></center>
1724      </td>
1725      <td><font size="-1">size_t (0 to 65535)</font></td>
1726      <td><font size="-1">void</font></td>
1727      <td><font size="-1">size_t delay_</font></td>
1728      <td><font size="-1">Time in 1/100ths of a second (0 to 65535)
1729which must expire before displaying the next image in an animated
1730sequence. This option is useful for regulating the animation of a
1731sequence&#160; of GIF images within Netscape.</font></td>
1732    </tr>
1733    <tr>
1734      <td>
1735      <center><a name="animationIterations"></a> <font size="-1">animation-</font>
1736      <br />
1737      <font size="-1">Iterations</font></center>
1738      </td>
1739      <td><font size="-1">size_t</font></td>
1740      <td><font size="-1">void</font></td>
1741      <td><font size="-1">size_t iterations_</font></td>
1742      <td><font size="-1">Number of iterations to loop an animation
1743(e.g. Netscape loop extension) for.</font></td>
1744    </tr>
1745    <tr>
1746      <td style="vertical-align: middle; text-align: center;"><small><a
1747 name="attribute"></a>attribute<br />
1748      </small></td>
1749      <td style="vertical-align: middle;"><small>string<br />
1750      </small></td>
1751      <td style="vertical-align: top;" valign="top"><small>const
1752std::string name_<br />
1753      </small></td>
1754      <td style="vertical-align: top;" valign="top"><small>const
1755std::string name_, const std::string value_</small></td>
1756      <td style="vertical-align: middle;"><small>An arbitrary named
1757image attribute. Any number of named attributes may be attached to the
1758image. For example, the image comment is a named image attribute with
1759the name "comment". EXIF tags are attached to the image as named
1760attributes. Use the syntax "EXIF:&lt;tag&gt;" to request an EXIF tag
1761similar to "EXIF:DateTime".</small><br />
1762      </td>
1763    </tr>
1764    <tr>
1765      <td>
1766      <center><a name="backgroundColor"></a> <font size="-1">background-</font>
1767      <br />
1768      <font size="-1">Color</font></center>
1769      </td>
1770      <td><font size="-1"><a href="Color.html">Color</a> </font></td>
1771      <td><font size="-1">void</font></td>
1772      <td><font size="-1">const <a href="Color.html">Color</a>
1773&amp;color_</font></td>
1774      <td><font size="-1">Image background color</font></td>
1775    </tr>
1776    <tr>
1777      <td>
1778      <center><a name="backgroundTexture"></a> <font size="-1">background-</font>
1779      <br />
1780      <font size="-1">Texture</font></center>
1781      </td>
1782      <td><font size="-1">string</font></td>
1783      <td><font size="-1">void</font></td>
1784      <td><font size="-1">const string &amp;texture_</font></td>
1785      <td><font size="-1">Image file name to use as the background
1786texture. Does not modify image pixels.</font></td>
1787    </tr>
1788    <tr>
1789      <td>
1790      <center><a name="baseColumns"></a> <font size="-1">baseColumns</font></center>
1791      </td>
1792      <td><font size="-1">size_t</font></td>
1793      <td><font size="-1">void</font></td>
1794      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
1795      <td><font size="-1">Base image width (before transformations)</font></td>
1796    </tr>
1797    <tr>
1798      <td>
1799      <center><a name="baseFilename"></a> <font size="-1">baseFilename</font></center>
1800      </td>
1801      <td><font size="-1">string</font></td>
1802      <td><font size="-1">void</font></td>
1803      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
1804      <td><font size="-1">Base image filename (before transformations)</font></td>
1805    </tr>
1806    <tr>
1807      <td>
1808      <center><a name="baseRows"></a> <font size="-1">baseRows</font></center>
1809      </td>
1810      <td><font size="-1">size_t</font></td>
1811      <td><font size="-1">void</font></td>
1812      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
1813      <td><font size="-1">Base image height (before transformations)</font></td>
1814    </tr>
1815    <tr>
1816      <td>
1817      <center><a name="borderColor"></a> <font size="-1">borderColor</font></center>
1818      </td>
1819      <td><font size="-1"><a href="Color.html">Color</a> </font></td>
1820      <td><font size="-1">void</font></td>
1821      <td><font size="-1">&#160;const <a href="Color.html">Color</a>
1822&amp;color_</font></td>
1823      <td><font size="-1">Image border color</font></td>
1824    </tr>
1825    <tr>
1826      <td><a name="boundingBox"></a> <font size="-1">boundingBox</font></td>
1827      <td><font size="-1">Geometry</font></td>
1828      <td><font size="-1">void</font></td>
1829      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
1830      <td><font size="-1">Return smallest bounding box enclosing
1831non-border pixels. The current fuzz value is used when discriminating
1832between pixels. This is the crop bounding box used by
1833crop(Geometry(0,0)).</font></td>
1834    </tr>
1835    <tr>
1836      <td>
1837      <center><a name="boxColor"></a> <font size="-1">boxColor</font></center>
1838      </td>
1839      <td><font size="-1"><a href="Color.html">Color</a> </font></td>
1840      <td><font size="-1">void</font></td>
1841      <td><font size="-1">const <a href="Color.html">Color</a>
1842&amp;boxColor_</font></td>
1843      <td><font size="-1">Base color that annotation text is rendered
1844on.</font></td>
1845    </tr>
1846    <tr>
1847      <td><a name="cacheThreshold"></a> <font size="-1">cacheThreshold</font></td>
1848      <td><font size="-1">size_t</font></td>
1849      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
1850      <td><font size="-1">const size_t</font></td>
1851      <td><font size="-1">Pixel cache threshold in bytes. Once this
1852threshold is exceeded, all subsequent pixels cache operations are
1853to/from disk. This is a static method and the attribute it sets is
1854shared by all Image objects.</font></td>
1855    </tr>
1856    <tr>
1857      <td style="vertical-align: middle;" valign="middle"><small><a
1858 name="channelDepth"></a>channelDepth<br />
1859      </small></td>
1860      <td style="vertical-align: middle;" valign="middle"><small>size_t
1861<br />
1862      </small></td>
1863      <td style="vertical-align: middle;" valign="middle"><small>const
1864ChannelType channel_<br />
1865      </small></td>
1866      <td style="vertical-align: middle;"><small>const ChannelType
1867channel_, const size_t depth_<br />
1868      </small></td>
1869      <td style="vertical-align: middle;"><small>Channel modulus depth.
1870The channel modulus depth represents the minimum number of bits
1871required
1872to support the channel without loss. Setting the channel's modulus
1873depth
1874modifies the channel (i.e. discards resolution) if the requested
1875modulus
1876depth is less than the current modulus depth, otherwise the channel is
1877not altered. There is no attribute associated with the modulus depth so
1878the current modulus depth is obtained by inspecting the pixels. As a
1879result, the depth returned may be less than the most recently set
1880channel depth. Subsequent image processing may result in increasing the
1881channel depth.<br />
1882      </small></td>
1883    </tr>
1884    <tr>
1885      <td>
1886      <center><a name="chromaBluePrimary"></a> <font size="-1">chroma-</font>
1887      <br />
1888      <font size="-1">BluePrimary</font></center>
1889      </td>
1890      <td><font size="-1">double x &amp; y</font></td>
1891      <td><font size="-1">double *x_, double *y_</font></td>
1892      <td><font size="-1">double x_, double y_</font></td>
1893      <td><font size="-1">Chromaticity blue primary point (e.g. x=0.15,
1894y=0.06)</font></td>
1895    </tr>
1896    <tr>
1897      <td>
1898      <center><a name="chromaGreenPrimary"></a> <font size="-1">chroma-</font>
1899      <br />
1900      <font size="-1">GreenPrimary</font></center>
1901      </td>
1902      <td><font size="-1">double x &amp; y</font></td>
1903      <td><font size="-1">double *x_, double *y_</font></td>
1904      <td><font size="-1">double x_, double y_</font></td>
1905      <td><font size="-1">Chromaticity green primary point (e.g. x=0.3,
1906y=0.6)</font></td>
1907    </tr>
1908    <tr>
1909      <td>
1910      <center><a name="chromaRedPrimary"></a> <font size="-1">chroma-</font>
1911      <br />
1912      <font size="-1">RedPrimary</font></center>
1913      </td>
1914      <td><font size="-1">double x &amp; y</font></td>
1915      <td><font size="-1">double *x_, double *y_</font></td>
1916      <td><font size="-1">double x_, double y_</font></td>
1917      <td><font size="-1">Chromaticity red primary point (e.g. x=0.64,
1918y=0.33)</font></td>
1919    </tr>
1920    <tr>
1921      <td>
1922      <center><a name="chromaWhitePoint"></a> <font size="-1">chroma-</font>
1923      <br />
1924      <font size="-1">WhitePoint</font></center>
1925      </td>
1926      <td><font size="-1">double x &amp; y</font></td>
1927      <td><font size="-1">double*x_, double *y_</font></td>
1928      <td><font size="-1">double x_, double y_</font></td>
1929      <td><font size="-1">Chromaticity white point (e.g. x=0.3127,
1930y=0.329)</font></td>
1931    </tr>
1932    <tr>
1933      <td>
1934      <center><a name="classType"></a> <font size="-1">classType</font></center>
1935      </td>
1936      <td><font size="-1"><a href="Enumerations.html#ClassType">ClassType</a>
1937      </font></td>
1938      <td><font size="-1">void</font></td>
1939      <td><font size="-1">&#160;<a href="Enumerations.html#ClassType">ClassType</a>
1940class_</font></td>
1941      <td><font size="-1">Image storage class.&#160; Note that
1942conversion from a DirectClass image to a PseudoClass image may result
1943in a loss of color due to the limited size of the palette (256 or
194465535 colors).</font></td>
1945    </tr>
1946    <tr>
1947      <td>
1948      <center><a name="clipMask"></a> <font size="-1">clipMask</font></center>
1949      </td>
1950      <td><font size="-1">Image</font></td>
1951      <td><font size="-1">void</font></td>
1952      <td><font size="-1">const Image &amp;clipMask_</font></td>
1953      <td><font size="-1">Associate a clip mask image with the current
1954image. The clip mask image must have the same dimensions as the current
1955image or an exception is thrown. Clipping occurs wherever pixels are
1956transparent in the clip mask image. Clipping Pass an invalid image to
1957unset an existing clip mask.</font></td>
1958    </tr>
1959    <tr>
1960      <td>
1961      <center><a name="colorFuzz"></a> <font size="-1">colorFuzz</font></center>
1962      </td>
1963      <td><font size="-1">double</font></td>
1964      <td><font size="-1">void</font></td>
1965      <td><font size="-1">double fuzz_</font></td>
1966      <td><font size="-1">Colors within this distance are considered
1967equal. A number of algorithms search for a target&#160; color. By
1968default the color must be exact. Use this option to match colors that
1969are close to the target color in RGB space.</font></td>
1970    </tr>
1971    <tr>
1972      <td>
1973      <center><a name="colorMap"></a> <font size="-1">colorMap</font></center>
1974      </td>
1975      <td><font size="-1"><a href="Color.html">Color</a> </font></td>
1976      <td><font size="-1">size_t index_</font></td>
1977      <td><font size="-1">size_t index_, const <a
1978 href="Color.html"> Color</a> &amp;color_</font></td>
1979      <td><font size="-1">Color at colormap index.</font></td>
1980    </tr>
1981    <tr>
1982      <td valign="middle">
1983      <div style="text-align:center"><a name="colorMapSize"></a> <font size="-1">colorMapSize<br />
1984      </font></div>
1985      </td>
1986      <td valign="middle"><font size="-1">size_t<br />
1987      </font></td>
1988      <td valign="middle"><font size="-1">void<br />
1989      </font></td>
1990      <td valign="middle"><font size="-1">size_t entries_<br />
1991      </font></td>
1992      <td valign="middle"><font size="-1">Number of entries in the
1993colormap. Setting the colormap size may extend or truncate the
1994colormap.
1995The maximum number of supported entries is specified by the <i>MaxColormapSize</i>constant,
1996and is dependent on the value of QuantumDepth when ImageMagick is
1997compiled. An exception is thrown if more entries are requested than may
1998be supported. Care should be taken when truncating the colormap to
1999ensure that the image colormap indexes reference valid colormap entries.</font><br />
2000      </td>
2001    </tr>
2002    <tr>
2003      <td>
2004      <center><a name="colorSpace"></a> <font size="-1">colorSpace</font></center>
2005      </td>
2006      <td><font size="-1"><a href="Enumerations.html#ColorspaceType">ColorspaceType</a>
2007colorSpace_</font></td>
2008      <td><font size="-1">void</font></td>
2009      <td><font size="-1"><a href="Enumerations.html#ColorspaceType">ColorspaceType</a>
2010colorSpace_</font></td>
2011      <td><font size="-1">The colorspace (e.g. CMYK) used to represent
2012the image pixel colors. Image pixels are always stored as RGB(A) except
2013for the case of CMY(K).</font></td>
2014    </tr>
2015    <tr>
2016      <td>
2017      <center><a name="columns"></a> <font size="-1">columns</font></center>
2018      </td>
2019      <td><font size="-1">size_t</font></td>
2020      <td><font size="-1">void</font></td>
2021      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2022      <td><font size="-1">Image width</font></td>
2023    </tr>
2024    <tr>
2025      <td>
2026      <center><a name="comment"></a> <font size="-1">comment</font></center>
2027      </td>
2028      <td><font size="-1">string</font></td>
2029      <td><font size="-1">void</font></td>
2030      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2031      <td><font size="-1">Image comment</font></td>
2032    </tr>
2033    <tr>
2034      <td>
2035      <center><a name="compose"></a> <font size="-1">compose</font></center>
2036      </td>
2037      <td><font size="-1"><a href="Enumerations.html#CompositeOperator">CompositeOperator</a>
2038      </font></td>
2039      <td><small><font size="-1"><small>void</small></font></small></td>
2040      <td><small><font size="-1"><small><a
2041 href="Enumerations.html#CompositeOperator">CompositeOperator</a>
2042compose_</small></font></small></td>
2043      <td><font size="-1">Composition operator to be used when
2044composition is implicitly used (such as for image flattening).</font></td>
2045    </tr>
2046    <tr>
2047      <td>
2048      <center><a name="compressType"></a> <font size="-1">compress-</font>
2049      <br />
2050      <font size="-1">Type</font></center>
2051      </td>
2052      <td><font size="-1"><a href="Enumerations.html#CompressionType">CompressionType</a>
2053      </font></td>
2054      <td><small><font size="-1"><small>void</small></font></small></td>
2055      <td><small><font size="-1"><small><a
2056 href="Enumerations.html#CompressionType">CompressionType</a>
2057compressType_</small></font></small></td>
2058      <td><font size="-1">Image compresion type. The default is the
2059compression type of the specified image file.</font></td>
2060    </tr>
2061    <tr>
2062      <td>
2063      <center><a name="debug"></a> <font size="-1">debug</font></center>
2064      </td>
2065      <td><font size="-1">bool</font></td>
2066      <td><small><font size="-1"><small>void</small></font></small></td>
2067      <td><small><font size="-1"><small>bool flag_</small></font></small></td>
2068      <td><font size="-1">Enable printing of internal debug messages
2069from ImageMagick as it executes.</font></td>
2070    </tr>
2071    <tr>
2072      <td style="text-align: center; vertical-align: middle;"><small><a
2073 name="defineValue"></a>defineValue<br />
2074      </small></td>
2075      <td style="vertical-align: middle; text-align: left;"><small>string<br />
2076      </small></td>
2077      <td style="vertical-align: middle;"><small>const std::string
2078&amp;magick_, const std::string &amp;key_<br />
2079      </small></td>
2080      <td style="vertical-align: middle;"><small>const std::string
2081&amp;magick_, const std::string &amp;key_, &#160;const std::string
2082&amp;value_<br />
2083      </small></td>
2084      <td style="vertical-align: top;"><small>Set or obtain a
2085definition string to applied when encoding or decoding the specified
2086format. The meanings of the definitions are format specific. The format
2087is designated by the <span style="font-style: italic;">magick_</span>
2088argument, the format-specific key is designated by <span
2089 style="font-style: italic;">key_</span>, and the associated value is
2090specified by <span style="font-style: italic;">value_</span>. See the
2091defineSet() method if the key must be removed entirely.</small><br />
2092      </td>
2093    </tr>
2094    <tr>
2095      <td style="text-align: center; vertical-align: middle;"><small><a
2096 name="defineSet"></a>defineSet<br />
2097      </small></td>
2098      <td style="vertical-align: middle; text-align: left;"><small>bool<br />
2099      </small></td>
2100      <td style="vertical-align: middle;"><small>const std::string
2101&amp;magick_, const std::string &amp;key_<br />
2102      </small></td>
2103      <td style="vertical-align: middle;"><small>const std::string
2104&amp;magick_, const std::string &amp;key_, bool flag_<br />
2105      </small></td>
2106      <td style="vertical-align: middle;"><small>Set or obtain a
2107definition flag to applied when encoding or decoding the specified
2108format.</small><small>. Similar to the defineValue() method except that
2109passing the <span style="font-style: italic;">flag_</span> value
2110'true'
2111creates a value-less define with that format and key. Passing the <span
2112 style="font-style: italic;">f</span><span style="font-style: italic;">lag_</span>
2113value 'false' removes any existing matching definition. The method
2114returns 'true' if a matching key exists, and 'false' if no matching key
2115exists.<br />
2116      </small></td>
2117    </tr>
2118    <tr>
2119      <td>
2120      <center><a name="density"></a> <font size="-1">density</font></center>
2121      </td>
2122      <td><font size="-1"><a href="Geometry.html">Geometry</a> &#160;
2123(default 72x72)</font></td>
2124      <td><font size="-1">void</font></td>
2125      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
2126&amp;density_</font></td>
2127      <td><font size="-1">Vertical and horizontal resolution in pixels
2128of the image. This option specifies an image density when decoding a
2129Postscript or Portable Document page. Often used with <i>psPageSize</i>.</font></td>
2130    </tr>
2131    <tr>
2132      <td>
2133      <center><a name="depth"></a> <font size="-1">depth</font></center>
2134      </td>
2135      <td><font size="-1">&#160;size_t (8-32)</font></td>
2136      <td><font size="-1">void</font></td>
2137      <td><font size="-1">size_t depth_</font></td>
2138      <td><font size="-1">Image depth. Used to specify the bit depth
2139when reading or writing&#160; raw images or when the output format
2140supports multiple depths. Defaults to the quantum depth that
2141ImageMagick is compiled with.</font></td>
2142    </tr>
2143    <tr>
2144      <td>
2145      <center><a name="endian"></a> <font size="-1">endian</font></center>
2146      </td>
2147      <td><font size="-1"><a href="Enumerations.html#EndianType">EndianType</a>
2148      </font></td>
2149      <td><font size="-1">void</font></td>
2150      <td><font size="-1"><a href="Enumerations.html#EndianType">EndianType</a>
2151endian_</font></td>
2152      <td><font size="-1">Specify (or obtain) endian option for formats
2153which support it.</font></td>
2154    </tr>
2155    <tr>
2156      <td>
2157      <center><a name="directory"></a> <font size="-1">directory</font></center>
2158      </td>
2159      <td><font size="-1">string</font></td>
2160      <td><font size="-1">void</font></td>
2161      <td><font size="-1">&#160;</font></td>
2162      <td><font size="-1">Tile names from within an image montage</font></td>
2163    </tr>
2164    <tr>
2165      <td>
2166      <center><a name="file"></a> <font size="-1">file</font></center>
2167      </td>
2168      <td><font size="-1">FILE *</font></td>
2169      <td><font size="-1">FILE *</font></td>
2170      <td><font size="-1">FILE *file_</font></td>
2171      <td><font size="-1">Image file descriptor.</font></td>
2172    </tr>
2173    <tr>
2174      <td>
2175      <center><a name="fileName"></a> <font size="-1">fileName</font></center>
2176      </td>
2177      <td><font size="-1">string</font></td>
2178      <td><font size="-1">void</font></td>
2179      <td><font size="-1">const string &amp;fileName_</font></td>
2180      <td><font size="-1">Image file name.</font></td>
2181    </tr>
2182    <tr>
2183      <td>
2184      <center><a name="fileSize"></a> <font size="-1">fileSize</font></center>
2185      </td>
2186      <td><font size="-1">off_t</font></td>
2187      <td><font size="-1">void</font></td>
2188      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2189      <td><font size="-1">Number of bytes of the image on disk</font></td>
2190    </tr>
2191    <tr>
2192      <td>
2193      <center><a name="fillColor"></a> <font size="-1">fillColor</font></center>
2194      </td>
2195      <td><font size="-1">Color</font></td>
2196      <td><font size="-1">void</font></td>
2197      <td><font size="-1">const Color &amp;fillColor_</font></td>
2198      <td><font size="-1">Color to use when filling drawn objects</font></td>
2199    </tr>
2200    <tr>
2201      <td>
2202      <center><a name="fillPattern"></a> <font size="-1">fillPattern</font></center>
2203      </td>
2204      <td><font size="-1">Image</font></td>
2205      <td><font size="-1">void</font></td>
2206      <td><font size="-1">const Image &amp;fillPattern_</font></td>
2207      <td><font size="-1">Pattern image to use when filling drawn
2208objects.</font></td>
2209    </tr>
2210    <tr>
2211      <td>
2212      <center><a name="fillRule"></a> <font size="-1">fillRule</font></center>
2213      </td>
2214      <td><font size="-1"><a href="Enumerations.html#FillRule">FillRule</a>
2215      </font></td>
2216      <td><font size="-1">void</font></td>
2217      <td><font size="-1">const Magick::FillRule &amp;fillRule_</font></td>
2218      <td><font size="-1">Rule to use when filling drawn objects.</font></td>
2219    </tr>
2220    <tr>
2221      <td>
2222      <center><a name="filterType"></a> <font size="-1">filterType</font></center>
2223      </td>
2224      <td><font size="-1"><a href="Enumerations.html#FilterTypes">FilterTypes</a>
2225      </font></td>
2226      <td><font size="-1">void</font></td>
2227      <td><font size="-1"><a href="Enumerations.html#FilterTypes">FilterTypes</a>
2228filterType_</font></td>
2229      <td><font size="-1">Filter to use when resizing image. The
2230reduction filter employed has a sigificant effect on the time required
2231to resize an image and the resulting quality. The default filter is <i>Lanczos</i>
2232which has been shown to produce high quality results when reducing most
2233images.</font></td>
2234    </tr>
2235    <tr>
2236      <td>
2237      <center><a name="font"></a> <font size="-1">font</font></center>
2238      </td>
2239      <td><font size="-1">string</font></td>
2240      <td><font size="-1">void</font></td>
2241      <td><font size="-1">const string &amp;font_</font></td>
2242      <td><font size="-1">Text rendering font. If the font is a fully
2243qualified X server font name, the font is obtained from an X&#160;
2244server. To use a TrueType font, precede the TrueType filename with an
2245@. Otherwise, specify&#160; a&#160; Postscript font name (e.g.
2246"helvetica").</font></td>
2247    </tr>
2248    <tr>
2249      <td>
2250      <center><a name="fontPointsize"></a> <font size="-1">fontPointsize</font></center>
2251      </td>
2252      <td><font size="-1">size_t</font></td>
2253      <td><font size="-1">void</font></td>
2254      <td><font size="-1">size_t pointSize_</font></td>
2255      <td><font size="-1">Text rendering font point size</font></td>
2256    </tr>
2257    <tr>
2258      <td>
2259      <center><a name="fontTypeMetrics"></a> <font size="-1">fontTypeMetrics</font></center>
2260      </td>
2261      <td><font size="-1"><a href="TypeMetric.html">TypeMetric</a> </font></td>
2262      <td><font size="-1">const std::string &amp;text_, <a
2263 href="TypeMetric.html"> TypeMetric</a> *metrics</font></td>
2264      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2265      <td><font size="-1">Update metrics with font type metrics using
2266specified <i>text</i>, and current <a href="Image++.html#font">font</a> and <a
2267 href="Image++.html#fontPointsize">fontPointSize</a> settings.</font></td>
2268    </tr>
2269    <tr>
2270      <td>
2271      <center><a name="format"></a> <font size="-1">format</font></center>
2272      </td>
2273      <td><font size="-1">string</font></td>
2274      <td><font size="-1">void</font></td>
2275      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2276      <td><font size="-1">Long form image format description.</font></td>
2277    </tr>
2278    <tr>
2279      <td>
2280      <center><a name="gamma"></a> <font size="-1">gamma</font></center>
2281      </td>
2282      <td><font size="-1">double (typical range 0.8 to 2.3)</font></td>
2283      <td><font size="-1">void</font></td>
2284      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2285      <td><font size="-1">Gamma level of the image. The same color
2286image displayed on two different&#160; workstations&#160; may&#160;
2287look&#160; different due to differences in the display monitor.&#160;
2288Use gamma correction&#160; to&#160; adjust&#160; for this&#160;
2289color&#160; difference.</font></td>
2290    </tr>
2291    <tr>
2292      <td>
2293      <center><a name="geometry"></a> <font size="-1">geometry</font></center>
2294      </td>
2295      <td><font size="-1"><a href="Geometry.html">Geometry</a> </font></td>
2296      <td><font size="-1">void</font></td>
2297      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2298      <td><font size="-1">Preferred size of the image when encoding.</font></td>
2299    </tr>
2300    <tr>
2301      <td>
2302      <center><a name="gifDisposeMethod"></a> <font size="-1">gifDispose-</font>
2303      <br />
2304      <font size="-1">Method</font></center>
2305      </td>
2306      <td><font size="-1">size_t</font> <br />
2307      <font size="-1">{ 0 = Disposal not specified,</font> <br />
2308      <font size="-1">1 = Do not dispose of graphic,</font> <br />
2309      <font size="-1">3 = Overwrite graphic with background color,</font>
2310      <br />
2311      <font size="-1">4 = Overwrite graphic with previous graphic. }</font></td>
2312      <td><font size="-1">void</font></td>
2313      <td><font size="-1">size_t disposeMethod_</font></td>
2314      <td><font size="-1">GIF disposal method. This option is used to
2315control how successive frames are rendered (how the preceding frame is
2316disposed of) when creating a GIF animation.</font></td>
2317    </tr>
2318    <tr>
2319      <td>
2320      <center><a name="iccColorProfile"></a> <font size="-1">iccColorProfile</font></center>
2321      </td>
2322      <td><font size="-1"><a href="Blob.html">Blob</a> </font></td>
2323      <td><font size="-1">void</font></td>
2324      <td><font size="-1">const <a href="Blob.html">Blob</a>
2325&amp;colorProfile_</font></td>
2326      <td><font size="-1">ICC color profile. Supplied via a <a
2327 href="Blob.html"> Blob</a> since Magick++/ and ImageMagick do not
2328currently support formating this data structure directly.&#160;
2329Specifications are available from the <a href="http://www.color.org/">
2330International Color Consortium</a> for the format of ICC color profiles.</font></td>
2331    </tr>
2332    <tr>
2333      <td>
2334      <center><a name="interlaceType"></a> <font size="-1">interlace-</font>
2335      <br />
2336      <font size="-1">Type</font></center>
2337      </td>
2338      <td><font size="-1"><a href="Enumerations.html#InterlaceType">InterlaceType</a>
2339      </font></td>
2340      <td><font size="-1">void</font></td>
2341      <td><font size="-1"><a href="Enumerations.html#InterlaceType">InterlaceType</a>
2342interlace_</font></td>
2343      <td><font size="-1">The type of interlacing scheme (default <i>NoInterlace</i>
2344). This option is used to specify the type of&#160; interlacing
2345scheme&#160; for&#160; raw&#160; image formats such as RGB or YUV. <i>NoInterlace</i>
2346means do not&#160; interlace, <i>LineInterlace</i> uses scanline
2347interlacing, and <i>PlaneInterlace</i> uses plane interlacing. <i>
2348PartitionInterlace</i> is like <i>PlaneInterlace</i> except the&#160;
2349different planes&#160; are saved&#160; to individual files (e.g.&#160;
2350image.R, image.G, and image.B). Use <i>LineInterlace</i> or <i>
2351PlaneInterlace</i> to create an interlaced GIF or progressive JPEG
2352image.</font></td>
2353    </tr>
2354    <tr>
2355      <td>
2356      <center><a name="iptcProfile"></a> <font size="-1">iptcProfile</font></center>
2357      </td>
2358      <td><font size="-1"><a href="Blob.html">Blob</a> </font></td>
2359      <td><font size="-1">void</font></td>
2360      <td><font size="-1">const <a href="Blob.html">Blob</a> &amp;
2361iptcProfile_</font></td>
2362      <td><font size="-1">IPTC profile. Supplied via a <a
2363 href="Blob.html"> Blob</a> since Magick++ and ImageMagick do not
2364currently&#160; support formating this data structure directly.
2365Specifications are available from the <a href="http://www.iptc.org/">
2366International Press Telecommunications Council</a> for IPTC profiles.</font></td>
2367    </tr>
2368    <tr>
2369      <td>
2370      <center><a name="label"></a> <font size="-1">label</font></center>
2371      </td>
2372      <td><font size="-1">string</font></td>
2373      <td><font size="-1">void</font></td>
2374      <td><font size="-1">const string &amp;label_</font></td>
2375      <td><font size="-1">Image label</font></td>
2376    </tr>
2377    <tr>
2378      <td>
2379      <center><a name="magick"></a> <font size="-1">magick</font></center>
2380      </td>
2381      <td><font size="-1">string</font></td>
2382      <td><font size="-1">void</font></td>
2383      <td><font size="-1">&#160;const string &amp;magick_</font></td>
2384      <td><font size="-1">Get image format (e.g. "GIF")</font></td>
2385    </tr>
2386    <tr>
2387      <td>
2388      <center><a name="matte"></a> <font size="-1">matte</font></center>
2389      </td>
2390      <td><font size="-1">bool</font></td>
2391      <td><font size="-1">void</font></td>
2392      <td><font size="-1">bool matteFlag_</font></td>
2393      <td><font size="-1">True if the image has transparency. If set
2394True, store matte channel if&#160; the image has one otherwise create
2395an opaque one.</font></td>
2396    </tr>
2397    <tr>
2398      <td>
2399      <center><a name="matteColor"></a> <font size="-1">matteColor</font></center>
2400      </td>
2401      <td><font size="-1"><a href="Color.html">Color</a> </font></td>
2402      <td><font size="-1">void</font></td>
2403      <td><font size="-1">const <a href="Color.html">Color</a>
2404&amp;matteColor_</font></td>
2405      <td><font size="-1">Image matte (frame) color</font></td>
2406    </tr>
2407    <tr>
2408      <td>
2409      <center><a name="meanErrorPerPixel"></a> <font size="-1">meanError-</font>
2410      <br />
2411      <font size="-1">PerPixel</font></center>
2412      </td>
2413      <td><font size="-1">double</font></td>
2414      <td><font size="-1">void</font></td>
2415      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2416      <td><font size="-1">The mean error per pixel computed when an
2417image is color reduced. This parameter is only valid if verbose is set
2418to true and the image has just been quantized.</font></td>
2419    </tr>
2420    <tr>
2421      <td style="text-align: center; vertical-align: middle;"><font
2422 size="-1"><a name="modulusDepth"></a>modulusDepth<br />
2423      </font></td>
2424      <td style="text-align: left; vertical-align: middle;"><small>size_t
2425<br />
2426      </small></td>
2427      <td style="text-align: left; vertical-align: middle;"><small><font
2428 size="-1"><small>void<br />
2429      </small></font></small></td>
2430      <td style="text-align: left; vertical-align: middle;"><small>size_t
2431depth_<br />
2432      </small></td>
2433      <td style="text-align: left; vertical-align: middle;"><small>Image
2434modulus depth (minimum number of bits required to support
2435red/green/blue components without loss of accuracy). The pixel modulus
2436depth may be decreased by supplying a value which is less than the
2437current value, updating the pixels (reducing accuracy) to the new
2438depth.
2439The pixel modulus depth can not be increased over the current value
2440using this method.<br />
2441      </small></td>
2442    </tr>
2443    <tr>
2444      <td>
2445      <center><a name="monochrome"></a> <font size="-1">monochrome</font></center>
2446      </td>
2447      <td><font size="-1">bool</font></td>
2448      <td><font size="-1">void</font></td>
2449      <td><font size="-1">bool flag_</font></td>
2450      <td><font size="-1">Transform the image to black and white</font></td>
2451    </tr>
2452    <tr>
2453      <td>
2454      <center><a name="montageGeometry"></a> <font size="-1">montage-</font>
2455      <br />
2456      <font size="-1">Geometry</font></center>
2457      </td>
2458      <td><font size="-1"><a href="Geometry.html">Geometry</a> </font></td>
2459      <td><font size="-1">void</font></td>
2460      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2461      <td><font size="-1">Tile size and offset within an image montage.
2462Only valid for montage images.</font></td>
2463    </tr>
2464    <tr>
2465      <td>
2466      <center><a name="normalizedMaxError"></a> <font size="-1">normalized-</font>
2467      <br />
2468      <font size="-1">MaxError</font></center>
2469      </td>
2470      <td><font size="-1">double</font></td>
2471      <td><font size="-1">void</font></td>
2472      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2473      <td><font size="-1">The normalized max error per pixel computed
2474when an image is color reduced. This parameter is only valid if verbose
2475is set to true and the image has just been quantized.</font></td>
2476    </tr>
2477    <tr>
2478      <td>
2479      <center><a name="normalizedMeanError"></a> <font size="-1">normalized-</font>
2480      <br />
2481      <font size="-1">MeanError</font></center>
2482      </td>
2483      <td><font size="-1">double</font></td>
2484      <td><font size="-1">void</font></td>
2485      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2486      <td><font size="-1">The normalized mean error per pixel computed
2487when an image is color reduced. This parameter is only valid if verbose
2488is set to true and the image has just been quantized.</font></td>
2489    </tr>
2490    <tr>
2491      <td style="text-align: center; vertical-align: middle;"><small><a
2492 name="orientation"></a>orientation<br />
2493      </small></td>
2494      <td style="vertical-align: middle;"><small><a
2495 href="Enumerations.html#OrientationType">OrientationType</a></small></td>
2496      <td style="vertical-align: top;"><small>void</small><br />
2497      </td>
2498      <td style="vertical-align: middle;"><small><a
2499 href="Enumerations.html#OrientationType">OrientationType</a>
2500orientation_</small></td>
2501      <td style="vertical-align: top;"><small>Image orientation.
2502&#160;Supported by some file formats such as DPX and TIFF. Useful for
2503turning the right way up.<br />
2504      </small></td>
2505    </tr>
2506    <tr>
2507      <td>
2508      <center><a name="packets"></a> <font size="-1">packets</font></center>
2509      </td>
2510      <td><font size="-1">size_t</font></td>
2511      <td><font size="-1">void</font></td>
2512      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2513      <td><font size="-1">The number of runlength-encoded packets in</font>
2514      <br />
2515      <font size="-1">the image</font></td>
2516    </tr>
2517    <tr>
2518      <td>
2519      <center><a name="packetSize"></a> <font size="-1">packetSize</font></center>
2520      </td>
2521      <td><font size="-1">size_t</font></td>
2522      <td><font size="-1">void</font></td>
2523      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2524      <td><font size="-1">The number of bytes in each pixel packet</font></td>
2525    </tr>
2526    <tr>
2527      <td>
2528      <center><a name="page"></a> <font size="-1">page</font></center>
2529      </td>
2530      <td><font size="-1"><a href="Geometry.html#PostscriptPageSize">Geometry</a>
2531      </font></td>
2532      <td><font size="-1">void</font></td>
2533      <td><font size="-1">const <a
2534 href="Geometry.html#PostscriptPageSize"> Geometry</a> &amp;pageSize_</font></td>
2535      <td><font size="-1">Preferred size and location of an image
2536canvas.</font>
2537      <p><font size="-1">Use this option to specify the dimensions
2538and position of the Postscript page in dots per inch or a TEXT page in
2539pixels. This option is typically used in concert with <i><a
2540 href="Image++.html#density"> density</a> </i>.</font> </p>
2541      <p><font size="-1">Page may also be used to position a GIF
2542image (such as for a scene in an animation)</font></p>
2543      </td>
2544    </tr>
2545    <tr>
2546      <td>
2547      <center><a name="pixelColor"></a> <font size="-1">pixelColor</font></center>
2548      </td>
2549      <td><font size="-1"><a href="Color.html">Color</a> </font></td>
2550      <td><font size="-1">ssize_t x_, ssize_t y_</font></td>
2551      <td><font size="-1">ssize_t x_, ssize_t y_, const <a
2552 href="Color.html"> Color</a> &amp;color_</font></td>
2553      <td><font size="-1">Get/set pixel color at location x &amp; y.</font></td>
2554    </tr>
2555    <tr>
2556      <td valign="top">
2557      <div style="text-align:center"><a name="profile"></a> <small>profile</small><br />
2558      </div>
2559      </td>
2560      <td valign="top"><a href="Blob.html"><small> Blob</small><small><br />
2561      </small></a> </td>
2562      <td valign="top"><small>const std::string name_</small><small><br />
2563      </small></td>
2564      <td valign="top"><small>const std::string name_, const Blob
2565&amp;colorProfile_</small><small><br />
2566      </small></td>
2567      <td valign="top"><small>Get/set/remove </small><small> a named
2568profile</small><small>. Valid names include </small><small>"*",
2569"8BIM", "ICM", "IPTC", or a user/format-defined profile name. </small><br />
2570      </td>
2571    </tr>
2572    <tr>
2573      <td>
2574      <center><a name="quality"></a> <font size="-1">quality</font></center>
2575      </td>
2576      <td><font size="-1">size_t (0 to 100)</font></td>
2577      <td><font size="-1">void</font></td>
2578      <td><font size="-1">size_t quality_</font></td>
2579      <td><font size="-1">JPEG/MIFF/PNG compression level (default 75).</font></td>
2580    </tr>
2581    <tr>
2582      <td>
2583      <center><a name="quantizeColors"></a> <font size="-1">quantize-</font>
2584      <br />
2585      <font size="-1">Colors</font></center>
2586      </td>
2587      <td><font size="-1">size_t</font></td>
2588      <td><font size="-1">void</font></td>
2589      <td><font size="-1">size_t colors_</font></td>
2590      <td><font size="-1">Preferred number of colors in the image. The
2591actual number of colors in the image may be less than your request, but
2592never more. Images with less unique colors than specified with this
2593option will have any duplicate or unused colors removed.</font></td>
2594    </tr>
2595    <tr>
2596      <td>
2597      <center><a name="quantizeColorSpace"></a> <font size="-1">quantize-</font>
2598      <br />
2599      <font size="-1">ColorSpace</font></center>
2600      </td>
2601      <td><font size="-1"><a href="Enumerations.html#ColorspaceType">ColorspaceType</a>
2602      </font></td>
2603      <td><font size="-1">void</font></td>
2604      <td><font size="-1"><a href="Enumerations.html#ColorspaceType">ColorspaceType</a>
2605colorSpace_</font></td>
2606      <td><font size="-1">Colorspace to quantize colors in (default
2607RGB). Empirical evidence suggests that distances in color spaces such
2608as YUV or YIQ correspond to perceptual color differences more closely
2609than do distances in RGB space. These color spaces may give better
2610results when color reducing an image.</font></td>
2611    </tr>
2612    <tr>
2613      <td>
2614      <center><a name="quantizeDither"></a> <font size="-1">quantize-</font>
2615      <br />
2616      <font size="-1">Dither</font></center>
2617      </td>
2618      <td><font size="-1">bool</font></td>
2619      <td><font size="-1">void</font></td>
2620      <td><font size="-1">bool flag_</font></td>
2621      <td><font size="-1">Apply Floyd/Steinberg error diffusion to the
2622image. The basic strategy of dithering is to&#160; trade&#160;
2623intensity
2624resolution&#160; for&#160; spatial&#160; resolution&#160; by&#160;
2625averaging the intensities&#160; of&#160; several&#160;
2626neighboring&#160; pixels. Images which&#160; suffer&#160; from&#160;
2627severe&#160; contouring&#160; when&#160; reducing colors can be
2628improved with this option. The quantizeColors or monochrome option must
2629be set for this option to take effect.</font></td>
2630    </tr>
2631    <tr>
2632      <td>
2633      <center><a name="quantizeTreeDepth"></a> <font size="-1">quantize-</font>
2634      <br />
2635      <font size="-1">TreeDepth</font></center>
2636      </td>
2637      <td><font size="-1">size_t&#160;</font></td>
2638      <td><font size="-1">void</font></td>
2639      <td><font size="-1">size_t treeDepth_</font></td>
2640      <td><font size="-1">Depth of the quantization color
2641classification tree. Values of 0 or 1 allow selection of the optimal
2642tree depth for the color reduction algorithm. Values between 2 and 8
2643may be used to manually adjust the tree depth.</font></td>
2644    </tr>
2645    <tr>
2646      <td>
2647      <center><a name="renderingIntent"></a> <font size="-1">rendering-</font>
2648      <br />
2649      <font size="-1">Intent</font></center>
2650      </td>
2651      <td><font size="-1"><a href="Enumerations.html#RenderingIntent">RenderingIntent</a>
2652      </font></td>
2653      <td><font size="-1">void</font></td>
2654      <td><font size="-1"><a href="Enumerations.html#RenderingIntent">RenderingIntent</a>
2655render_</font></td>
2656      <td><font size="-1">The type of rendering intent</font></td>
2657    </tr>
2658    <tr>
2659      <td>
2660      <center><a name="resolutionUnits"></a> <font size="-1">resolution-</font>
2661      <br />
2662      <font size="-1">Units</font></center>
2663      </td>
2664      <td><font size="-1"><a href="Enumerations.html#ResolutionType">ResolutionType</a>
2665      </font></td>
2666      <td><font size="-1">void</font></td>
2667      <td><font size="-1"><a href="Enumerations.html#ResolutionType">ResolutionType</a>
2668units_</font></td>
2669      <td><font size="-1">Units of image resolution</font></td>
2670    </tr>
2671    <tr>
2672      <td>
2673      <center><a name="rows"></a> <font size="-1">rows</font></center>
2674      </td>
2675      <td><font size="-1">size_t</font></td>
2676      <td><font size="-1">void</font></td>
2677      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2678      <td><font size="-1">The number of pixel rows in the image</font></td>
2679    </tr>
2680    <tr>
2681      <td>
2682      <center><a name="scene"></a> <font size="-1">scene</font></center>
2683      </td>
2684      <td><font size="-1">size_t</font></td>
2685      <td><font size="-1">void</font></td>
2686      <td><font size="-1">size_t scene_</font></td>
2687      <td><font size="-1">Image scene number</font></td>
2688    </tr>
2689    <tr>
2690      <td>
2691      <center><a name="signature"></a> <font size="-1">signature</font></center>
2692      </td>
2693      <td><font size="-1">string</font></td>
2694      <td><font size="-1">bool force_ = false</font></td>
2695      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2696      <td><font size="-1">Image MD5 signature. Set force_ to 'true' to
2697force re-computation of signature.</font></td>
2698    </tr>
2699    <tr>
2700      <td>
2701      <center><a name="size"></a> <font size="-1">size</font></center>
2702      </td>
2703      <td><font size="-1"><a href="Geometry.html">Geometry</a> </font></td>
2704      <td><font size="-1">void</font></td>
2705      <td><font size="-1">const <a href="Geometry.html">Geometry</a>
2706&amp;geometry_</font></td>
2707      <td><font size="-1">Width and height of a raw image (an image
2708which does not support width and height information).&#160; Size may
2709also be used to affect the image size read from a multi-resolution
2710format (e.g. Photo CD, JBIG, or JPEG.</font></td>
2711    </tr>
2712    <tr>
2713      <td style="text-align: center;">
2714      <center><a name="strip"></a> <font size="-1">strip</font></center>
2715      </td>
2716      <td><font size="-1">void</font></td>
2717      <td><font size="-1">strips an image of all profiles and comments.</font></td>
2718    </tr>
2719    <tr>
2720      <td>
2721      <center><a name="strokeAntiAlias"></a> <font size="-1">strokeAntiAlias</font></center>
2722      </td>
2723      <td><font size="-1">bool</font></td>
2724      <td><font size="-1">void</font></td>
2725      <td><font size="-1">bool flag_</font></td>
2726      <td><font size="-1">Enable or disable anti-aliasing when drawing
2727object outlines.</font></td>
2728    </tr>
2729    <tr>
2730      <td>
2731      <center><a name="strokeColor"></a> <font size="-1">strokeColor</font></center>
2732      </td>
2733      <td><font size="-1">Color</font></td>
2734      <td><font size="-1">void</font></td>
2735      <td><font size="-1">const Color &amp;strokeColor_</font></td>
2736      <td><font size="-1">Color to use when drawing object outlines</font></td>
2737    </tr>
2738    <tr>
2739      <td>
2740      <center><a name="strokeDashOffset"></a> <font size="-1">strokeDashOffset</font></center>
2741      </td>
2742      <td><font size="-1">size_t</font></td>
2743      <td><font size="-1">void</font></td>
2744      <td><font size="-1">double strokeDashOffset_</font></td>
2745      <td><font size="-1">While drawing using a dash pattern, specify
2746distance into the dash pattern to start the dash (default 0).</font></td>
2747    </tr>
2748    <tr>
2749      <td>
2750      <center><a name="strokeDashArray"></a> <font size="-1">strokeDashArray</font></center>
2751      </td>
2752      <td><font size="-1">const double*</font></td>
2753      <td><font size="-1">void</font></td>
2754      <td><font size="-1">const double* strokeDashArray_</font></td>
2755      <td><font size="-1">Specify the pattern of dashes and gaps used
2756to stroke paths. The strokeDashArray represents a zero-terminated
2757array of numbers that specify the lengths (in pixels) of alternating
2758dashes and gaps in user units. If an odd number of values is provided,
2759then the list of values is repeated to yield an even number of
2760values.&#160; A typical strokeDashArray_ array might contain the
2761members 5 3 2 0, where the zero value indicates the end of the pattern
2762array.</font></td>
2763    </tr>
2764    <tr>
2765      <td>
2766      <center><a name="strokeLineCap"></a> <font size="-1">strokeLineCap</font></center>
2767      </td>
2768      <td><font size="-1">LineCap</font></td>
2769      <td><font size="-1">void</font></td>
2770      <td><font size="-1">LineCap lineCap_</font></td>
2771      <td><font size="-1">Specify the shape to be used at the corners
2772of paths (or other vector shapes) when they are stroked. Values of
2773LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.</font></td>
2774    </tr>
2775    <tr>
2776      <td>
2777      <center><a name="strokeLineJoin"></a> <font size="-1">strokeLineJoin</font></center>
2778      </td>
2779      <td><font size="-1">LineJoin</font></td>
2780      <td><font size="-1">void</font></td>
2781      <td><font size="-1">LineJoin lineJoin_</font></td>
2782      <td><font size="-1">Specify the shape to be used at the corners
2783of paths (or other vector shapes) when they are stroked. Values of
2784LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.</font></td>
2785    </tr>
2786    <tr>
2787      <td>
2788      <center><a name="strokeMiterLimit"></a> <font size="-1">strokeMiterLimit</font></center>
2789      </td>
2790      <td><font size="-1">size_t</font></td>
2791      <td><font size="-1">void</font></td>
2792      <td><font size="-1">size_t miterLimit_</font></td>
2793      <td><font size="-1">Specify miter limit. When two line segments
2794meet at a sharp angle and miter joins have been specified for
2795'lineJoin', it is possible for the miter to extend far beyond the
2796thickness of the line stroking the path. The miterLimit' imposes a
2797limit on the ratio of the miter length to the 'lineWidth'. The default
2798value of this parameter is 4.</font></td>
2799    </tr>
2800    <tr>
2801      <td>
2802      <center><a name="strokeWidth"></a> <font size="-1">strokeWidth</font></center>
2803      </td>
2804      <td><font size="-1">double</font></td>
2805      <td><font size="-1">void</font></td>
2806      <td><font size="-1">double strokeWidth_</font></td>
2807      <td><font size="-1">Stroke width for use when drawing vector
2808objects (default one)</font></td>
2809    </tr>
2810    <tr>
2811      <td>
2812      <center><a name="strokePattern"></a> <font size="-1">strokePattern</font></center>
2813      </td>
2814      <td><font size="-1">Image</font></td>
2815      <td><font size="-1">void</font></td>
2816      <td><font size="-1">const Image &amp;strokePattern_</font></td>
2817      <td><font size="-1">Pattern image to use while drawing object
2818stroke (outlines).</font></td>
2819    </tr>
2820    <tr>
2821      <td>
2822      <center><a name="subImage"></a> <font size="-1">subImage</font></center>
2823      </td>
2824      <td><font size="-1">size_t</font></td>
2825      <td><font size="-1">void</font></td>
2826      <td><font size="-1">size_t subImage_</font></td>
2827      <td><font size="-1">Subimage of an image sequence</font></td>
2828    </tr>
2829    <tr>
2830      <td>
2831      <center><a name="subRange"></a> <font size="-1">subRange</font></center>
2832      </td>
2833      <td><font size="-1">size_t</font></td>
2834      <td><font size="-1">void</font></td>
2835      <td><font size="-1">size_t subRange_</font></td>
2836      <td><font size="-1">Number of images relative to the base image</font></td>
2837    </tr>
2838    <tr>
2839      <td valign="middle">
2840      <div style="text-align:center"><a name="textEncoding"></a> <small>textEncoding</small><br />
2841      </div>
2842      </td>
2843      <td valign="middle"><small>string</small><small><br />
2844      </small></td>
2845      <td valign="middle"><small>void</small><small><br />
2846      </small></td>
2847      <td valign="middle"><small>const std::string &amp;encoding_</small><small><br />
2848      </small></td>
2849      <td valign="top"><small>Specify the code set to use for text
2850annotations. The only character encoding which may be specified at
2851this time is "UTF-8" for representing </small><small><a
2852 href="http://www.unicode.org/"> Unicode </a> </small><small>as a
2853sequence of bytes. Specify an empty string to use the default ASCII
2854encoding. Successful text annotation using Unicode may require fonts
2855designed to support Unicode.</small><br />
2856      </td>
2857    </tr>
2858    <tr>
2859      <td>
2860      <center><a name="tileName"></a> <font size="-1">tileName</font></center>
2861      </td>
2862      <td><font size="-1">string</font></td>
2863      <td><font size="-1">void</font></td>
2864      <td><font size="-1">const string &amp;tileName_</font></td>
2865      <td><font size="-1">Tile name</font></td>
2866    </tr>
2867    <tr>
2868      <td>
2869      <center><a name="totalColors"></a> <font size="-1">totalColors</font></center>
2870      </td>
2871      <td><font size="-1">size_t</font></td>
2872      <td><font size="-1">void</font></td>
2873      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2874      <td><font size="-1">Number of colors in the image</font></td>
2875    </tr>
2876    <tr>
2877      <td>
2878      <center><a name="type"></a> <font size="-1">type</font></center>
2879      </td>
2880      <td><font size="-1"><a href="Enumerations.html#ImageType">ImageType</a>
2881      </font></td>
2882      <td><font size="-1">void</font></td>
2883      <td bgcolor="#ffffff"><font size="-1"><a
2884 href="Enumerations.html#ImageType"> ImageType</a> </font></td>
2885      <td><font size="-1">Image type.</font></td>
2886    </tr>
2887    <tr>
2888      <td>
2889      <center><a name="verbose"></a> <font size="-1">verbose</font></center>
2890      </td>
2891      <td><font size="-1">bool</font></td>
2892      <td><font size="-1">void</font></td>
2893      <td><font size="-1">bool verboseFlag_</font></td>
2894      <td><font size="-1">Print detailed information about the image</font></td>
2895    </tr>
2896    <tr>
2897      <td>
2898      <center><a name="view"></a> <font size="-1">view</font></center>
2899      </td>
2900      <td><font size="-1">string</font></td>
2901      <td><font size="-1">void</font></td>
2902      <td><font size="-1">const string &amp;view_</font></td>
2903      <td><font size="-1">FlashPix viewing parameters.</font></td>
2904    </tr>
2905    <tr>
2906      <td>
2907      <center><a name="virtualPixelMethod"></a> <font size="-1">virtualPixelMethod</font></center>
2908      </td>
2909      <td><font size="-1"><a href="Enumerations.html#VirtualPixelMethod">VirtualPixelMethod</a>
2910      </font></td>
2911      <td><small><font size="-1"><small>void</small></font></small></td>
2912      <td><small><font size="-1"><small><a
2913 href="Enumerations.html#VirtualPixelMethod">VirtualPixelMethod</a>
2914virtualPixelMethod_</small></font></small></td>
2915      <td><font size="-1">Image virtual pixel method.</font></td>
2916    </tr>
2917    <tr>
2918      <td>
2919      <center><a name="x11Display"></a> <font size="-1">x11Display</font></center>
2920      </td>
2921      <td><font size="-1">string (e.g. "hostname:0.0")</font></td>
2922      <td><font size="-1">void</font></td>
2923      <td><font size="-1">const string &amp;display_</font></td>
2924      <td><font size="-1">X11 display to display to, obtain fonts from,
2925or to capture image from</font></td>
2926    </tr>
2927    <tr>
2928      <td>
2929      <center><a name="xResolution"></a> <font size="-1">xResolution</font></center>
2930      </td>
2931      <td><font size="-1">double</font></td>
2932      <td><font size="-1">void</font></td>
2933      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2934      <td><font size="-1">x resolution of the image</font></td>
2935    </tr>
2936    <tr>
2937      <td>
2938      <center><a name="yResolution"></a> <font size="-1">yResolution</font></center>
2939      </td>
2940      <td><font size="-1">double</font></td>
2941      <td><font size="-1">void</font></td>
2942      <td bgcolor="#666666"><font size="-1">&#160;</font></td>
2943      <td><font size="-1">y resolution of the image</font></td>
2944    </tr>
2945  </tbody>
2946</table>
2947<center>
2948<h3> <a name="Raw Image Pixel Access"></a> Low-Level Image Pixel Access</h3>
2949</center>
2950Image pixels (of type <i><a href="Quantum.html">Quantum</a> </i>)
2951may be accessed directly via the <i>Image Pixel Cache</i> .&#160; The
2952image pixel cache is a rectangular window into the actual image pixels
2953(which may be in memory, memory-mapped from a disk file, or entirely on
2954disk). Two interfaces exist to access the <i>Image Pixel Cache.</i>
2955The
2956interface described here (part of the <i>Image</i> class) supports
2957only
2958one view at a time. See the <i><a href="Pixels.html">Pixels</a> </i>
2959class for a more abstract interface which supports simultaneous pixel
2960views (up to the number of rows). As an analogy, the interface
2961described
2962here relates to the <i><a href="Pixels.html">Pixels</a> </i> class as
2963stdio's gets() relates to fgets(). The <i><a href="Pixels.html"> Pixels</a>
2964</i>class provides the more general form of the interface.
2965<p>Obtain existing image pixels via <i>getPixels()</i>. Create a new
2966pixel region using <i>setPixels().</i></p>
2967<p>In order to ensure that only the current generation of the image is
2968modified, the Image's <a href="Image++.html#modifyImage">modifyImage()</a> method
2969should be invoked to reduce the reference count on the underlying image
2970to one. If this is not done, then it is possible for a previous
2971generation of the image to be modified due to the use of reference
2972counting when copying or constructing an Image.<br />
2973</p>
2974<p>Depending on the capabilities of the operating system, and the
2975relationship of the window to the image, the pixel cache may be a copy
2976of the pixels in the selected window, or it may be the actual image
2977pixels. In any case calling <i>syncPixels()</i> insures that the base
2978image is updated with the contents of the modified pixel cache. The
2979method <i> readPixels()</i> supports copying foreign pixel data
2980formats
2981into the pixel cache according to the <i>QuantumTypes</i>. The method <i>writePixels()</i>
2982supports copying the pixels in the cache to a foreign pixel
2983representation according to the format specified by <i>QuantumTypes</i>.</p>
2984<p>The pixel region is effectively a small image in which the pixels
2985may be accessed, addressed, and updated, as shown in the following
2986example:</p>
2987<pre class="code">
2988<img class="icon" src="Cache.png" name="Graphic1" width="254" border="0" alt="cache" />
2989Image image("cow.png");
2990// Ensure that there are no other references to this image.
2991image.modifyImage();
2992// Set the image type to TrueColor DirectClass representation.
2993image.type(TrueColorType);
2994// Request pixel region with size 60x40, and top origin at 20x30
2995ssize_t columns = 60;
2996Quantum *pixel_cache = image.getPixels(20,30,columns,40);
2997// Set pixel at column 5, and row 10 in the pixel cache to red.
2998ssize_t column = 5;
2999ssize_t row = 10;
3000Quantum *pixel = pixel_cache+row*columns+column;
3001*pixel = Color("red");
3002// Save changes to underlying image .
3003image.syncPixels();
3004  // Save updated image to file.
3005image.write("horse.png");
3006</pre>
3007<p>The image cache supports the following methods: <br />
3008&#160;</p>
3009<table border="1" width="100%">
3010  <caption>Image Cache Methods</caption> <tbody>
3011    <tr>
3012      <td>
3013      <center><b>Method</b></center>
3014      </td>
3015      <td>
3016      <center><b>Returns</b></center>
3017      </td>
3018      <td>
3019      <center><b>Signature</b></center>
3020      </td>
3021      <td>
3022      <center><b>Description</b></center>
3023      </td>
3024    </tr>
3025    <tr>
3026      <td>
3027      <center><a name="getConstPixels"></a> <font size="-1">getConstPixels</font></center>
3028      </td>
3029      <td><font size="-1">const <a href="Quantum.html">Quantum</a>
3030*</font></td>
3031      <td><font size="-1">const ssize_t x_, const ssize_t y_, const size_t
3032columns_, const size_t rows_</font></td>
3033      <td><font size="-1">Transfers pixels from the image to the pixel
3034cache as defined by the specified rectangular region.&#160;</font><font
3035 size="-1">The returned pointer remains valid until the next getPixel,
3036getConstPixels, or setPixels call and should never be deallocated by
3037the
3038user.</font></td>
3039    </tr>
3040    <tr>
3041      <td>
3042      <center><a name="getConstIndexes"></a> <font size="-1">getConstIndexes</font></center>
3043      </td>
3044      <td><font size="-1">const IndexPacket*</font></td>
3045      <td><font size="-1">void</font></td>
3046      <td><font size="-1">Returns a pointer to the Image pixel indexes
3047corresponding to a previous </font><font size="-1">getPixel,
3048getConstPixels, or setPixels call. &#160;</font><font size="-1">The
3049returned pointer remains valid until the next getPixel, getConstPixels,
3050or setPixels call and should never be deallocated by the user.</font><font
3051 size="-1"> Only valid for PseudoClass images or CMYKA images. The
3052pixel indexes represent an array of type IndexPacket, with each entry
3053corresponding to an x,y pixel position. For PseudoClass images, the
3054entry's value is the offset into the colormap (see <a href="Image++.html#colorMap">colorMap</a>
3055) for that pixel. For CMYKA images, the indexes are used to contain the
3056alpha channel.</font></td>
3057    </tr>
3058    <tr>
3059      <td>
3060      <center><a name="getIndexes"></a> <font size="-1">getIndexes</font></center>
3061      </td>
3062      <td><font size="-1">IndexPacket*</font></td>
3063      <td><font size="-1">void</font></td>
3064      <td><font size="-1">Returns a pointer to the Image pixel indexes
3065corresponding to the pixel region requested by the last <a
3066 href="Image++.html#getConstPixels">getConstPixels</a> , <a href="Image++.html#getPixels">getPixels</a>
3067, or <a href="Image++.html#setPixels">setPixels</a> call. </font><font
3068 size="-1">The
3069returned pointer remains valid until the next getPixel, getConstPixels,
3070or setPixels call and should never be deallocated by the user.</font><font
3071 size="-1"> </font><font size="-1">Only valid for PseudoClass images
3072or
3073CMYKA images. The pixel indexes represent an array of type
3074IndexPacket, with each entry corresponding to a pixel x,y position. For
3075PseudoClass images, the entry's value is the offset into the colormap
3076(see <a href="Image++.html#colorMap">colorMap</a> )  for that pixel. For
3077CMYKA
3078images, the indexes are used to contain the alpha channel.</font></td>
3079    </tr>
3080    <tr>
3081      <td>
3082      <center><a name="getPixels"></a> <font size="-1">getPixels</font></center>
3083      </td>
3084      <td><font size="-1"><a href="Quantum.html">Quantum</a> *</font></td>
3085      <td><font size="-1">const ssize_t x_, const ssize_t y_, const size_t
3086columns_, const size_t rows_</font></td>
3087      <td><font size="-1">Transfers pixels from the image to the pixel
3088cache as defined by the specified rectangular region. Modified pixels
3089may be subsequently transferred back to the image via syncPixels. </font><font
3090 size="-1">The returned pointer remains valid until the next getPixel,
3091getConstPixels, or setPixels call and should never be deallocated by
3092the
3093user.</font><font size="-1"></font></td>
3094    </tr>
3095    <tr>
3096      <td>
3097      <center><a name="setPixels"></a> <font size="-1">setPixels</font></center>
3098      </td>
3099      <td><font size="-1"><a href="Quantum.html">Quantum</a> *</font></td>
3100      <td><font size="-1">const ssize_t x_, const ssize_t y_, const size_t
3101columns_, const size_t rows_</font></td>
3102      <td><font size="-1">Allocates a pixel cache region to store image
3103pixels as defined by the region rectangle.&#160; This area is
3104subsequently transferred from the pixel cache to the image via
3105syncPixels.&#160;</font><font size="-1">The returned pointer remains
3106valid until the next getPixel, getConstPixels, or setPixels call and
3107should never be deallocated by the user.</font></td>
3108    </tr>
3109    <tr>
3110      <td>
3111      <center><a name="syncPixels"></a> <font size="-1">syncPixels</font></center>
3112      </td>
3113      <td><font size="-1">void</font></td>
3114      <td><font size="-1">void</font></td>
3115      <td><font size="-1">Transfers the image cache pixels to the image.</font></td>
3116    </tr>
3117    <tr>
3118      <td>
3119      <center><a name="readPixels"></a> <font size="-1">readPixels</font></center>
3120      </td>
3121      <td><font size="-1">void</font></td>
3122      <td><font size="-1"><a href="Enumerations.html#QuantumTypes">QuantumTypes</a>
3123quantum_, unsigned char *source_,</font></td>
3124      <td><font size="-1">Transfers one or more pixel components from a
3125buffer or file into the image pixel cache of an image. ReadPixels is
3126typically used to support image decoders. The region transferred
3127corresponds to the region set by a preceding setPixels call.</font></td>
3128    </tr>
3129    <tr>
3130      <td>
3131      <center><a name="writePixels"></a> <font size="-1">writePixels</font></center>
3132      </td>
3133      <td><font size="-1">void</font></td>
3134      <td><font size="-1"><a href="Enumerations.html#QuantumTypes">QuantumTypes</a>
3135quantum_, unsigned char *destination_</font></td>
3136      <td><font size="-1">Transfers one or more pixel components from
3137the image pixel cache to a buffer or file. WritePixels is typically
3138used to support image encoders. The region transferred corresponds to
3139the region set by a preceding getPixels or getConstPixels call.</font></td>
3140    </tr>
3141  </tbody>
3142</table>
3143</div>
3144</body>
3145</html>
3146