Ngày tải lên :
21/01/2014, 09:20
... "blue";
context.moveTo(50 ,20 );
context.arcTo (28 0 ,20 ,28 0 ,28 0,30);
context.arcTo (28 0 ,28 0 ,20 ,28 0,30);
context.arcTo (20 ,28 0 ,20 ,20 ,30);
context.arcTo (20 ,20 ,28 0 ,20 ,30);
context.stroke(); ...
context.beginPath();
context.moveTo(59 ,28 9);
context.lineTo(59, 124 );
context.lineTo (21 2,197);
context.lineTo (21 2,3 62) ;
context.lineTo(59 ,28 9);
context.closePath();
context.fill(); ...
a part of the image to be cut out and drawn to the canvas. The (sx,sy) coordinates are the
location on the image, and sw and sh are the width and height, respectively. The rest of the
parameters...