最简单的“绘制"方式用jQuery在图像上的简单线条并保存到Rails DB? [英] Easiest way to "draw" simple lines over an image with jQuery and save to Rails DB?

查看:92
本文介绍了最简单的“绘制"方式用jQuery在图像上的简单线条并保存到Rails DB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在图像上画线.基本上允许用户为自己喜欢的山路绘制路径.

I'd like to draw lines on an image. Basically allow the user to draw a path for mountain trails they like.

1)有人知道一个简单的绘制基本线条的简单库吗?

1) Does anyone know a good simple library for drawing basic lines?

2)用户在图像上绘制一束线后,将数据保存到数据库的最佳方法是什么?

2) After a user draws a bunch of lines on an image, what would be the best way to save the data to the database?

推荐答案

画线

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆