Completly Stumped on how to code this - Images using GD
Posted: Fri Jun 25, 2004 7:41 am
I have a java appalet that loads on a normal HTML page. The Java appalet allows a user to draw/sign etc. The java appalet then sets the plotted points as a string value.
The actual numbers are plotting points for lines. Each 4 numbers represent (x1, y1) , (x2, y2) for a line.
Example:
10 10 100 10 100 10 100 100 100 100 10 100 10 100 10 10 = A box
so $image would have the above value.
I need to find a method of dynamicly re-creating the image that was drawn in the java appalet using php. I am guessing it will be using the imagesetpixel function within GD in some sort of loop.
I am completly stumped on how to start this, as i havent really worked with the image functions and GD before. If anyone can help it would be greatly appreciated. Any more info needed, please just let me know. Even just enough to get me started would be a great help.
The actual numbers are plotting points for lines. Each 4 numbers represent (x1, y1) , (x2, y2) for a line.
Example:
10 10 100 10 100 10 100 100 100 100 10 100 10 100 10 10 = A box
so $image would have the above value.
I need to find a method of dynamicly re-creating the image that was drawn in the java appalet using php. I am guessing it will be using the imagesetpixel function within GD in some sort of loop.
I am completly stumped on how to start this, as i havent really worked with the image functions and GD before. If anyone can help it would be greatly appreciated. Any more info needed, please just let me know. Even just enough to get me started would be a great help.