I'm trying to render a SVG inside a PictureBox with VB.NET. I know that I have to convert my SVG file to a WMF file type before displaying the image inside a PictureBox. I'm using this code to render the graphic inside my PictureBox.
Private image As System.Drawing.Imaging.Metafile
image = New System.Drawing.Imaging.Metafile("C:\users\admin\Documents\convertedSVGfile.wmf")
Private Sub outputMapView_Paint(sender As Object, e As PaintEventArgs) Handles outputMapView.Paint
e.Graphics.DrawImage(image, New Rectangle(Point.Empty, outputMapView.ClientSize))
End Sub
However, when I run the code, my PictureBox comes out blank with no image visible. I know that this may be some compatibility issue with the SVG during the rendering/conversion process, but I don't know what is specifically wrong with it. The SVG renders fine in any web browser (such as Chrome or Edge).
I've attached my default SVG file and the .WMF file (converted from the SVG) I used in my program before the conversion.
Can anyone help me with this?
Default SVG File:Google Drive Link
Converted WMF File: Google Drive Link
Thanks.

