Debian Codegraph @

www/api/Image++.html

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