TUTORIALBackendFETCHED
PHP imagecolorset - 给指定调色板索引设定颜色
PHP imagecolorset - 给指定调色板索引设定颜色 PHP 图像处理 imagecolorset — 给指定调色板索引设定颜色。 语法 void imagecolorset ( resource $image , int $index , int $red , int $green , int $blue ) 本函数将调色板中指定的索引设定为指定的颜色。对于在调色板图像中创建类似区域填充(flood-fill)的效果..
Updated 7/16/2026
Tutorial detail pages default to noindex.
PHP imagecolorset - 给指定调色板索引设定颜色
imagecolorset — 给指定调色板索引设定颜色。
语法
void imagecolorset ( resource $image , int $index , int $red , int $green , int $blue )
本函数将调色板中指定的索引设定为指定的颜色。对于在调色板图像中创建类似区域填充(flood-fill)的效果很有用,免去了真的去填充的开销。
相关文章
- imagecolorat() 取得某像素的颜色索引值。
PHP 图像处理