downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Imagick::setImageInterlaceScheme> <Imagick::setImageGreenPrimary
[edit] Last updated: Wed, 22 May 2013

view this page in

Imagick::setImageIndex

(PECL imagick 2.0.0)

Imagick::setImageIndexModifie la position de l'itérateur

Description

bool Imagick::setImageIndex ( int $index )

Modifie la position de l'itérateur à l'index index.

Cette méthode est obsolète. Voyez Imagick::setIteratorIndex()

Liste de paramètres

index

La position à laquelle mettre l'itérateur

Valeurs de retour

Returns TRUE on success.

Erreurs / Exceptions

Lance une exception ImagickException si une erreur survient.



add a note add a note User Contributed Notes Imagick::setImageIndex - [2 notes]
up
1
Rob Hidalgo
7 months ago
When reading a PDF from an ImageBlob, and you want to set the page to be used, this is the function to use.
up
0
maulik_Vr at yahoo dot co dot in
1 month ago
when you read pdf by getImageBlog and want to get the image or blob of a specific page, use this function as below.

$ims = new Imagick();
       
$ims->readImageBlob($pdfFileContent);
       
$ims->setImageIndex(5); //this will return 6th page of the pdf file
$image->setImageFormat('png');
            //etc
$blob = $image->getImageBlob();

 
show source | credits | sitemap | contact | advertising | mirror sites