-
Notifications
You must be signed in to change notification settings - Fork 319
Open
Description
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();
best regards
Undertaker911
Metadata
Metadata
Assignees
Labels
No labels