Is there a way (preferably a control) to display vector graphics (preferably SVG) in a Windows Forms application?
I'm guessing that this would be easy to do with WPF, but I would prefer not to have to migrate the project.
Scalable Vector Graphics (SVG) is a web-friendly vector file format. As opposed to pixel-based raster files like JPEGs, vector files store images via mathematical formulas based on points and lines on a grid.
Microsoft Word, PowerPoint, Outlook, and Excel for Microsoft 365 on Windows, Mac, Android, and Windows Mobile support inserting and editing scalable vector graphics (. SVG) files in your documents, presentations, email messages, and workbooks.
GDI+ and the Graphics class can do vector-graphics.
For SVG, you might try to load it into the WebBrowser control...
You don't have to migrate your project to use WPF. Windows Forms projects can embed WPF controls. Check out SVGImage Control.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With