<?php
// Created with PHPimg //
// (C) Tobias Hocke //
// [
url]http://www.tobias-hocke.de[/
url] //
$breite = 100;
$hoehe = 100;
$img = imagecreate($breite,$hoehe);
$clWhite = imagecolorallocate($img,255,255,255);
$clBlack = imagecolorallocate($img,0,0,0);
$x1 = 2 // Semikolon fehlt
$y1 = 5 // Semikolon fehlt
$x2 = 1 // Semikolon fehlt
$y2 = 3 // Semikolon fehlt
imageline($img, $x1, $y1, $x2, $y2, $clBlack);
header("Content-type: image/png");
imagepng($img,"image.png");
imagedestroy($img);
?>