Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gd lib prob

Status
Not open for further replies.

solex

Programmer
Feb 28, 2003
91
GB
hi, im useing gd lib in my php scripts, it doent have gif support so i think that it is an loder version.

ok this is my prob, i have set a colour useing imagecolorallocate(), but when i go to set another (in another verable) it doesnt do it, so what i use it for comes out white. other then updateing gd, what can i do?

thanx inadvance
solex
 
$red = imagecolorallocate($mapIm,75,134,38);
$green = imagecolorallocate($mapIm,43,110,75);
imageline($mapIm,10,10,20,20,$red);
imageline($mapIm,20,20,20,20,$green);

// the red works but the green is white, and if i do...

if($green=imagecolorallocate($mapIm,43,110,75)==-1)
{
print "it dont work";
}

it gives the error, also if i turn round the red and green then green works but red doesnt.

thanx
solex
 
FYI the older versions of GD do have gif support but it is the newer ones that don't -> due to copyright law and this kind of think.

However the gif patent or something runs out in 2004 so it should become available again from them. probably.

MrBelfry

MrBelfry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top