(PHP 3, PHP 4, PHP 5)
imagecolortransparent() 將 image 圖像中的透明色設定為 color。image 是 imagecreatetruecolor() 返回的圖像標識符,color 是 imagecolorallocate() 返回的彩色標識符。
注: 透明色是圖像的一種屬性,透明度不是彩色的屬性。一旦設定了某個彩色為透明色,圖像中之前畫為該色的任何區功能變數都成為透明的。
返回新透明色的標識符,若果省略 color 則返回現用的透明色的標識符。
注: 透明度僅能通過 imagecopymerge() 和真彩色圖像複製,不能用 imagecopy() 或調色板圖像。