Answered by:
Drawing on a portion of image By taking XY coordinate.

Question
-
User-2030397957 posted
Hi all forum Member,
I am currently working on a web application, Where I got the requirement to draw a rectrangle by taking xy coordinate over a map. Can Any body help me with example..
Thank you
Tuesday, March 31, 2009 3:56 AM
Answers
-
User401360897 posted
You can Do with GDI+
But i refer to use
http://silverlight.net/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, March 31, 2009 5:05 AM -
User527778624 posted
Hi,
Once you got the xy coord.s , Draw an absolute positioned <div> with transparent background:
--------------------------
<div style="; z-index: 101; top: [ycoord]; left: [xcoord]; width: 100px; height: 100px; filter: alpha(opacity=0); border: solid 1px blue;"> </div>
Try this.
----------------------------
Happy Coding.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, March 31, 2009 5:22 AM -
User-1597315603 posted
Hi
if you need to draw a rectrangle on the page, I would like to suggest you try to use JavaScript.
Please check the following links, which provide solutions for this:
http://www.c-point.com/javascript_vector_draw.htm
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
Thanks- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, April 3, 2009 5:57 AM
All replies
-
User401360897 posted
You can Do with GDI+
But i refer to use
http://silverlight.net/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, March 31, 2009 5:05 AM -
User527778624 posted
Hi,
Once you got the xy coord.s , Draw an absolute positioned <div> with transparent background:
--------------------------
<div style="; z-index: 101; top: [ycoord]; left: [xcoord]; width: 100px; height: 100px; filter: alpha(opacity=0); border: solid 1px blue;"> </div>
Try this.
----------------------------
Happy Coding.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, March 31, 2009 5:22 AM -
User-1597315603 posted
Hi
if you need to draw a rectrangle on the page, I would like to suggest you try to use JavaScript.
Please check the following links, which provide solutions for this:
http://www.c-point.com/javascript_vector_draw.htm
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
Thanks- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, April 3, 2009 5:57 AM -
User1609758140 posted
Raju,
I tried this snippet of code. Everything works apart from "filter: alpha(opacity=0);".
Error message says this is not a valid CSS property. How did you get this to work?
Paul
Monday, August 17, 2009 7:24 PM