‎11-12-2013 09:54 AM
Hi all,
We Developing a mega api(c#) and getting all info from mega.exe. While we gettin diagram path it doesnt enough for us.We want to diagram image object like in the image folder saved .svg format.How could we take just image from mege.exe, not the matching hexaid in image folder?
Thanks.
‎12-12-2013 08:39 AM
‎12-12-2013 08:13 AM
Hi,
You can use the "SaveAsPicture" method on a MegaDrawing object.
Here is a VB Script example:
Set MyDiagram = GetRoot().getcollection("Diagram").Item(1)
Set MyDrawing = MyDiagram.Drawing("R")
MyDrawing.SaveAsPicture "c:\temp\example2.png", 1, 0, 0, 0, 0, 0