You can learn more details at: Convert DWG to SVG in C#
Last active
September 13, 2023 08:47
-
-
Save aspose-com-gists/1632526fda69353da42973b6a86f5b0f to your computer and use it in GitHub Desktop.
Convert DWG to SVG in C# .NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the input DWG file | |
Image image = Image.Load("sample.dwg"); | |
// Initialize SvgOptions class object | |
ImageOptions.SvgOptions options = new ImageOptions.SvgOptions(); | |
// Set SVG color mode | |
options.ColorType = SvgColorMode.Grayscale; | |
options.TextAsShapes = true; | |
// Save output SVG file | |
image.Save("sample.svg" , options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment