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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

imagefilledrectangle() axis flip depending on version

Status
Not open for further replies.

connectionscentres

Programmer
Jan 5, 2005
16
GB
This may save you a lot of aggravation.
When invoking the gd function "imagefilledrectange()"

I noticed that it worked on one server but not on another.

The first one had php5.0.3 installed with gd 2.0.28 and the second had php4.1.2 with gd 1.6.2.

Other gd functions were working fine, just not this. To get it to work I finally realised that you needed to reverse the y axis, so instead of doing 10,10,100,100 you'd do 10,100,100,10. I found this out by fluke because I couldnt find anything about it in the PHP manual. Though I'm probably wrong about that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top