Need javascript code to select polygonal area on an image

J

jvs_desg

Hi All,

I need to select some area on an image.
But if used a freehand kind of drawing tool that would require lots of
memory to store so many coordinates.
Please help me in writing a script that can be used to select some
polygonal area on
the image, so that the number of coordinates can be reduced to
minimum.

Thanks in advance,
Jd
 
D

Doug Miller

Hi All,

I need to select some area on an image.
But if used a freehand kind of drawing tool that would require lots of
memory to store so many coordinates.
Please help me in writing a script that can be used to select some
polygonal area on
the image, so that the number of coordinates can be reduced to
minimum.

I'm not sure I understand why you want a script to do this; is there some
reason you can't accomplish what you want by using a client-side image map?
 
P

pr

jvs_desg said:
I need to select some area on an image.
But if used a freehand kind of drawing tool that would require lots of
memory to store so many coordinates.
Please help me in writing a script that can be used to select some
polygonal area on
the image, so that the number of coordinates can be reduced to
minimum.

If it's a user selection you want, the problem would be rendering its
outline on the page. You would probably be looking at canvas

http://developer.mozilla.org/en/docs/HTML:Canvas

or SVG

http://developer.mozilla.org/en/docs/SVG

Or Flash.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top