![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html5
hehongwei44
爱好编程
展开
-
理解HTML5 canvas.translate(x,y)
规范原文如下:The translate(x, y) method must add the translation transformation described by the arguments to the transformation matrix. The x argument represents the translation distance in the horizontal ...原创 2012-05-09 00:52:57 · 301 阅读 · 0 评论 -
使用javascript来互相转换画布canvas和图片image
1.使用javascript的drawImage方法可以方便的将图片image转换为画布canvas,如下 // Converts image to canvas; returns new canvas elementfunction convertImageToCanvas(image) { var canvas = document.createElement("canvas"); ...原创 2012-05-19 19:57:56 · 239 阅读 · 0 评论