C# .svg file to System.Drawing.Image
<p>I need to convert the selected .svg file to System.Drawing.Image object, so I can resize it and save it as .png. Can anyone help me with this?</p>

<p>Here is what I have so far:</p>

<pre><code>Svg.SvgDocument svgDocument = SVGParser.GetSvgDocument(mPath);
image = svgDocument.Draw();
</code></pre>

<p>But it gives me out of memory error.</p>