PHP 5.4.31 Released

Imagick::setImageProperty

(PECL imagick 2.0.0)

Imagick::setImagePropertySets 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(300200"black");

$image->setImageProperty('Exif:Make''Imagick');
echo 
$image->getImageProperty('Exif:Make');
?>

参见

返回值

成功时返回 TRUE

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top