microsoft / automatic-graph-layout

A set of tools for graph layout and viewing
Other
1.36k stars 305 forks source link

Graph as an image object #207

Closed sunilvangala closed 5 years ago

sunilvangala commented 5 years ago

Hi Lev,

Is there any way to get the graph as an image object? I want to get the graph as a stream and use it at other places programmatically.

Thanks, Sunil.

levnach commented 5 years ago

Hi Sunil, Inside of GraphViewerGdi there is GraphRenderer that can write a graph to an Image. It is also possible to use Dot2Svg to write a graph as a SVG file. Thanks, Lev

sunilvangala commented 5 years ago

Hi Lev, Thanks for the response. I am looking for a method that can return the image object when I pass the graph. My requirement is to get the graph as an image and display it on a different form. Thanks, Sunil.

levnach commented 5 years ago

GraphRenderer saves a graph as an Image.

sunilvangala commented 5 years ago

Great. Thanks a lot, Lev. It worked.