Skip to content

Draw rectangle and polygon over image using canvas, and dump the points as json string.

Notifications You must be signed in to change notification settings

kevnwei/canvas-draw-polygon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

canvas-draw-polygon

Draw rectangle and polygon over image using canvas, and dump the points as json string, and many more features.

Features

  1. DRAW: rectangle and polygon
  2. DRAG: select the rectangle or polygon in RECTANGLE mode, and drag it to somewhere you want to
  3. TYPE: change the TYPE of the rectangle or polygon by right click the shape, and select the right TYPE in the Popup
  4. UNDO: by press CTRL+Z
  5. SCALE: use the mouse wheel to scale the image and the rectangles and polygons
  6. MAGNIFIER: by press "e" and click the mouse's left button
  7. DUMP: the points as json string
  8. VIEW: click the "eye" button the change to view mode, in the view mode, you cannot edit the shapes
  9. DELETE: you can delete the shape by select it and press "d"
  10. REMOVE: remove one point of the polygon by right click it

Note

  1. "drag" can be used at RECTANGLE mode only.
  2. if you finish draw one polyogn and want to add a new one, click the POLYGON button on the left top.

Preview

image

About

Draw rectangle and polygon over image using canvas, and dump the points as json string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages