Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active March 16, 2022 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/c86e4c39025f6922f180ee90ae562238 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/c86e4c39025f6922f180ee90ae562238 to your computer and use it in GitHub Desktop.
Convert VSD VSDX to SWF Programmatically in C# .NET
// Instantiate Diagram class object and open VSD file
Diagram diagram = new Diagram("Sample.vsd");
// Instantiate the SWFSaveOptions
SWFSaveOptions options = new SWFSaveOptions();
// Set Save format as SWF
options.SaveFormat = SaveFileFormat.Swf;
// Save the resultant SWF file
diagram.Save("SWF_output.swf", options);
// Instantiate Diagram Object and open VSDX file
Diagram diagram = new Diagram("Sample.vsdx”);
// Instantiate the SWFSaveOptions
SWFSaveOptions options = new SWFSaveOptions();
// Set Save format as SWF
options.SaveFormat = SaveFileFormat.Swf;
// Save the resultant SWF file
diagram.Save( "SWF_output.swf", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment