views:

476

answers:

2

So I need to save image data drawn on a <canvas> element. And there is the toDataURL() method which works in most modern browser.

Except... you guessed it... Internet Explorer.

I've searched the internet but everywhere people say I should use SVG/VML to save the data, but they never mention how. I have not any experience with SVG/VML in IE so how do I save image drawn in a canvas element in Internet Explorer? Does anyone have experience?

At the moment, I had to duplicate the drawing code on both the client and on the server which is starting to get complicated. So if there is a way I could extract the image drawn on the canvas tag on the client (or server) side that'd certainly help.

Thanks!

+1  A: 

You might be able to get the VML and same that, but that is an XML format, so that's probably not what you want. There's not way you can get an image from IE without using a plug-in.

Sjoerd Visscher
Is there an easy way to convert the VML to a bmp or png?
B T
A: 

Hi Sjoerd Visscher,

could you tell me the name of that plugin? I wondering to save my vml code into bitmap. I found CutyCapt that support to convert page into image, but this application only work with svg code.

I hope with the plugin, can solve my problem.

Thanks before.

Regards,

Mardi V. Tamma

Mardi V. Tamma
I got the solution. It is FlashCanvas. http://flashcanvas.net
Mardi V. Tamma