超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<imagecolorsforindeximagecolortransparent>
Last updated: Fri, 22 Jun 2007

imagecolorstotal

(PHP 3, PHP 4 , PHP 5)

imagecolorstotal -- 取得一幅图像的调色板中颜色的数目

说明

int imagecolorstotal ( resource image)

本函数返回指定图像的调色板中的颜色数目。

参见 imagecolorat()imagecolorsforindex()




add a note add a note User Contributed Notes
imagecolorstotal
mgi at humbug dot net
16-Jul-2003 01:54
I would assume that since it says "number of colors in an image's palette" that the behaviour is undefined for non-paletted image types (for example, JPEG). It would probably only make sense to use it for 256 (8-bit) indexed images.

<imagecolorsforindeximagecolortransparent>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22