PHP Conference Japan 2024

Imagick::getImageDelay

(PECL imagick 2, PECL imagick 3)

Imagick::getImageDelay取得影像延遲

說明

public Imagick::getImageDelay(): int

取得影像延遲。

參數

此函式沒有參數。

回傳值

傳回影像延遲。

錯誤/例外

發生錯誤時拋出 ImagickException。

新增註解

使用者貢獻的註解 2 則註解

4
jabaga at abv dot bg
13 年前
以下是如何取得 gif 檔案中影格之間的延遲時間

<?php
$animation
= new Imagick("file.gif");

foreach (
$animation as $frame) {
$delay = $animation->getImageDelay();

echo
$delay;
}
?>
0
ijtabahussain at live dot com
9 年前
似乎會傳回百分之一秒的影像延遲時間
To Top