Andy: Farbe eines Punktes ändern

Beitrag lesen

Hi,

wie muss ich das schrieben, dass ich die Farbe eines einzigen Bildpunktes ändern kann, hier gleich mal der Code:

<?php
$im = @ImageCreate (450, 450)
      or die ("Kann keinen neuen GD-Bild-Stream erzeugen");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
$trans=imagecolortransparent($im,$background_color);

$height=100;
$weight=100;
$x1=100;
$y1=100;
$x2=$x1+$weight;
$y2=$y2+$height;
$x3=$x1+$weight/2;
$y3=$y2+$height/2;
ImageRectangle($im, $x1, $y1, $x2, $y2, $text_color);
ImageGIF ($im);
?>

Der Punkt sollte bei (x3|y3) liegen!

Danke schon im Vorraus!
Andy