Problem :Mit PHP eine Grafik erstellen?
Verfasst: 13.12.2002 13:01
Ich versuche eine einfache linie auf dem Bildschirm auszugeben, aber ich bekomme das einfach nicht hin.
Das folgende script wird über <img src="url"> aufgerufen, wo ist der Fehler?
<?php
dl("php_gd.dll");
header("Content-type: image/img");
$bild = ImageCreate(50, 20);
ImageColorAllocate($bild, 200, 200, 200);
$color = ImageColorAllocate($bild, 200, 200, 200);
imageline($bild, 5, 10, 45, 10, $color);
ImageImg($bild);
?>
Thx Rookie
Das folgende script wird über <img src="url"> aufgerufen, wo ist der Fehler?
<?php
dl("php_gd.dll");
header("Content-type: image/img");
$bild = ImageCreate(50, 20);
ImageColorAllocate($bild, 200, 200, 200);
$color = ImageColorAllocate($bild, 200, 200, 200);
imageline($bild, 5, 10, 45, 10, $color);
ImageImg($bild);
?>
Thx Rookie