<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; $TOC = array(); $TOC_DEPRECATED = array(); $PARENTS = array(); include_once dirname(__FILE__) ."/toc/class.imagick.inc"; $setup = array ( 'home' => array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'imagick.getiteratorindex.php', 1 => 'Imagick::getIteratorIndex', 2 => 'Gets the index of the current active image', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.getinterlacescheme.php', 1 => 'Imagick::getInterlaceScheme', ), 'next' => array ( 0 => 'imagick.getnumberimages.php', 1 => 'Imagick::getNumberImages', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/getiteratorindex.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?> <div id="imagick.getiteratorindex" class="refentry"> <div class="refnamediv"> <h1 class="refname">Imagick::getIteratorIndex</h1> <p class="verinfo">(PECL imagick 2, PECL imagick 3)</p><p class="refpurpose"><span class="refname">Imagick::getIteratorIndex</span> — <span class="dc-title">Gets the index of the current active image</span></p> </div> <div class="refsect1 description" id="refsect1-imagick.getiteratorindex-description"> <h3 class="title">Beschreibung</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>Imagick::getIteratorIndex</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div> <p class="para rdfs-comment"> Returns the index of the current active image within the Imagick object. Diese Funktion ist verfügbar, wenn Imagick gegen die ImageMagick-Version 6.2.9 oder höher kompiliert wurde. </p> </div> <div class="refsect1 parameters" id="refsect1-imagick.getiteratorindex-parameters"> <h3 class="title">Parameter-Liste</h3> <p class="para">Diese Funktion besitzt keine Parameter.</p> </div> <div class="refsect1 returnvalues" id="refsect1-imagick.getiteratorindex-returnvalues"> <h3 class="title">Rückgabewerte</h3> <p class="para"> Returns an integer containing the index of the image in the stack. </p> </div> <div class="refsect1 errors" id="refsect1-imagick.getiteratorindex-errors"> <h3 class="title">Fehler/Exceptions</h3> <p class="para"> Wirft ImagickException bei Fehlern. </p> </div> <div class="refsect1 examples" id="refsect1-imagick.getiteratorindex-examples"> <h3 class="title">Beispiele</h3> <p class="para"> <div class="example" id="example-3014"> <p><strong>Beispiel #1 Using <span class="function"><strong>Imagick::getIteratorIndex()</strong></span>:</strong></p> <div class="example-contents"><p> Create images, set and get the iterator index </p></div> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB"><?php<br />$im </span><span style="color: #007700">= new </span><span style="color: #0000BB">Imagick</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$im</span><span style="color: #007700">-></span><span style="color: #0000BB">newImage</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">, </span><span style="color: #0000BB">100</span><span style="color: #007700">, new </span><span style="color: #0000BB">ImagickPixel</span><span style="color: #007700">(</span><span style="color: #DD0000">"red"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">$im</span><span style="color: #007700">-></span><span style="color: #0000BB">newImage</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">, </span><span style="color: #0000BB">100</span><span style="color: #007700">, new </span><span style="color: #0000BB">ImagickPixel</span><span style="color: #007700">(</span><span style="color: #DD0000">"green"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">$im</span><span style="color: #007700">-></span><span style="color: #0000BB">newImage</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">, </span><span style="color: #0000BB">100</span><span style="color: #007700">, new </span><span style="color: #0000BB">ImagickPixel</span><span style="color: #007700">(</span><span style="color: #DD0000">"blue"</span><span style="color: #007700">));<br /><br /></span><span style="color: #0000BB">$im</span><span style="color: #007700">-></span><span style="color: #0000BB">setIteratorIndex</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$im</span><span style="color: #007700">-></span><span style="color: #0000BB">getIteratorIndex</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?></span></span></code></div> </div> </div> </p> </div> <div class="refsect1 seealso" id="refsect1-imagick.getiteratorindex-seealso"> <h3 class="title">Siehe auch</h3> <p class="para"> <ul class="simplelist"> <li><span class="function"><a href="imagick.setiteratorindex.php" class="function" rel="rdfs-seeAlso">Imagick::setIteratorIndex()</a> - Set the iterator position</span></li> <li><span class="function"><a href="imagick.getimageindex.php" class="function" rel="rdfs-seeAlso">Imagick::getImageIndex()</a> - Gets the index of the current active image</span></li> <li><span class="function"><a href="imagick.setimageindex.php" class="function" rel="rdfs-seeAlso">Imagick::setImageIndex()</a> - Set the iterator position</span></li> </ul> </p> </div> </div><?php manual_footer($setup); ?>