PHP 8.5.0 RC 2 available for testing

Imagick::setImageIndex

(PECL imagick 2, PECL imagick 3)

Imagick::setImageIndex β€” Modifie la position de l'itΓ©rateur

Avertissement

Cette fonction est OBSOLÈTE à partir de Imagick 3.4.4. Dépendre de cette fonctionnalité est fortement déconseillé.

Description

public Imagick::setImageIndex(int $index): bool

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

Retourne true en cas de succès.

Erreurs / Exceptions

Lance une exception ImagickException si une erreur survient.

οΌ‹add a note

User Contributed Notes 2 notes

up
2
Rob Hidalgo ΒΆ
13 years 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
-1
maulik_Vr at yahoo dot co dot in ΒΆ
12 years 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();
To Top