PHP 8.3.4 Released!

Imagick::setImageIndex

(PECL imagick 2, PECL imagick 3)

Imagick::setImageIndexYineleyici konumunu tanımlar

Uyarı

Imagick 3.4.4 itibariyle bu işlevin kullanımı ÖNERİLMEMEKTEDİR. Bu işleve asla güvenilmemelidir.

Açıklama

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

Yineleyicinin görüntüdeki konumunu belirtilen indise ayarlar.

Bu yöntemin kullanımı artık önerilmemektedir. Yerine Imagick::setIteratorIndex() yöntemini kullanın.

Bağımsız Değişkenler

indis

Yineleyiciye atanacak konum.

Dönen Değerler

Başarı durumunda true döner.

Hatalar/İstisnalar

Hata durumunda bir ImagickException istisnası oluşur.

add a note

User Contributed Notes 2 notes

up
2
Rob Hidalgo
11 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
10 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