文字

Imagick::getImageDelay

(PECL imagick 2.0.0)

Imagick::getImageDelayGets the image delay

说明

int Imagick::getImageDelay ( void )

Gets the image delay.

返回值

Returns the image delay.

错误/异常

错误时抛出 ImagickException。

用户评论:

[#1] ijtabahussain at live dot com [2015-01-25 01:27:12]

Seems to return the image delay in centiseconds

[#2] jabaga at abv dot bg [2011-09-18 08:31:46]

Here is how you can get the delay between the frames in gif file:

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

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

echo 
$delay;
}
?>

上一篇: 下一篇: