Size limit for imageellipse ?
Posted: Tue Apr 03, 2007 9:39 pm
Hello,
I am developing a PHP5 application using GD2 to dynamically create an image to be displayed on a web page. The image is fairly large, 1600px X 2400px, which is displayed in a smaller div with overflow set to auto so the image can be scrolled. This is for a game and the image is a map. On the map, I draw concentric circles equally spaced from the players position as a guide to how far they are from other point of interest.
The problem I am having is when I use imageellipse or imagearc and specify a height and width greater than 2050, the lines are distorted. Any size under 2050 is drawn correctly, but when I exceed it, the lines become very distorted.
I have tried the code on three computers, Linux, Win2000, and WinXP based, and the behavior persists on all three platforms.
Is there a limit to the size (height and width) that can be used with imageellipse or imagearc?
Thanks,
Mike
I am developing a PHP5 application using GD2 to dynamically create an image to be displayed on a web page. The image is fairly large, 1600px X 2400px, which is displayed in a smaller div with overflow set to auto so the image can be scrolled. This is for a game and the image is a map. On the map, I draw concentric circles equally spaced from the players position as a guide to how far they are from other point of interest.
The problem I am having is when I use imageellipse or imagearc and specify a height and width greater than 2050, the lines are distorted. Any size under 2050 is drawn correctly, but when I exceed it, the lines become very distorted.
I have tried the code on three computers, Linux, Win2000, and WinXP based, and the behavior persists on all three platforms.
Is there a limit to the size (height and width) that can be used with imageellipse or imagearc?
Thanks,
Mike