HTML5 Canvas Image and drawimage method 3 tutorial 16

preview_player
Показать описание
drawImage();
(a) drawImage(image,dx,dy);
(b) drawImage(image,dx,dy,dw,dh);
(c) drawImage(image,sx,sy,sw,sh,dx,dy,dw,dh);
In this tutorial, ifactner shows how to draw a copy of the image with the same properties as the orgninal image. ifactner also shows how to re-position the image on HTML5 canvas.
Рекомендации по теме