計算色表中與指定顏色最接近者。
語法: int imagecolorclosest(int im, int red, int green, int blue);
返回值: 整數
函數種類: 圖形處理
本函數用來計算調色盤中與指定 RGB 顏色最接近的顏色。參數 red、green、blue 分別為紅、綠、藍三原色,也就是所謂的 RGB 值。
ImageColorExact()