ImageColorTransparent

ImageColorTransparent -- 透明色の定義

説明

int imagecolortransparent(int im, int [col]);

ImageColorTransparentは、画像im上の透明色をcolに設定します。 im はimagecreateによって返された画像 ID で、 colはimagecolorallocateによって返された 色 ID です。

新しい(指定されない場合は現在の)透明色の ID が返されます。