How to select a polygonal area of an image using JavaScript / jQuery?

前端 未结 2 1942
醉梦人生
醉梦人生 2020-12-30 10:51

I\'d like to be able to let my users select a specific polygonal (6-8 vertices with curved lines between points) area of an image they upload - how do I go about doing this

2条回答
  •  死守一世寂寞
    2020-12-30 11:32

    You could load the image on to a canvas tag and then you can do all the drawing you like on that canvas.

提交回复
热议问题