©
Ce document utilise Manuel du site Web PHP chinois Libérer
(PECL imagick 2.0.0)
Imagick::commentImage — Adds a comment to your image
$comment
)Adds a comment to your image.
comment
The comment to add
成功时返回 TRUE
。
错误时抛出 ImagickException。
Example #1 Using Imagick::commentImage() :
Commenting an image and retrieving the comment:
<?php
$im = new imagick ();
$im -> newImage ( 100 , 100 , new ImagickPixel ( "red" ));
$im -> commentImage ( "Hello World!" );
echo $im -> getImageProperty ( "comment" );
?>