Hi,
I want to convert an SVG into a PNG. I try it this way:
Code: C#
WebView wbView = new WebView();
wbView.Create(IntPtr.Zero);
wbView.LoadUrlAndWait(System.IO.Directory.GetCurrentDirectory() + "\\temp.svg");
System.Drawing.Size s = wbView.GetPageSize();
wbView.Resize(s.Width, s.Height);
System.Drawing.Image img = wbView.Capture();
img.Save(System.IO.Directory.GetCurrentDirectory() + "\\temp.png");
The problem is that GetPageSize does not seem to work with SVG. If I set width and height manually it works fine. Is there a change to improve the resolution via code?