46356
Goto Top

Transpareter ImageColorAllocate Wert?

Hallo!

Ich habe ein kleines PHP Script, welches mir einen String zu einem Bild konvertiert...

header("Content-type: image/png");  
$email    =    $Mail;
$length    =  (strlen($email)*8);
$im = @ImageCreate ($length, 20)
     or die ("Kann keinen neuen GD-Bild-Stream erzeugen");  
$background_color = ImageColorAllocate ($im, 202, 202, 202); // White: 255,255,255 (Background-Color)
$text_color = ImageColorAllocate ($im, black, black, black);
imagestring($im, 3,5,2,$email, $text_color);
imagepng ($im);
...

Nun hätte ich gerne, dass sich die Hintergrundfarbe der Website anpasst (==> Transparent)...
Ist das möglich?

Schönen Tag noch,
Alexander

Content-Key: 76722

Url: https://administrator.de/contentid/76722

Printed on: April 20, 2024 at 00:04 o'clock

Mitglied: 46356
46356 Dec 29, 2007 at 12:21:04 (UTC)
Goto Top
Hallo!

Durch einen komplett neuen Script konnte ich das Problem lösen!

Lg. Alex