Home | History | Annotate | Download | only in api
      1 
      2 
      3 
      4 
      5 <!DOCTYPE html>
      6 <html lang="en">
      7 <head>
      8   <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
      9     <title>ImageMagick: MagickWand, C API for ImageMagick: Pixel Iterator Methods</title>
     10   <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
     11   <meta name="application-name" content="ImageMagick"/>
     12   <meta name="description" content="ImageMagick is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bzier curves."/>
     13   <meta name="application-url" content="http://www.imagemagick.org"/>
     14   <meta name="generator" content="PHP"/>
     15   <meta name="keywords" content="magickwc, api, for, imagemagick:, pixel, iterator, methods, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/>
     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-2016 ImageMagick Studio LLC"/>
     23   <meta name="distribution" content="Global"/>
     24   <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/>
     25   <link rel="icon" href="../image/wand.png"/>
     26   <link rel="shortcut icon" href="../image/wand.ico"/>
     27   <link rel="stylesheet" href="../css/magick.php"/>
     28 </head>
     29 <body>
     30 <div class="main">
     31 <div class="magick-masthead">
     32   <div class="container">
     33     <script async="async" src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>    <ins class="adsbygoogle"
     34          style="display:block"
     35          data-ad-client="ca-pub-3129977114552745"
     36          data-ad-slot="6345125851"
     37          data-ad-format="auto"></ins>
     38     <script>
     39       (adsbygoogle = window.adsbygoogle || []).push({});
     40     </script>
     41     <nav class="magick-nav">
     42       <a class="magick-nav-item " href="../index.php">Home</a>
     43       <a class="magick-nav-item " href="../script/binary-releases.php">Download</a>
     44       <a class="magick-nav-item " href="../script/command-line-tools.php">Tools</a>
     45       <a class="magick-nav-item " href="../script/command-line-options.php">Options</a>
     46       <a class="magick-nav-item " href="../script/resources.php">Resources</a>
     47       <a class="magick-nav-item " href="../script/api.php">Develop</a>
     48       <a class="magick-nav-item " href="../script/search.php">Search</a>
     49       <a class="magick-nav-item pull-right" href="http://www.imagemagick.org/discourse-server/">Community</a>
     50     </nav>
     51   </div>
     52 </div>
     53 <div class="container">
     54 <div class="magick-header">
     55 <p class="text-center"><a href="pixel-iterator.php#ClearPixelIterator">ClearPixelIterator</a> &bull; <a href="pixel-iterator.php#ClonePixelIterator">ClonePixelIterator</a> &bull; <a href="pixel-iterator.php#DestroyPixelIterator">DestroyPixelIterator</a> &bull; <a href="pixel-iterator.php#IsPixelIterator">IsPixelIterator</a> &bull; <a href="pixel-iterator.php#NewPixelIterator">NewPixelIterator</a> &bull; <a href="pixel-iterator.php#PixelClearIteratorException">PixelClearIteratorException</a> &bull; <a href="pixel-iterator.php#NewPixelRegionIterator">NewPixelRegionIterator</a> &bull; <a href="pixel-iterator.php#PixelGetCurrentIteratorRow">PixelGetCurrentIteratorRow</a> &bull; <a href="pixel-iterator.php#PixelGetIteratorException">PixelGetIteratorException</a> &bull; <a href="pixel-iterator.php#PixelGetIteratorExceptionType">PixelGetIteratorExceptionType</a> &bull; <a href="pixel-iterator.php#PixelGetIteratorRow">PixelGetIteratorRow</a> &bull; <a href="pixel-iterator.php#PixelGetNextIteratorRow">PixelGetNextIteratorRow</a> &bull; <a href="pixel-iterator.php#PixelGetPreviousIteratorRow">PixelGetPreviousIteratorRow</a> &bull; <a href="pixel-iterator.php#PixelResetIterator">PixelResetIterator</a> &bull; <a href="pixel-iterator.php#PixelSetFirstIteratorRow">PixelSetFirstIteratorRow</a> &bull; <a href="pixel-iterator.php#PixelSetIteratorRow">PixelSetIteratorRow</a> &bull; <a href="pixel-iterator.php#PixelSetLastIteratorRow">PixelSetLastIteratorRow</a> &bull; <a href="pixel-iterator.php#PixelSyncIterator">PixelSyncIterator</a></p>
     56 
     57 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="ClearPixelIterator">ClearPixelIterator</a></h2>
     58 
     59 <p>ClearPixelIterator() clear resources associated with a PixelIterator.</p>
     60 
     61 <p>The format of the ClearPixelIterator method is:</p>
     62 
     63 <pre class="text">
     64 void ClearPixelIterator(PixelIterator *iterator)
     65 </pre>
     66 
     67 <p>A description of each parameter follows:</p>
     68 
     69 <dd>
     70 </dd>
     71 
     72 <dd> </dd>
     73 <dl class="dl-horizontal">
     74 <dt>iterator</dt>
     75 <dd>the pixel iterator. </dd>
     76 
     77 <dd>  </dd>
     78 </dl>
     79 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="ClonePixelIterator">ClonePixelIterator</a></h2>
     80 
     81 <p>ClonePixelIterator() makes an exact copy of the specified iterator.</p>
     82 
     83 <p>The format of the ClonePixelIterator method is:</p>
     84 
     85 <pre class="text">
     86 PixelIterator *ClonePixelIterator(const PixelIterator *iterator)
     87 </pre>
     88 
     89 <p>A description of each parameter follows:</p>
     90 
     91 <dd>
     92 </dd>
     93 
     94 <dd> </dd>
     95 <dl class="dl-horizontal">
     96 <dt>iterator</dt>
     97 <dd>the magick iterator. </dd>
     98 
     99 <dd>  </dd>
    100 </dl>
    101 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="DestroyPixelIterator">DestroyPixelIterator</a></h2>
    102 
    103 <p>DestroyPixelIterator() deallocates resources associated with a PixelIterator.</p>
    104 
    105 <p>The format of the DestroyPixelIterator method is:</p>
    106 
    107 <pre class="text">
    108 PixelIterator *DestroyPixelIterator(PixelIterator *iterator)
    109 </pre>
    110 
    111 <p>A description of each parameter follows:</p>
    112 
    113 <dd>
    114 </dd>
    115 
    116 <dd> </dd>
    117 <dl class="dl-horizontal">
    118 <dt>iterator</dt>
    119 <dd>the pixel iterator. </dd>
    120 
    121 <dd>  </dd>
    122 </dl>
    123 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="IsPixelIterator">IsPixelIterator</a></h2>
    124 
    125 <p>IsPixelIterator() returns MagickTrue if the iterator is verified as a pixel iterator.</p>
    126 
    127 <p>The format of the IsPixelIterator method is:</p>
    128 
    129 <pre class="text">
    130 MagickBooleanType IsPixelIterator(const PixelIterator *iterator)
    131 </pre>
    132 
    133 <p>A description of each parameter follows:</p>
    134 
    135 <dd>
    136 </dd>
    137 
    138 <dd> </dd>
    139 <dl class="dl-horizontal">
    140 <dt>iterator</dt>
    141 <dd>the magick iterator. </dd>
    142 
    143 <dd>  </dd>
    144 </dl>
    145 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="NewPixelIterator">NewPixelIterator</a></h2>
    146 
    147 <p>NewPixelIterator() returns a new pixel iterator.</p>
    148 
    149 <p>The format of the NewPixelIterator method is:</p>
    150 
    151 <pre class="text">
    152 PixelIterator *NewPixelIterator(MagickWand *wand)
    153 </pre>
    154 
    155 <p>A description of each parameter follows:</p>
    156 
    157 <dd>
    158 </dd>
    159 
    160 <dd> </dd>
    161 <dl class="dl-horizontal">
    162 <dt>wand</dt>
    163 <dd>the magick wand. </dd>
    164 
    165 <dd>  </dd>
    166 </dl>
    167 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelClearIteratorException">PixelClearIteratorException</a></h2>
    168 
    169 <p>PixelClearIteratorException() clear any exceptions associated with the iterator.</p>
    170 
    171 <p>The format of the PixelClearIteratorException method is:</p>
    172 
    173 <pre class="text">
    174 MagickBooleanType PixelClearIteratorException(PixelIterator *iterator)
    175 </pre>
    176 
    177 <p>A description of each parameter follows:</p>
    178 
    179 <dd>
    180 </dd>
    181 
    182 <dd> </dd>
    183 <dl class="dl-horizontal">
    184 <dt>iterator</dt>
    185 <dd>the pixel iterator. </dd>
    186 
    187 <dd>  </dd>
    188 </dl>
    189 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="NewPixelRegionIterator">NewPixelRegionIterator</a></h2>
    190 
    191 <p>NewPixelRegionIterator() returns a new pixel iterator.</p>
    192 
    193 <p>The format of the NewPixelRegionIterator method is:</p>
    194 
    195 <pre class="text">
    196 PixelIterator *NewPixelRegionIterator(MagickWand *wand,const ssize_t x,
    197   const ssize_t y,const size_t width,const size_t height)
    198 </pre>
    199 
    200 <p>A description of each parameter follows:</p>
    201 
    202 <dd>
    203 </dd>
    204 
    205 <dd> </dd>
    206 <dl class="dl-horizontal">
    207 <dt>wand</dt>
    208 <dd>the magick wand. </dd>
    209 
    210 <dd> </dd>
    211 <dt>x,y,columns,rows</dt>
    212 <dd> These values define the perimeter of a region of pixels. </dd>
    213 
    214 <dd>  </dd>
    215 </dl>
    216 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelGetCurrentIteratorRow">PixelGetCurrentIteratorRow</a></h2>
    217 
    218 <p>PixelGetCurrentIteratorRow() returns the current row as an array of pixel wands from the pixel iterator.</p>
    219 
    220 <p>The format of the PixelGetCurrentIteratorRow method is:</p>
    221 
    222 <pre class="text">
    223 PixelWand **PixelGetCurrentIteratorRow(PixelIterator *iterator,
    224   size_t *number_wands)
    225 </pre>
    226 
    227 <p>A description of each parameter follows:</p>
    228 
    229 <dd>
    230 </dd>
    231 
    232 <dd> </dd>
    233 <dl class="dl-horizontal">
    234 <dt>iterator</dt>
    235 <dd>the pixel iterator. </dd>
    236 
    237 <dd> </dd>
    238 <dt>number_wands</dt>
    239 <dd>the number of pixel wands. </dd>
    240 
    241 <dd>  </dd>
    242 </dl>
    243 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelGetIteratorException">PixelGetIteratorException</a></h2>
    244 
    245 <p>PixelGetIteratorException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>
    246 
    247 <p>The format of the PixelGetIteratorException method is:</p>
    248 
    249 <pre class="text">
    250 char *PixelGetIteratorException(const PixelIterator *iterator,
    251   ExceptionType *severity)
    252 </pre>
    253 
    254 <p>A description of each parameter follows:</p>
    255 
    256 <dd>
    257 </dd>
    258 
    259 <dd> </dd>
    260 <dl class="dl-horizontal">
    261 <dt>iterator</dt>
    262 <dd>the pixel iterator. </dd>
    263 
    264 <dd> </dd>
    265 <dt>severity</dt>
    266 <dd>the severity of the error is returned here. </dd>
    267 
    268 <dd>  </dd>
    269 </dl>
    270 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelGetIteratorExceptionType">PixelGetIteratorExceptionType</a></h2>
    271 
    272 <p>PixelGetIteratorExceptionType() the exception type associated with the iterator.  If no exception has occurred, UndefinedExceptionType is returned.</p>
    273 
    274 <p>The format of the PixelGetIteratorExceptionType method is:</p>
    275 
    276 <pre class="text">
    277 ExceptionType PixelGetIteratorExceptionType(
    278   const PixelIterator *iterator)
    279 </pre>
    280 
    281 <p>A description of each parameter follows:</p>
    282 
    283 <dd>
    284 </dd>
    285 
    286 <dd> </dd>
    287 <dl class="dl-horizontal">
    288 <dt>iterator</dt>
    289 <dd>the pixel iterator. </dd>
    290 
    291 <dd>  </dd>
    292 </dl>
    293 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelGetIteratorRow">PixelGetIteratorRow</a></h2>
    294 
    295 <p>PixelGetIteratorRow() returns the current pixel iterator row.</p>
    296 
    297 <p>The format of the PixelGetIteratorRow method is:</p>
    298 
    299 <pre class="text">
    300 MagickBooleanType PixelGetIteratorRow(PixelIterator *iterator)
    301 </pre>
    302 
    303 <p>A description of each parameter follows:</p>
    304 
    305 <dd>
    306 </dd>
    307 
    308 <dd> </dd>
    309 <dl class="dl-horizontal">
    310 <dt>iterator</dt>
    311 <dd>the pixel iterator. </dd>
    312 
    313 <dd>  </dd>
    314 </dl>
    315 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelGetNextIteratorRow">PixelGetNextIteratorRow</a></h2>
    316 
    317 <p>PixelGetNextIteratorRow() returns the next row as an array of pixel wands from the pixel iterator.</p>
    318 
    319 <p>The format of the PixelGetNextIteratorRow method is:</p>
    320 
    321 <pre class="text">
    322 PixelWand **PixelGetNextIteratorRow(PixelIterator *iterator,
    323   size_t *number_wands)
    324 </pre>
    325 
    326 <p>A description of each parameter follows:</p>
    327 
    328 <dd>
    329 </dd>
    330 
    331 <dd> </dd>
    332 <dl class="dl-horizontal">
    333 <dt>iterator</dt>
    334 <dd>the pixel iterator. </dd>
    335 
    336 <dd> </dd>
    337 <dt>number_wands</dt>
    338 <dd>the number of pixel wands. </dd>
    339 
    340 <dd>  </dd>
    341 </dl>
    342 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelGetPreviousIteratorRow">PixelGetPreviousIteratorRow</a></h2>
    343 
    344 <p>PixelGetPreviousIteratorRow() returns the previous row as an array of pixel wands from the pixel iterator.</p>
    345 
    346 <p>The format of the PixelGetPreviousIteratorRow method is:</p>
    347 
    348 <pre class="text">
    349 PixelWand **PixelGetPreviousIteratorRow(PixelIterator *iterator,
    350   size_t *number_wands)
    351 </pre>
    352 
    353 <p>A description of each parameter follows:</p>
    354 
    355 <dd>
    356 </dd>
    357 
    358 <dd> </dd>
    359 <dl class="dl-horizontal">
    360 <dt>iterator</dt>
    361 <dd>the pixel iterator. </dd>
    362 
    363 <dd> </dd>
    364 <dt>number_wands</dt>
    365 <dd>the number of pixel wands. </dd>
    366 
    367 <dd>  </dd>
    368 </dl>
    369 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelResetIterator">PixelResetIterator</a></h2>
    370 
    371 <p>PixelResetIterator() resets the pixel iterator.  Use it in conjunction with PixelGetNextIteratorRow() to iterate over all the pixels in a pixel container.</p>
    372 
    373 <p>The format of the PixelResetIterator method is:</p>
    374 
    375 <pre class="text">
    376 void PixelResetIterator(PixelIterator *iterator)
    377 </pre>
    378 
    379 <p>A description of each parameter follows:</p>
    380 
    381 <dd>
    382 </dd>
    383 
    384 <dd> </dd>
    385 <dl class="dl-horizontal">
    386 <dt>iterator</dt>
    387 <dd>the pixel iterator. </dd>
    388 
    389 <dd>  </dd>
    390 </dl>
    391 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelSetFirstIteratorRow">PixelSetFirstIteratorRow</a></h2>
    392 
    393 <p>PixelSetFirstIteratorRow() sets the pixel iterator to the first pixel row.</p>
    394 
    395 <p>The format of the PixelSetFirstIteratorRow method is:</p>
    396 
    397 <pre class="text">
    398 void PixelSetFirstIteratorRow(PixelIterator *iterator)
    399 </pre>
    400 
    401 <p>A description of each parameter follows:</p>
    402 
    403 <dd>
    404 </dd>
    405 
    406 <dd> </dd>
    407 <dl class="dl-horizontal">
    408 <dt>iterator</dt>
    409 <dd>the magick iterator. </dd>
    410 
    411 <dd>  </dd>
    412 </dl>
    413 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelSetIteratorRow">PixelSetIteratorRow</a></h2>
    414 
    415 <p>PixelSetIteratorRow() set the pixel iterator row.</p>
    416 
    417 <p>The format of the PixelSetIteratorRow method is:</p>
    418 
    419 <pre class="text">
    420 MagickBooleanType PixelSetIteratorRow(PixelIterator *iterator,
    421   const ssize_t row)
    422 </pre>
    423 
    424 <p>A description of each parameter follows:</p>
    425 
    426 <dd>
    427 </dd>
    428 
    429 <dd> </dd>
    430 <dl class="dl-horizontal">
    431 <dt>iterator</dt>
    432 <dd>the pixel iterator. </dd>
    433 
    434 <dd>  </dd>
    435 </dl>
    436 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelSetLastIteratorRow">PixelSetLastIteratorRow</a></h2>
    437 
    438 <p>PixelSetLastIteratorRow() sets the pixel iterator to the last pixel row.</p>
    439 
    440 <p>The format of the PixelSetLastIteratorRow method is:</p>
    441 
    442 <pre class="text">
    443 void PixelSetLastIteratorRow(PixelIterator *iterator)
    444 </pre>
    445 
    446 <p>A description of each parameter follows:</p>
    447 
    448 <dd>
    449 </dd>
    450 
    451 <dd> </dd>
    452 <dl class="dl-horizontal">
    453 <dt>iterator</dt>
    454 <dd>the magick iterator. </dd>
    455 
    456 <dd>  </dd>
    457 </dl>
    458 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-iterator_8c.html" id="PixelSyncIterator">PixelSyncIterator</a></h2>
    459 
    460 <p>PixelSyncIterator() syncs the pixel iterator.</p>
    461 
    462 <p>The format of the PixelSyncIterator method is:</p>
    463 
    464 <pre class="text">
    465 MagickBooleanType PixelSyncIterator(PixelIterator *iterator)
    466 </pre>
    467 
    468 <p>A description of each parameter follows:</p>
    469 
    470 <dd>
    471 </dd>
    472 
    473 <dd> </dd>
    474 <dl class="dl-horizontal">
    475 <dt>iterator</dt>
    476 <dd>the pixel iterator. </dd>
    477 
    478 <dd>  </dd>
    479 </dl>
    480 </div>
    481   <footer class="magick-footer">
    482     <p><a href="../script/support.php">Donate</a> 
    483      <a href="../script/sitemap.php">Sitemap</a> 
    484     <a href="../script/links.php">Related</a> 
    485     <a href="../script/architecture.php">Architecture</a>
    486 </p>
    487     <p><a href="pixel-iterator.php#">Back to top</a> 
    488     <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> 
    489     <a href="../script/contact.php">Contact Us</a></p>
    490         <p><small>  1999-2016 ImageMagick Studio LLC</small></p>
    491   </footer>
    492 </div><!-- /.container -->
    493 
    494   <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    495   <script src="http://nextgen.imagemagick.org/js/magick.php"></script>
    496 </div>
    497 </body>
    498 </html>
    499