js插件---画图软件wePaint如何使用(插入背景图片,保存图片,上传图片)
js插件---画图软件wePaint如何使用(插入背景图片,保存图片,上传图片)
一、总结
一句话总结:万能的wPaint方法,通过不同的参数执行不同的操作。比如清空画布参数传"clear",获取图片数据参数是"image"等等
1、wePaint如何保存图片?
a、找到canvas对象,通过wPaint("image")方法获取 image数据
b、将获取的image数据赋值给一个img标签的src属性
function saveImage2()
{
var imageData2 = $("#wPaint2").wPaint("image");
$("#canvasImage2").attr('src', imageData2);
}
2、wePaint如何上传图片?
a、找到canvas对象,通过wPaint("image")方法获取 image数据
b、将这个获取的image数据通过ajax上传到服务器即可
function upload_image(id)
{
var imageData = $("#" + id).wPaint("image");
$.ajax({
url: '/wPaint/upload.php',
data: {image: imageData},
type: 'post',
success: function(resp)
{
alert('successfully uploaded image!');
}
});
}
这样保存的图片直接赋值给img标签的src属性就可以显示了
3、打开wePaint的时候如何载入背景图片?
js初始wePaint的时候传入图片参数(我们可以直接传入base64格式的图片数据)
就是我们上传图片存入数据库里面的内容
$("#wPaint2").wPaint({
menuOrientation: 'vertical',
image: "data:image/png;base64,iVBORw(中间省略一大段字母)YII=",
imageBg: 'images/demo/wPaint.png'
});
4、wePaint如何加载图片?
直接调用wPaint方法即可
function loadImage_png()
{
$("#wPaint").wPaint("image", "images/demo/wPaint.png");
}
5、如何清空绘画板?
还是wPaint方法,只是传入参数编程了clear
function clearCanvas()
{
$("#wPaint").wPaint("clear");
}
二、js插件---画图软件wePaint如何使用(插入背景图片,保存图片,上传图片)
百度盘下载地址:链接:https://pan.baidu.com/s/1bTU3TCeidcjPYhUtAaYfSA 密码:m14p
1、截图
2、代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Websanova Paint</title> <!-- jQuery -->
<script type="text/javascript" src="./inc/jquery.1.8.2.min.js"></script>
<script type="text/javascript" src="./inc/jquery.ui.core.min.js"></script>
<script type="text/javascript" src="./inc/jquery.ui.widget.min.js"></script>
<script type="text/javascript" src="./inc/jquery.ui.mouse.min.js"></script>
<script type="text/javascript" src="./inc/jquery.ui.draggable.min.js"></script> <!-- wColorPicker -->
<link rel="Stylesheet" type="text/css" href="./inc/wColorPicker.css" />
<script type="text/javascript" src="./inc/wColorPicker.js"></script> <!-- wPaint -->
<link rel="Stylesheet" type="text/css" href="./wPaint.css" />
<script type="text/javascript" src="./wPaint.js"></script> </head>
<body> <h2>Default</h2> <table><tr>
<td>
<div id="wPaint" style="position:relative; width:500px; height:300px; background:#CACACA; border:solid black 1px;"></div>
</td><td>
<img id="canvasImage" src=""/>
</td>
</tr><tr>
<td colspan="2">
<div>
<a href="javascript:loadImage_base64();">load image (base64 encoded)</a> |
<a href="javascript:loadImage_png();">load image (png)</a> |
<a href="javascript:loadImage_jpg();">load image (jpg)</a> |
<a href="javascript:saveImage();">save image</a> |
<a href="javascript:clearCanvas();">clear canvas</a>
<input type="button" value="Upload Image" onclick="upload_image('wPaint');"/>
</div><br/> image data: <input id="canvasImageData" type="text" />
down: <input id="canvasDown" type="text" />
move: <input id="canvasMove" type="text" />
up: <input id="canvasUp" type="text" />
</td>
</tr></table> <script type="text/javascript">
var wp = $("#wPaint").wPaint({
image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAGQCAYAAABYs5LGAAASMklEQVR4nO3dTaiux10A8BGlcVEbFzFNbclX24WRmCYttSEm5JrEjQi6qAuhUJQsSjZ12V2v6M5QFxVcdCdIwE3R0BgUAsa2CFIwi9JW0ZuQr5KkjWmT5ubenL+Lew49Pfd9z3nmeWaemXnf3w8GLlzOM/+ZZ2b+7/OdEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACA+v4fELYJD7aYfCIAAAAASUVORK5CYII=",
drawDown: function(e, mode){ $("#canvasDown").val(this.settings.mode + ": " + e.pageX + ',' + e.pageY); },
drawMove: function(e, mode){ $("#canvasMove").val(this.settings.mode + ": " + e.pageX + ',' + e.pageY); },
drawUp: function(e, mode){ $("#canvasUp").val(this.settings.mode + ": " + e.pageX + ',' + e.pageY); }
}).data('_wPaint'); function loadImage_base64()
{
$("#wPaint").wPaint("image", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAGQCAYAAABYs5LGAAAQdklEQVR4nO3dTcg211kA4KO72LRgi9JWpcuEatDEoFBaiVp/NhJKMdvSrMQuonWVXVQsAUGoblyIYCii7aKhLcaiYGxFN0UqBbULaUr+00YT89uvX97bxfd98uTp+zP3POfvmfe6YCCLfO+5z5wz9z1nZp6ZUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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loadImage_jpg()
{
$("#wPaint").wPaint("image", "images/demo/wPaint.jpg");
} function saveImage()
{
var imageData = $("#wPaint").wPaint("image"); $("#canvasImage").attr('src', imageData);
$("#canvasImageData").val(imageData);
} function clearCanvas()
{
$("#wPaint").wPaint("clear");
} function upload_image(id)
{
var imageData = $("#" + id).wPaint("image"); $.ajax({
url: '/wPaint/upload.php',
data: {image: imageData},
type: 'post',
success: function(resp)
{
alert('successfully uploaded image!');
}
});
}
</script> <h2>Load Image With Background</h2>
The background cannot be modified, but will be part of the save (try the eraser): <table><tr>
<td>
<div id="wPaint2" style="position:relative; width:500px; height:300px; background:#CACACA; border:solid black 1px;"></div>
</td><td>
<img id="canvasImage2" src=""/>
</td>
</tr><tr>
<td colspan="2">
<div>
<a href="javascript:saveImage2();">save image</a> |
<a href="javascript:updateBg2();">update bg</a>
<input type="button" value="Upload Image" onclick="upload_image('wPaint2');"/>
</div><br/>
</td>
</tr></table> <br/><br/> <script type="text/javascript">
$("#wPaint2").wPaint({
menuOrientation: 'vertical',
image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAGQCAYAAABYs5LGAAASMklEQVR4nO3dTaiux10A8BGlcVEbFzFNbclX24WRmCYttSEm5JrEjQi6qAuhUJQsSjZ12V2v6M5QFxVcdCdIwE3R0BgUAsa2CFIwi9JW0ZuQr5KkjWmT5ubenL+Lew49Pfd9z3nmeWaemXnf3w8GLlzOM/+ZZ2b+7/OdEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMBQItJBRIqMctA6ZgDgUET6WGYiv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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACA+v4fELYJD7aYfCIAAAAASUVORK5CYII=",
imageBg: 'images/demo/wPaint.png'
}); function saveImage2()
{
var imageData2 = $("#wPaint2").wPaint("image"); $("#canvasImage2").attr('src', imageData2);
} function updateBg2()
{
$("#wPaint2").wPaint("imageBg", 'images/demo/wPaint.jpg');
} </script>
</body>
</html>
js插件---画图软件wePaint如何使用(插入背景图片,保存图片,上传图片)的更多相关文章
- 关于HTML表格中插入背景图片的问题_百度知道 3个回答 - 提问时间: 2009年03月23日 最佳答案: <tr style="background-image:url(1.jpg)"> (这事设置背景图片) <img src="images/bbs_student1.gif" />如果是这样的就是直接插入图片。你看看,...
关于HTML表格中插入背景图片的问题_百度知道 3个回答 - 提问时间: 2009年03月23日 最佳答案: <tr style="background-image:url(1.jpg ...
- css插入背景图片底部有白边的解决方法
相信很多小伙伴遇到过用CSS插入背景图时,底部出现白边的情况,如下图: 个人总结了2个方法如下: 解决方法1:给图片都加上 vertical-align: middle属性.有时,移动端也会有类似 ...
- CAD插入背景图片(网页版)
把图片作为背景图片可见但是不能编辑操作. 主要用到函数说明: _DMxDrawX::DrawImageToBackground 绘光栅图到背景.详细说明如下: 参数 说明 BSTR sFileName ...
- 在Excel表里面插入背景图
工作中我们会经常用到MS Excel,通常我们打开MS Excel,里面的工作表都是空白单调的背景.当然了,MS Excel可以在工作簿里面插入背景图片.那么问题来了,如果你没有安装Microsoft ...
- 一款js控制背景图片平铺
背景图片的平铺方法有很多种,纯色背景,渐变背景,图片背景,今天讲的是移动端的图片背景~~~~ <style> html,body{;;} .body{background: url(ima ...
- VS 小插件 之 编辑器背景图片
一.引言 不知道标题的名字我描述的是否正确哈,其实就是用VS写代码的时候,背景一般都是纯白 或者 纯黑(看主题而定),那么我前段时间发现 只需要一个VS插件,居然可以给VS设置背景图片,甚至还可以循环 ...
- 代码规范和常用的js插件以及测试工具
1.代码规范 .model层 1.1.1database file_proerty 1.1.2java fileProperty. 1.2.字段要有空指针 1.3.不创建爱数据库外键约束 1.4.已知 ...
- spin.js插件的转圈加载效果
先上插件链接地址:http://fgnass.github.io/spin.js/ 以下是使用spin.js插件的完整版测试例子: <!doctype html> <html> ...
- 前端开发需要了解的JS插件
excanvas.js/Chart.js/cubism.js/d3.js/dc.js/dx.chartjs.js/echarts.js/flot.js 用途:构建数据统计图表,兼容多浏览器 jquer ...
随机推荐
- 28.STL常用算法
#include <algorithm> 算法 常用版本 描述 返回Type std::find() find(_InIt _Fisrt,_InIt _Last, _Ty& _Va ...
- 在 Ubuntu 18.04 LTS 无头服务器上安装 Oracle VirtualBox
作者: Sk 译者: LCTT qhwdw | 2018-10-12 01:59 本教程将指导你在 Ubuntu 18.04 LTS 无头服务器上,一步一步地安装 Oracle VirtualBox. ...
- Debian9.5 系统配置持久化iptables规则
RedHat和SUSE系列下有比较好用的iptables管理工具,可以像控制服务进程一样来对防火墙进行管理及控制,Debian系发行版默认不开启iptables,当然也没有与之相关的能直接管理的工具了 ...
- 洛谷 P4148 简单题 KD-Tree 模板题
Code: //洛谷 P4148 简单题 KD-Tree 模板题 #include <cstdio> #include <algorithm> #include <cst ...
- centos7 安装 Python netsnmp模块
由于模块的安装过程中有点艰难(其实挺简单,只是参照网上的教程很多都装不成功,花了很多时间...),所以记下来备忘. 先装一下python-devel 模块,执行命令 yum install pytho ...
- WordPress改动新用户注冊邮件内容--自己定义插件
有些开放用户注冊功能的WordPress站点,可能有这么一项需求,就是用户注冊成功后,系统会分别给站点管理员和新用户发送一封通知邮件.给管理员发送的是新用户的username和Email,给刚刚注冊的 ...
- JAVA并发-为现有的线程安全类添加原子方法
JAVA中有许多线程安全的基础模块类,一般情况下,这些基础模块类能满足我们需要的所有操作,但更多时候,他们并不能满足我们所有的需要.此时,我们需要想办法在不破坏已有的线程安全类的基础上添加一个新的原子 ...
- scikit-learn的线性回归
scikit-learn的线性回归预测Google股票 这是机器学习系列的第一篇文章. 本文将使用Python及scikit-learn的线性回归预测Google的股票走势.请千万别期望这个示例能够让 ...
- js阻止默认事件与js阻止事件冒泡
e.stopPropagation(); //阻止事件冒泡 功能:停止事件冒泡 function stopBubble(e) { // 如果提供了事件对象,则这是一个非IE浏览器 if ( e &am ...
- C# Cache的类方法
public class DataCache { /// <summary> /// 获取当前应用程序指定CacheKey的Cache值 / ...