1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
\r
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
\r
5 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />
\r
6 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />
\r
7 <style type="text/css" media="screen,projection"><!--
\r
8 @import url("../../www/magick.css");
\r
10 <link rel="shortcut icon" href="../../images/wand.ico" type="images/vnd.microsoft.icon"/>
11 <title>ImageMagick: MagickWand, C API for ImageMagick: Pixel Iterator Methods</title>
12 <meta http-equiv="Content-Language" content="en-US"/>
13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
14 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
15 <meta name="Generator" content="PHP"/>
16 <meta name="Keywords" content="magickwc, api, for, imagemagick:, pixel, iterator, methods, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing"/>
17 <meta name="Description" content="ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically."/>
18 <meta name="Rating" content="GENERAL"/>
19 <meta name="Robots" content="INDEX, FOLLOW"/>
20 <meta name="Generator" content="ImageMagick Studio LLC"/>
21 <meta name="Author" content="ImageMagick Studio LLC"/>
22 <meta name="Revisit-after" content="2 DAYS"/>
23 <meta name="Resource-type" content="document"/>
24 <meta name="Copyright" content="Copyright (c) 1999-2009 ImageMagick Studio LLC"/>
25 <meta name="Distribution" content="Global"/>
28 <body id="www-imagemagick-org">
\r
29 <div class="titlebar">
\r
30 <a href="../../index.html">
\r
31 <img src="../../images/script.png" alt="[ImageMagick]"
\r
32 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
33 <a href="http://www.networkredux.com">
\r
34 <img src="../../images/networkredux.png" alt="[sponsor]"
\r
35 style="margin: 45px auto; border: 0px; float: left;" /></a>
\r
36 <a href="http://www.imagemagick.org/discourse-server/">
\r
37 <img src="../../images/logo.jpg" alt=""
\r
38 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
39 <a href="../../index.html">
\r
40 <img src="../../images/sprite.jpg" alt=""
\r
41 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
44 <div class="eastbar">
\r
47 <a href="../../index.html">About ImageMagick</a>
49 <div class="sep"></div>
\r
51 <a href="../../www/command-line-tools.html">Command-line Tools</a>
54 <a href="../../www/command-line-processing.html">Processing</a>
57 <a href="../../www/command-line-options.html">Options</a>
60 <a href="http://www.imagemagick.org/Usage/">Usage</a>
63 <a href="../../www/api.html">Program Interfaces</a>
66 <a href="../../www/magick-wand.html">MagickWand</a>
69 <a href="../../www/magick-core.html">MagickCore</a>
72 <a href="../../www/perl-magick.html">PerlMagick</a>
75 <a href="../../Magick++/">Magick++</a>
78 <a href="../../www/architecture.html">Architecture</a>
80 <div class="sep"></div>
\r
82 <a href="../../www/install-source.html">Install from Source</a>
85 <a href="../../www/install-source.html#unix">Unix</a>
88 <a href="../../www/install-source.html#windows">Windows</a>
91 <a href="../../www/binary-releases.html">Binary Releases</a>
94 <a href="../../www/binary-releases.html#unix">Unix</a>
97 <a href="../../www/binary-releases.html#macosx">Mac OS X</a>
100 <a href="../../www/binary-releases.html#windows">Windows</a>
103 <a href="../../www/resources.html">Resources</a>
105 <div class="sep"></div>
\r
107 <a href="../../www/download.html">Download</a>
109 <div class="sep"></div>
\r
111 <a href="../http://www.imagemagick.org/script/search.php">Search</a>
113 <div class="sep"></div>
\r
115 <a href="../../www/sitemap.html">Site Map</a>
118 <a href="../../www/links.html">Links</a>
120 <div class="sep"></div>
\r
122 <a href="../../www/sponsors.html">Sponsors:</a>
124 <div class="sponsbox">
125 <div class="sponsor">
126 <a href="http://www.abi-stoff.de/abizeitung/" title="Abibuch">Abizeitung</a><!-- 20090501000200 -->
128 <div class="sponsor">
129 <a href="http://www.print24.de/">Druckerei</a><!-- 201009010720 -->
131 <div class="sponsor">
132 <a href="http://www.goyax.de">Börse</a><!-- 201001000240 Gewiese digital-finance.de -->
134 <div class="sponsor">
135 <a href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012001200 allesdruck.de-->
137 <div class="sponsor">
138 <a href="http://www.blumenversender.com">Blumenversand</a><!-- 200911010120 -->
140 <div class="sponsor">
141 <a href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 201002010000 -->
143 <div class="sponsor">
144 <a href="http://www.online-kredit-index.de">Kredit</a><!-- 201002010120 Buchhorn -->
154 <p class="navigation-index">[<a href="#ClearPixelIterator">ClearPixelIterator</a> • <a href="#ClonePixelIterator">ClonePixelIterator</a> • <a href="#DestroyPixelIterator">DestroyPixelIterator</a> • <a href="#IsPixelIterator">IsPixelIterator</a> • <a href="#NewPixelIterator">NewPixelIterator</a> • <a href="#PixelClearIteratorException">PixelClearIteratorException</a> • <a href="#NewPixelRegionIterator">NewPixelRegionIterator</a> • <a href="#PixelGetCurrentIteratorRow">PixelGetCurrentIteratorRow</a> • <a href="#PixelGetIteratorException">PixelGetIteratorException</a> • <a href="#PixelGetIteratorExceptionType">PixelGetIteratorExceptionType</a> • <a href="#PixelGetIteratorRow">PixelGetIteratorRow</a> • <a href="#PixelGetNextIteratorRow">PixelGetNextIteratorRow</a> • <a href="#PixelGetPreviousIteratorRow">PixelGetPreviousIteratorRow</a> • <a href="#PixelResetIterator">PixelResetIterator</a> • <a href="#PixelSetFirstIteratorRow">PixelSetFirstIteratorRow</a> • <a href="#PixelSetIteratorRow">PixelSetIteratorRow</a> • <a href="#PixelSetLastIteratorRow">PixelSetLastIteratorRow</a> • <a href="#PixelSyncIterator">PixelSyncIterator</a>]</p>
156 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
157 _8c.html" target="source" name="ClearPixelIterator">ClearPixelIterator</a></h2>
158 <div class="doc-section">
160 <p>ClearPixelIterator() clear resources associated with a PixelIterator.</p></ol>
162 <p>The format of the ClearPixelIterator method is:</p>
165 PixelIterator *ClearPixelIterator(PixelIterator *iterator)
168 <p>A description of each parameter follows:</p></ol>
171 <ol><p>the pixel iterator.</p></ol>
174 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
175 _8c.html" target="source" name="ClonePixelIterator">ClonePixelIterator</a></h2>
176 <div class="doc-section">
178 <p>ClonePixelIterator() makes an exact copy of the specified iterator.</p></ol>
180 <p>The format of the ClonePixelIterator method is:</p>
183 PixelIterator *ClonePixelIterator(const PixelIterator *iterator)
186 <p>A description of each parameter follows:</p></ol>
189 <ol><p>the magick iterator.</p></ol>
192 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
193 _8c.html" target="source" name="DestroyPixelIterator">DestroyPixelIterator</a></h2>
194 <div class="doc-section">
196 <p>DestroyPixelIterator() deallocates resources associated with a PixelIterator.</p></ol>
198 <p>The format of the DestroyPixelIterator method is:</p>
201 PixelIterator *DestroyPixelIterator(PixelIterator *iterator)
204 <p>A description of each parameter follows:</p></ol>
207 <ol><p>the pixel iterator.</p></ol>
210 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
211 _8c.html" target="source" name="IsPixelIterator">IsPixelIterator</a></h2>
212 <div class="doc-section">
214 <p>IsPixelIterator() returns MagickTrue if the iterator is verified as a pixel iterator.</p></ol>
216 <p>The format of the IsPixelIterator method is:</p>
219 MagickBooleanType IsPixelIterator(const PixelIterator *iterator)
222 <p>A description of each parameter follows:</p></ol>
225 <ol><p>the magick iterator.</p></ol>
228 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
229 _8c.html" target="source" name="NewPixelIterator">NewPixelIterator</a></h2>
230 <div class="doc-section">
232 <p>NewPixelIterator() returns a new pixel iterator.</p></ol>
234 <p>The format of the NewPixelIterator method is:</p>
237 PixelIterator NewPixelIterator(MagickWand *wand)
240 <p>A description of each parameter follows:</p></ol>
243 <ol><p>the magick wand.</p></ol>
246 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
247 _8c.html" target="source" name="PixelClearIteratorException">PixelClearIteratorException</a></h2>
248 <div class="doc-section">
250 <p>PixelClearIteratorException() clear any exceptions associated with the iterator.</p></ol>
252 <p>The format of the PixelClearIteratorException method is:</p>
255 MagickBooleanType PixelClearIteratorException(PixelIterator *wand)
258 <p>A description of each parameter follows:</p></ol>
261 <ol><p>the pixel wand.</p></ol>
264 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
265 _8c.html" target="source" name="NewPixelRegionIterator">NewPixelRegionIterator</a></h2>
266 <div class="doc-section">
268 <p>NewPixelRegionIterator() returns a new pixel iterator.</p></ol>
270 <p>The format of the NewPixelRegionIterator method is:</p>
273 PixelIterator NewPixelRegionIterator(MagickWand *wand,const long x,
274 const long y,const unsigned long width,const unsigned long height)
277 <p>A description of each parameter follows:</p></ol>
280 <ol><p>the magick wand.</p></ol>
282 <h5>x,y,columns,rows</h5>
283 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
286 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
287 _8c.html" target="source" name="PixelGetCurrentIteratorRow">PixelGetCurrentIteratorRow</a></h2>
288 <div class="doc-section">
290 <p>PixelGetCurrentIteratorRow() returns the current row as an array of pixel wands from the pixel iterator.</p></ol>
292 <p>The format of the PixelGetCurrentIteratorRow method is:</p>
295 PixelWand **PixelGetCurrentIteratorRow(PixelIterator *iterator,
296 unsigned long *number_wands)
299 <p>A description of each parameter follows:</p></ol>
302 <ol><p>the pixel iterator.</p></ol>
304 <h5>number_wands</h5>
305 <ol><p>the number of pixel wands.</p></ol>
308 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
309 _8c.html" target="source" name="PixelGetIteratorException">PixelGetIteratorException</a></h2>
310 <div class="doc-section">
312 <p>PixelGetIteratorException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p></ol>
314 <p>The format of the PixelGetIteratorException method is:</p>
317 char *PixelGetIteratorException(const Pixeliterator *iterator,
318 ExceptionType *severity)
321 <p>A description of each parameter follows:</p></ol>
324 <ol><p>the pixel iterator.</p></ol>
327 <ol><p>the severity of the error is returned here.</p></ol>
330 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
331 _8c.html" target="source" name="PixelGetIteratorExceptionType">PixelGetIteratorExceptionType</a></h2>
332 <div class="doc-section">
334 <p>PixelGetIteratorExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p></ol>
336 <p>The format of the PixelGetIteratorExceptionType method is:</p>
339 ExceptionType PixelGetIteratorExceptionType(const PixelWand *wand)
342 <p>A description of each parameter follows:</p></ol>
345 <ol><p>the magick wand.</p></ol>
348 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
349 _8c.html" target="source" name="PixelGetIteratorRow">PixelGetIteratorRow</a></h2>
350 <div class="doc-section">
352 <p>PixelGetIteratorRow() returns the current pixel iterator row.</p></ol>
354 <p>The format of the PixelGetIteratorRow method is:</p>
357 MagickBooleanType PixelGetIteratorRow(PixelIterator *iterator)
360 <p>A description of each parameter follows:</p></ol>
363 <ol><p>the pixel iterator.</p></ol>
366 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
367 _8c.html" target="source" name="PixelGetNextIteratorRow">PixelGetNextIteratorRow</a></h2>
368 <div class="doc-section">
370 <p>PixelGetNextIteratorRow() returns the next row as an array of pixel wands from the pixel iterator.</p></ol>
372 <p>The format of the PixelGetNextIteratorRow method is:</p>
375 PixelWand **PixelGetNextIteratorRow(PixelIterator *iterator,
376 unsigned long *number_wands)
379 <p>A description of each parameter follows:</p></ol>
382 <ol><p>the pixel iterator.</p></ol>
384 <h5>number_wands</h5>
385 <ol><p>the number of pixel wands.</p></ol>
388 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
389 _8c.html" target="source" name="PixelGetPreviousIteratorRow">PixelGetPreviousIteratorRow</a></h2>
390 <div class="doc-section">
392 <p>PixelGetPreviousIteratorRow() returns the previous row as an array of pixel wands from the pixel iterator.</p></ol>
394 <p>The format of the PixelGetPreviousIteratorRow method is:</p>
397 PixelWand **PixelGetPreviousIteratorRow(PixelIterator *iterator,
398 unsigned long *number_wands)
401 <p>A description of each parameter follows:</p></ol>
404 <ol><p>the pixel iterator.</p></ol>
406 <h5>number_wands</h5>
407 <ol><p>the number of pixel wands.</p></ol>
410 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
411 _8c.html" target="source" name="PixelResetIterator">PixelResetIterator</a></h2>
412 <div class="doc-section">
414 <p>PixelResetIterator() resets the pixel iterator. Use it in conjunction with PixelGetNextIteratorRow() to iterate over all the pixels in a pixel container.</p></ol>
416 <p>The format of the PixelResetIterator method is:</p>
419 void PixelResetIterator(PixelIterator *iterator)
422 <p>A description of each parameter follows:</p></ol>
425 <ol><p>the pixel iterator.</p></ol>
428 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
429 _8c.html" target="source" name="PixelSetFirstIteratorRow">PixelSetFirstIteratorRow</a></h2>
430 <div class="doc-section">
432 <p>PixelSetFirstIteratorRow() sets the pixel iterator to the first pixel row.</p></ol>
434 <p>The format of the PixelSetFirstIteratorRow method is:</p>
437 void PixelSetFirstIteratorRow(PixelIterator *iterator)
440 <p>A description of each parameter follows:</p></ol>
443 <ol><p>the magick iterator.</p></ol>
446 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
447 _8c.html" target="source" name="PixelSetIteratorRow">PixelSetIteratorRow</a></h2>
448 <div class="doc-section">
450 <p>PixelSetIteratorRow() set the pixel iterator row.</p></ol>
452 <p>The format of the PixelSetIteratorRow method is:</p>
455 MagickBooleanType PixelSetIteratorRow(PixelIterator *iterator,
459 <p>A description of each parameter follows:</p></ol>
462 <ol><p>the pixel iterator.</p></ol>
465 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
466 _8c.html" target="source" name="PixelSetLastIteratorRow">PixelSetLastIteratorRow</a></h2>
467 <div class="doc-section">
469 <p>PixelSetLastIteratorRow() sets the pixel iterator to the last pixel row.</p></ol>
471 <p>The format of the PixelSetLastIteratorRow method is:</p>
474 void PixelSetLastIteratorRow(PixelIterator *iterator)
477 <p>A description of each parameter follows:</p></ol>
480 <ol><p>the magick iterator.</p></ol>
483 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-iterator
484 _8c.html" target="source" name="PixelSyncIterator">PixelSyncIterator</a></h2>
485 <div class="doc-section">
487 <p>PixelSyncIterator() syncs the pixel iterator.</p></ol>
489 <p>The format of the PixelSyncIterator method is:</p>
492 MagickBooleanType PixelSyncIterator(PixelIterator *iterator)
495 <p>A description of each parameter follows:</p></ol>
498 <ol><p>the pixel iterator.</p></ol>
505 <!-- <span id="linkbar-west"> </span> -->
\r
506 <span id="linkbar-center">
\r
507 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
508 <a href="../../www/mailing-list.html">Mailing Lists</a> •
\r
509 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
511 <span id="linkbar-east"> </span>
\r
513 <div class="footer">
\r
514 <span id="footer-west">© 1999-2009 ImageMagick Studio LLC</span>
\r
515 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
517 <div style="clear: both; margin: 0; width: 100%; "></div>
\r