PHP | ImagickPixelIterator setIteratorLastRow() Function Last Updated : 14 Jan, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report The ImagickPixelIterator::setIteratorLastRow() function is an inbuilt function in PHP which is used to set the pixel iterator to the last pixel row. Syntax: bool ImagickPixelIterator::setIteratorLastRow( void ) Parameters: This function doesn’t accepts any parameters. Return Value: This function returns TRUE on success. Below programs illustrate the ImagickPixelIterator::setIteratorLastRow() function in PHP: Program 1: php <?php // Create a new imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png'); // Get the pixel iterator $pixelIterator = $imagick->getPixelIterator(); // Get the current iterator row echo "Current row is " . $pixelIterator->getIteratorRow(); // Set the iterator to last row $pixelIterator->setIteratorLastRow(); // Get the current iterator row echo "<br>Current row is " . $pixelIterator->getIteratorRow(); ?> Output: Current row is 0 Current row is 183 Program 2: php <?php // Create a new imagick object $imagick = new Imagick(); // Create a image on imagick object $imagick->newImage(800, 250, 'black'); // Get the pixel iterator $pixelIterator = $imagick->getPixelIterator(); // Set the iterator to last row $pixelIterator->setIteratorLastRow(); $row = $pixelIterator->getIteratorRow() + 1; echo "<br>Total number of rows in image is " . $row; ?> Output: Total number of rows in image is 250 Reference: https://www.php.net/manual/en/imagickpixeliterator.setiteratorlastrow.php Comment More infoAdvertise with us Next Article PHP | ImagickPixelIterator syncIterator() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | ImagickPixelIterator setIteratorRow() function The ImagickPixelIterator::setIteratorRow() function is an inbuilt function in PHP which is used to set the pixel iterator row. This function is used to move to any row in the current image pixels. Syntax: bool ImagickPixelIterator::setIteratorRow( int $row ) Parameters:This function accepts a single 2 min read PHP | ImagickPixelIterator setIteratorFirstRow() Function The ImagickPixelIterator::setIteratorFirstRow() function is an inbuilt function in PHP which is used to set the pixel iterator to the first pixel row. Syntax: bool ImagickPixelIterator::setIteratorFirstRow( void ) Parameters: This function doesnât accepts any parameter. Return Value: This function r 2 min read PHP | ImagickPixelIterator resetIterator() Function The ImagickPixelIterator::resetIterator() function is an inbuilt function in PHP which is used to reset the pixel iterator. Syntax: bool ImagickPixelIterator::resetIterator( void ) Parameters:This function doesnât accepts any parameter. Return Value: This function returns TRUE on success. Below prog 2 min read PHP | ImagickPixelIterator syncIterator() Function The ImagickPixelIterator::syncIterator() function is an inbuilt function in PHP which is used to sync the pixel iterator. Syntax: bool ImagickPixelIterator::syncIterator( void ) Parameters:This function doesnât accepts any parameter. Return Value: This function returns TRUE on success. Exceptions: T 2 min read PHP | ImagickPixelIterator newPixelRegionIterator() Function The ImagickPixelIterator::newPixelRegionIterator() function is an inbuilt function in PHP which is used to get a new pixel iterator from a specific region from the imagick wand. Syntax: bool ImagickPixelIterator::newPixelRegionIterator( Imagick $wand, int $x, int $y, int $columns, int $rows ) Parame 2 min read PHP | ImagickPixel setColor() function The ImagickPixel::setColor() function is an inbuilt function in PHP which is used to set the color of the ImagickPixel object. Syntax: bool ImagickPixel::setColor( string $color ) Parameters:This function accepts a single parameter $color which holds the color. Return Value: This function returns TR 1 min read Like