|
Posted by timlitw@gmail.com on 11/18/06 01:06
A while back I researched and wrote a script that uses gd to make merge
an arrow on a compass to show wind direction, and another on a
speedometer to show wind speed, now I'd like to enhance these "gauges"
even more on the wind speedometer, I'd like to show high and low and
possibly average, and on the direction I'd like to put the prevailing
wind direction.
My weather station can put out the data, but my limitation is I don't
find how to merge another layer onto the image that I am merging to.
how it works now, is I get the background image, use an array of the
direction or wind speed and then from the array look up the position
and rotaion to merge the arrow on to the background and show the final
image. This is called in the html page like this img
src="speed.php?hispeed=15"
so the speed.php takes the hispeed= and makes the image that is asked
for.
Do I have to write out the file and then call it again to merge the 3rd
layer? If I do that do I have to specify a location to save the
temporary file to?
Does anyone have an example of this?
here is the page that uses the script that I put together.
http://www.qffinc.com/weather/dweather.php
I can provide the files also if needed.
[Back to original message]
|