473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Need javascript code to select polygonal area on an image

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

Sep 27 '07 #1
2 3553
In article <11*********************@g4g2000hsf.googlegroups.c om>, jvs_desg <hi************@gmail.comwrote:
>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?

--
Regards,
Doug Miller (alphageek at milmac dot com)

It's time to throw all their damned tea in the harbor again.
Sep 27 '07 #2
pr
jvs_desg wrote:
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.
Sep 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: J. Makela | last post by:
Hallo. This should be a pretty entertaining question for you *real* javascript writers.. I, being the lowly photoshop guy at an ad agency made the mistake of actually saying "HTML" in a...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
8
by: heather.memmel | last post by:
I am in no way a scripter/programmer of any kind but I am in charge of a number of online videos. Anyway I need help debugging my javascript which has been pieced together from several other...
1
by: Ms Yaqian Fang | last post by:
Hello, I want to highlight the clicked area on an image by placing another image on it. But it replaced the whole image, not the clicked area. My code is as following, can anyone please help me?...
2
by: Yaqian | last post by:
Hello, I want to highlight the clicked area on an image by placing another image on it. But it replaced the whole image, not the clicked area. My code is as following, can anyone please help me?...
2
by: jascraig | last post by:
Here's my dilemma. I'm working with a frameset with 3 frames (header,content,control). My control frame contains a select list with buttons for next and previous. When the next button is pushed...
0
by: Shailaja Kulkarni | last post by:
Hi All, I am new to component development. I want to create custom control to arrange contained controls in form of polygonal shape. The objects are placed in separate panel on the some form....
1
by: adamprisa | last post by:
1. Go to http://webwag.com 2. On the left hand side upper corner there is an "Add new Content" button, Click on it. 3. Enter a URL(suppose www.yahoo.com) in New! Widget On DemandTM TextBox and...
4
by: dupdupdup | last post by:
Hello there, im needed to develop a gallery for this website. im using hotspots to go to my frames in my flash Each hotspot goes to each frame. The flash is loaded properly. When i right click...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.