 |
 |
Looking for some help/ideas please
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status:
Offline
|
|
I need to create the following. I have an image in a web browser. The user can click anywhere on that image, and a circle, with a pre-defined diameter will be drawn there. It would be a huge plus if i could also pick the color of the circle and the outline color of it as well. The user can create as many circles as he, she wants...of course they would all stay within the circle. How would this be possible?
What would you use to do this? Any sources like this out there?
Thank you,
t
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Location: England
Status:
Offline
|
|
PHP with GD could do this.
Amorya
|
|
What the nerd community most often fail to realize is that all features aren't equal. A well implemented and well integrated feature in a convenient interface is worth way more than the same feature implemented crappy, or accessed through a annoying interface.
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status:
Offline
|
|
Could you be a little more specific please? I understand PHP, but not sure where to start there. Do you have nay specific things on your mind? Some more guides could help a lot. What is GD? I am not sure hat that stands for.
If you could give some more pointers that would be awsome.
Thanks,
t
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Aug 2000
Location: Minneapolis, MN
Status:
Offline
|
|
What the poster is saying, is there is no pre-made options for doing such.
PHP is a scripting language and interpreter for web servers.[/b] It is available at: <a href="http://www.php.net/" target="_blank">http://www.php.net/</a>
GD is a library for handling and modifying graphics on linux and other unix systems. It comes installed on most distributions by default.
You'll either need to find someone who has put the options together already (I can't imagine your specific application would already be done), or find someone with the knowledge to get it done for you, or learn PHP and the specifics of GD and do it yourself.
The final part of this solution is you have to host your 'application' on a server that supports PHP and has GD. This is currently the way that people are doing 'customized graphics' on the web. There may be other commercial options, but I don't know of any.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Location: England
Status:
Offline
|
|
Sorry I was so brief last post, I was pushed for time.
As bluedog says, PHP is a web scripting language, and GD is an extension to it that will handle graphics.
I don't know much about it myself (I can do simple PHP but I've not really tried much graphics stuff) but I can point you to a tutorial:
<a href="http://www.phpbuilder.com/columns/rasmus19990124.php3" target="_blank">http://www.phpbuilder.com/columns/rasmus19990124.php3</a>
Try that. I think you'd need to have some kind of session handling (whether your own or using a PHP function), and track the circles someone's already drawn using an array or in a database.
Amorya
|
|
What the nerd community most often fail to realize is that all features aren't equal. A well implemented and well integrated feature in a convenient interface is worth way more than the same feature implemented crappy, or accessed through a annoying interface.
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Location: England
Status:
Offline
|
|
One more thing: you can get the co-ordinates of the user's click by making the image a submit button for a form... can't remember the variable names it defines, but there's information in the PHP manual (www.php.net)
Amorya
|
|
What the nerd community most often fail to realize is that all features aren't equal. A well implemented and well integrated feature in a convenient interface is worth way more than the same feature implemented crappy, or accessed through a annoying interface.
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|