English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

PHP 基础教程

PHP 高级教程

PHP & MySQL

PHP 参考手册

PHP imagecolorset() 为指定调色板索引设置颜色

Elaborazione delle Immagini PHP

imagecolorset — 为指定调色板索引设置颜色。

语法

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

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

相关文章

Elaborazione delle Immagini PHP