Horde_Image_Base::getImageAtIndex PHP Method

getImageAtIndex() public method

Returns a specific image from the pages of images.
public getImageAtIndex ( integer $index ) : Horde_Image_Base
$index integer The index to return.
return Horde_Image_Base The requested image
    public function getImageAtIndex($index)
    {
        if ($index > 0) {
            throw new Horde_Image_Exception('Image index out of bounds.');
        }
        $class = get_class($this);
        return new $class(array('data' => $this->raw()), $this->_context);
    }