Some times, when I am having trouble with colors, I create a blank image of
the same size, fill() the image with a color such as white, then define that
as transperant. Now I draw all I want with my colors (becouse its a new
image, I have the pallete to myself). When done, I copy my drawing ontop of
the original image, thus preserving all colors.
Just a hack I do.
--
Mike Bradley
http://www.gzentools.com -- free online php tools
"David" <de*@ukc.ac.uk> wrote in message
news:c0**********@athena.ukc.ac.uk...
My plan is for postgres to hold an array of polygons (points), php will
grab these numbers and using the imagepolygon function paste (if thats the
correct word) these shapes on to a map of the uk, showing where a
particular species of fish can be found.
I just had a test run and it printed a triangle on to a jpeg i gave it,
only problem was the colour didnt seem to come through correctly ideas?
David
ps Cheers for the pointer before, it did help :)
What do you mean with "regions"?
And how will you map data from the DB to pixels in the image?
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--