previousImage_Text::set (Previous) (Next) Image_Text::setColorsnext

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Image_Text::setColor

Image_Text::setColor() – 色を設定する

Synopsis

require_once 'ImageText.php';

bool Image_Text::setColor ( mixed $color , mixed $id = 0 )

Description

このメソッドは色環内の特定の色 ID を設定するために使用します。

以下の色書式はこのメソッドで認識されます:

  • "#ffff00" # 付きもしくは # なしの 16 進数フォーマット (HTML スタイル)

  • "#08ffff00" # 付きもしくは # なしでアルファチャネル (08) 付き 16 進数フォーマット (HTML スタイル)

  • 整数値での 'r','g','b'、 (オプションとして) 'a' を含む配列

Parameter

mixed $color

色の値を指定します

mixed $id

色を設定するための (色環における) ID を指定します

Return value

returns 成功時に True、そうでなければ PEAR::Error

Throws

throws 投げられる例外はありません

See

Image_Text::setColors(), Image_Text::set()参照ください

Note

This function can not be called statically.

previousImage_Text::set (Previous) (Next) Image_Text::setColorsnext

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.