imagecolorexact
(PHP 4, PHP 5, PHP 7, PHP 8)
imagecolorexact — 取得指定顏色的索引值
說明
   imagecolorexact(
resource
int
int
int
): int
  resource
$image,int
$red,int
$green,int
$blue): int
返回影象調色板中指定顏色的索引值。
如果顏色不在影象的調色板中,返回 -1。
如果從檔案建立了影象,只有影象中使用了的顏色會被辨析。僅出現在調色板中的顏色不會被辨析。