NEW RELEASE! The 2022x Refresh2 Hot Fix 3 was released on February 28, 2025. For more information, see 2022x Refresh2 Hot Fix 3 Version News.

The Open API of a modeling tool provides the com.nomagic.magicdraw.export.image.ImageExporter class for creating images from the whole diagram or just a part of it.

Image formats are predefined as constants in ImageExporter

To create an image from the whole diagram, use the export(DiagramPresentationElement, int, java.io.File) method.

To create an image from selected symbols in the diagram, use the export(DiagramPresentationElement, int, java.io.File, boolean) method.

 You can find the code examples in <installation_directory>\openapi\examples\imagegenerator



Activity

All
Personal filters
All