Debian Codegraph @

www/api/Image++.html

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