+
96
-

js如何合并两张图片变成一张?

js如何合并两张图片变成一张?

网友回复

+
16
-

var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
var imageObj1 = new Image();
var imageObj2 = new Image();
imageObj1.src = "1.png"
imageObj1.onload = function() {
   ctx....

点击查看剩余70%

+
16
-

试试merge-images.js这款插件,很方便的

点击查看剩余70%

我知道答案,我要回答