imagecolorset

(PHP 3, PHP 4, PHP 5)

imagecolorset -- 給指定調色板索引設定彩色

說明

void imagecolorset ( resource image, int index, int red, int green, int blue )

本函數將調色板中特殊的索引設定為特殊的彩色。對於在調色板圖像中建立類似區功能變數填充(flood-fill)的效果很有用,免去了真的去填充的開銷。

參見 imagecolorat()