Re: Drawing line onto an image

From: Date: Sun, 11 Nov 2001 02:03:56 +0000
Subject: Re: Drawing line onto an image
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74143@lists.php.net to get a copy of this message
Grab an old version of GD (one with GIF support), and simply use ImageCreateFromGif() followed by ImageLine() and ImageGif() and you are done. -Rasmus On Sun, 11 Nov 2001, Torkil Johnsen wrote: > Hello. > > I'm looking for sample code on how I can solve this problem: > > - I have a webpage. > - On the webpage I have a map. (gif image) > - I have two points on the map: a and b, with coordinates ax,ay and bx,by > - Now... I want to create a straight line that is drawn from a to b, and I > want this line to be displayed on top of the map. > > So I want to make a php-generated line that is drawn upon a gif. > Maybe it is possible to draw this line inside a layer that is placed upon > the webpage with a higher z-index that that of the map gif? > > ... any clever minds out there? > > Thanks in advance, > Torkil Johnsen > > > >

« previous php.general (#74143) next »