简体   繁体   中英

how to convert div element into image

im using google charts for my application. i've to convert the chart into png image and store that image file in local. for that i've used like this but i cant to convert the chart to image in IE8, i should code for IE8 also. is there any other way to convert the chart to png. Is it good way to convert the chart in server side. if so please suggest me to get png image file from the server side in java struts2 application. Thank you in advance.

If you are also using a <canvas> -element (as in the post you referenced), you can try using ExplorerCanvas , which brings canvas-functionality to old Internet Explorer version (make sure to use conditional tags for loading).

Another possibility, as Teemu mentioned, is using VML. I haven't found any script to convert canvas to VML, but I did manage to find this: svg2vml . I guess there should also be variants of this that work with canvas.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM