Workbook::setVersion (Previous) (Next) Workbook::worksheets

View this page in Last updated: Sun, 31 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Workbook::setCustomColor

Workbook::setCustomColor -- カラーパレット中の RGB 要素を変更する

説明

カラーパレット中の RGB 要素を変更します。 新しい色は RGB コンポーネントで定義し、指定したインデックスに 以前に定義されていた色は、 新しく定義された色で "上書き" されます。

パラメータ

  • integer $index - 色インデックス

  • integer $red - RGB の赤の値 [0 から 255]

  • integer $green - RGB の緑の値 [0 から 255]

  • integer $blue - RGB の青の値 [0 から 255]

返り値

integer - カスタム色のパレットインデックスを返します。

注意

この関数は、スタティックにコールする ことはできません。

Workbook::setVersion (Previous) (Next) Workbook::worksheets

Download Documentation Last updated: Sun, 31 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: gwinkless
BEWARE OF BUG 12062 - http://pear.php.net/bugs/bug.php?id=12062 - the excel-writer object maps colors 0-7 to colors 8-15, so with the default 0.9.1beta DO NOT map colors 8-15, custom colors should only start at 16.