If I understand your comment correctly, you either want to draw an image on the canvas, or convert it to vector data, and then draw it on the canvas.
Drawing a picture on canvas
, , . - , .
:
var ctx = document.getElementById('canvas').getContext('2d');
var img = new Image();
img.onload = function () {
ctx.rotate(Math.PI / 4);
ctx.drawImage(img, 0, 0);
}
img.src = 'my_image.png';
, . , , . , :
http://vectormagic.com/home
,
SVG
,
SVG SVG-, , , SVGCanvas SVG . , , SVG .