You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I'm trying to make image of the calculated graph and that works well.
If I manually move the Nodes to get more space in the normal GraphView the bondingbox get bigger and that works well.
But in Render mode is this not possible..., see code example below.
// Create a new renderer and set its layout algorithm
var renderer = new Microsoft.Msagl.GraphViewerGdi.GraphRenderer(temp_graph);
renderer.CalculateLayout();
UpdateNodePositions(ref temp_graph, PLC_Objects); // move nodes to absolute new center position
// this is missing !!!
renderer.Graph.GeometryGraph.UpdateBoundingBox();
// this is missing !!!
// Faulty Result.
// the produced image seize is = the calculated bondingbox,
// the nodes moved outside the calculated bondingbox is missing.
// original
//gViewer1.Graph.GeometryGraph.UpdateBoundingBox();
Activity