bdeSaveDiagramAsImage

Takes diagram and saves it to filepath as an image. Can use types .png, .jpg, and .jpeg.

Syntax

bdeSaveDiagramAsImage(diagram, filepath, scaleFactor)

Inputs

diagram
Diagram being saved.
Type: diagram
filepath
Filepath that the diagram is being saved to as an image.
Type: string
scaleFactor (optional)
The scale of which the image can be saved as.
Type: double

Examples

Save the diagram as an image:
diagram = bdeGetCurrentDiagram();
        bdeSaveDiagramAsImage(diagram, 'C:\Users\user\testing/test.jpg, 2)