You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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 <programinstallation directory>\openapi\examples\imagegenerator