I have a C#/Xslt utility creating a relatively large SVG diagram from a
bunch of Xml sources I have.
This is cool for those who have SVG plugins installed, but I also want to
support downlevel browsers with a JPG equivalent of the SVG output.
Anyone know of any way I can make this conversion in a line of code or two?
Something like :
....
System.Xml.XmlTextWriter wtr = new System.Xml.XmlTextWriter("output.svg",
System.Text.Encoding.UTF8);
trans.Load(xpdocxslt);
trans.Transform(xpdoc, xslArg, svgdoc);
svgdoc.SaveAs("myimage", ImageFormats.JPEG);
thanks,
Steven
http://stevenlivingstone.com