107

探究 canvas 绘图中撤销(undo)功能的实现方式

 6 years ago
source link: https://juejin.im/post/5ae5ccfb6fb9a07aa34a06f6
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
最近在做网页版图片处理相关的项目,也算是初入了 canvas 的坑。项目需求中有一个给图片添加水印的功能。我们知道,在浏览器端实现图片添加水印功能,通常的做法就是使用 canvas 的 drawImage 方法。对于普通的合成(比如一张底图和一张 PNG 水印

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK