downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Imagick::compareImageChannels> <Imagick::combineImages
[edit] Last updated: Fri, 17 May 2013

view this page in

Imagick::commentImage

(PECL imagick 2.0.0)

Imagick::commentImageコメントを画像に追加する

説明

bool Imagick::commentImage ( string $comment )

コメントを画像に追加します。

パラメータ

comment

追加するコメント。

返り値

成功した場合に TRUE を返します。

エラー / 例外

エラー時に ImagickException をスローします。

例1 Imagick::commentImage() の使用法

画像にコメントを追加し、そのコメントを取得します。

<?php

/* 新しい Imagick オブジェクトを作成します */
$im = new imagick();

/* 空の画像を作成します */
$im->newImage(100100, new ImagickPixel("red"));

/* コメントをその画像に追加します */
$im->commentImage("Hello World!");

/* コメントを表示します */
echo $im->getImageProperty("comment");

?>



add a note add a note User Contributed Notes Imagick::commentImage - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites