Table of Contents
Reply to discussion (solution)
Home Web Front-end HTML Tutorial How to use svg object in Html5 canvas. _html/css_WEB-ITnose

How to use svg object in Html5 canvas. _html/css_WEB-ITnose

Jun 24, 2016 pm 12:15 PM

Use drawImage in canvas and pass in the svg object as a parameter, but it cannot be displayed. I don’t know if drawImage does not support this type of object parameter. Solve. . .


Reply to discussion (solution)

See method
http://code.google.com/p/canvg/
http://canvg.googlecode .com/svn/trunk/examples/index.htm

I’ll post a piece of code for you:

Copy after login



test