导航首页 » 技术教程 » PHP:imagecolorset()的用法_GD库图像处理函数
PHP:imagecolorset()的用法_GD库图像处理函数 165 2023-12-15   

imagecolorset

(PHP 4, PHP 5)

imagecolorset — 给指定调色板索引设定颜色

说明

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

本函数将调色板中指定的索引设定为指定的颜色。对于在调色板图像中创建类似区域填充(flood-fill)的效果很有用,免去了真的去填充的开销。

参见 imagecolorat()。


!!!站长长期在线接!!!

网站、小程序:定制开发/二次开发/仿制开发等

各种疑难杂症解决/定制接口/定制采集等

站长微信:lxwl520520

站长QQ:1737366103