Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

Info

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