Forum und email

Imagick::commentImage

(No version information available, might be only in CVS)

Imagick::commentImage — Adds a comment to your image

說明

bool Imagick::commentImage ( string $comment )
Warning

此函式目前沒有參考文件;只有引數列表。

Warning

本函式是實驗性的。這個函式的行為、名稱、和關於此函式的任何其他文件在未來PHP的發行中可能會在不通知的情況下改變。 使用此函式需自行承擔風險。

Adds a comment to your image.

參數

comment

The comment to add

Return值

Returns TRUE on success.

範例

Example#1 Using Imagick::commentImage():

Commenting an image and retrieving the comment:

<?php

/* Create new Imagick object */
$im = new imagick();

/* Create an empty image */
$im->newImage(100100, new ImagickPixel("red"));

/* Add comment to the image */
$im->commentImage("Hello World!");

/* Display the comment */
echo $im->getImageProperty("comment");

?>