M
Mr. 47
Guest
Code:
<?PHP
Header("Content-type: image/png");
$im = ImageCreateFromPNG("map.png");
$red = ImageColorAllocate($im, 255, 0, 0);
$trX = $map.x + "2";
$tlX = $map.x - "2";
$brX = $map.x + "2";
$blX = $map.x - "2";
$trY = $map.y - "2";
$tlY = $map.y - "2";
$brY = $map.y + "2";
$blY = $map.y + "2";
ImageLine($im, $trX, $trY, $blX, $blY, $red);
ImageLine($im, $tlX, $tlY, $brX, $brY, $red);
ImagePNG($im);
?>
Please help, what is wrong with this script, its useing the newest GD Libary so it could be the CreateFromGIF that did it, please help.
And also is there any way to save the image...
Edit - Just editted to turn the PHP tags into CODE tags, since PHP merges with the BarrysWorld colour scheme - Jonty