How to draw a rectangle over an image?

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
Post Reply
surabhi
Posts: 1
Joined: July 17th, 2016, 9:25 pm

How to draw a rectangle over an image?

Post by surabhi »

Hi,
I have an issue i have taken the same code which is there to draw a rectangle over an image :
http://stackoverflow.com/questions/9398 ... er-a-image

Now I want to draw more than 1 rectangle, which means when I draw second rectangle 1st rectangle must also be visible!!!! what changes shuold I do,,,, please help me:)

Thanks in advance!!!!!
User avatar
jscher2000
Posts: 11734
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
Contact:

Re: How to draw a rectangle over an image?

Post by jscher2000 »

I think StackOverflow is a good place to pursue this question. It seems you will need to allow for new rubber band elements, so obviously adapt the script by not assuming a single id for the element.
Post Reply