Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Looking for some help/ideas please

Looking for some help/ideas please
Thread Tools
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jun 13, 2002, 12:32 PM
 
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
Reply With Quote
Jun 13, 2002, 01:11 PM
 
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.
     
t_hah  (op)
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jun 13, 2002, 03:28 PM
 
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
Reply With Quote
Jun 14, 2002, 09:33 AM
 
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
Reply With Quote
Jun 14, 2002, 06:10 PM
 
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
Reply With Quote
Jun 14, 2002, 06:14 PM
 
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.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:46 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2