PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<imagecoloratimagecolorclosestalpha>
Last updated: Mon, 16 Jul 2012

imagecolorclosest

(PHP 3, PHP 4, PHP 5)

imagecolorclosest -- 取得与指定的颜色最接近的颜色的索引值

说明

int imagecolorclosest ( resource image, int red, int green, int blue )

返回图像调色板中与指定的 RGB 值最“接近”的颜色。

指定的颜色与调色板中的每个颜色的“距离”的计算方法是把 RGB 值当成三维空间中点的坐标。

参见 imagecolorexact()




<imagecoloratimagecolorclosestalpha>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST