Is there a way in C# / .NET to render VML into a bitmap?
I'm thinking this should be really easy, but I can't seem to find anything like this in the .NET docs.
Is there a way in C# / .NET to render VML into a bitmap?
I'm thinking this should be really easy, but I can't seem to find anything like this in the .NET docs.
Any particular reason you're not using SVG instead? You'd have more luck finding libraries. I believe SVG is a successor to VML.
In looking for a similar solution I came across a 2 step process.
SourceForge has an XSL based project to convert VML to SVG.
(sourceforge.net/projects/vectorconverter/)
I've been testing with it and it works OK in certain cases.
Next, the SVG to PNG handler on CodePlex. Once registered to process *.svg files, the handler will read the file and send the image back to the browser in .png format. You can download the source and see how it's done.
You could string the 2 steps together to get your bitmap from vml.