摘要:
context.clearRect(0,0,width,height);//对一个矩形画面进行刷新 context.beginPath();//起始路径 context.moveTo(100,100); context.lineTo(700,700);//起始坐标为100,100,终点坐标为700, 阅读全文
posted @ 2016-07-17 20:28
涂先庆
阅读(174)
评论(0)
推荐(0)
摘要:
22、绘制、平铺、裁剪图像context.drawImage(image,x,y);context.drawImage(image,x,y,w,h);context.drawImage(image,sx,sy,sw,sh,dx,dy,dw,dh);sx,sy和sw,sh为源图像的被复制区域的起始坐标 阅读全文
posted @ 2016-07-17 20:25
涂先庆
阅读(107)
评论(0)
推荐(0)
摘要:
1、填充矩形 fillRect(x,y,width,height);2、绘制矩形边框 strokeRect(x,y,width,height);3、擦除矩形 clearRect(x,y,width,height);4、填充样式 fillStyle="red"; 样式可以为颜色、渐变和图像。5、描边样 阅读全文
posted @ 2016-07-17 20:24
涂先庆
阅读(159)
评论(0)
推荐(0)

浙公网安备 33010602011771号