David wrote:
i am using the imagepolygon function to create a shape on an image i have,
however i want to put more than just one polygon onto this image, i have no
idea how to do this. Do i have to call the imageploygon function each time i
want to add something to the image? All help is appreciated.
What have you tried?
What happenned? What did you want to happen?
NOT TESTED
<?php
$polygons = array();
$polygons[] = get_polygon('one');
$polygons[] = get_polygon('two');
$polygons[] = get_polygon('three');
$polygons[] = get_polygon('four');
// set up $image
foreach ($polygons as $poly) {
imagepolygon($image, $poly, count($poly)/2, $colour);
}
// send $image to browser
?>
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--