Imagick::setImageProperty
(PECL imagick 2.0.0)
Imagick::setImageProperty — Sets an image property
说明
bool Imagick::setImageProperty
( string
$name
, string $value
)Sets a named property to the image. 此方法在Imagick基于ImageMagick 6.3.2以上版本编译时可用。
参数
-
name -
-
value -
范例
Example #1 Using Imagick::setImageProperty():
Setting and getting image properties
<?php
$image = new Imagick();
$image->newImage(300, 200, "black");
$image->setImageProperty('Exif:Make', 'Imagick');
echo $image->getImageProperty('Exif:Make');
?>
返回值
成功时返回 TRUE。
There are no user contributed notes for this page.
