Debian Codegraph @

www/api/Image++.html

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