|
|
|
|
|
<Diagram variable>.ToImage (Function) In french: <Variable Diagramme>.VersImage Exports a diagram to a variable of type Image. The generated image can then be saved or displayed in another control. // Save a diagram to a PNG file DiagImage is Image DiagImage = DIAGEDT_MyDiagram.ToImage() IF ErrorOccurred THEN Error() RETURN END DiagImage.SavePNG("DiagramExport.png") MyDiagram is Diagram <- DIAGEDT_MyDiagram // Retrieves the generated image MyImage is Image MyImage <- MyDiagram.ToImage() // Open the image OpenDocument(MyImage) Syntax
<Result> = <Diagram>.ToImage([<Background color>])
<Result>: Image variable Variable of type Image corresponding to the image of the diagram. <Diagram>: Name of the control or Diagram variable Diagram variable to manipulate <Background color>: Optional integer Image background color. This color can correspond to:If the background color is not specified, the diagram will be exported as is, with the background color already defined (if any).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|