 
  
Quelle: php4-forumimagecolortransparent($bild,$farbe)
Beschreibung:
Definiert eine Farbe in einem Bild als Transparent.
$bild siehe imagecreate(), $farbe siehe imagecolorallocate()
Beispiel:Code: Alles auswählen
$img = imagecreate(200,100); $bg = imagecolorallocate($img,0,0,0); $white = imagecolorallocate($img,255,255,255); imagecolortransparent($img,$white); header("Content-Type: image/gif"); imagegif($img);
Ausgabe: Ein Bild, bei dem alles was weiß ist, transparent wird.
 
 
