offsetting imagecreate
hi
i would like to have 4 different graphs one after the other on the same page using imagecreate - here is my (pretty bad) attempy:
<?php header ("Content-type: image/png");
$handle = ImageCreate (1000, 200) or die ("Cannot Create image");
$bg_color = ImageColorAllocate ($handle, 255, 0, 0);
$txt_color = ImageColorAllocate ($handle, 255, 255, 255);
$line_color = ImageColorAllocate ($handle, 0, 0, 0);
ImageLine($handle, 65, 0, 130, 50, $line_color);
ImageString ($handle, 5, 5, 18, "", $txt_color);
ImagePng ($handle);
?>
<br>
<br>
<br>
<?php header ("Content-type: image/png");
$handle = ImageCreate (1000, 200) or die ("Cannot Create image");
$bg_color = ImageColorAllocate ($handle, 0, 255, 0);
$txt_color = ImageColorAllocate ($handle, 255, 255, 255);
$line_color = ImageColorAllocate ($handle, 0, 0, 0);
ImageLine($handle, 65, 0, 130, 50, $line_color);
ImageString ($handle, 5, 5, 18, "", $txt_color);
ImagePng ($handle);
?>
the problem is that the imagecreate always starts from the top left corner - how can it be offset so that it can start from a specified co-ordinate on the browser ?
cheers
Abbey
|