Hi stoyo,
I did same thing to create image of diagram as mentioned in the link.
Step:-
Set diagram bounds as
Dim BGBounds = New Rect(0, 0, 2050, 2050) [code]
diagram.Bounds = BGBounds
BGNode.Bounds = BGBounds
[/code]
and set zoom factor of Diagram to 500, code:
diagram.ZoomFactor = 500
and try to create image using this code:-
Dim bitmap As WriteableBitmap = diagram.CreateImage()
.
But it show exception. Exception was:
Exception of type 'System.OutOfMemoryException' was thrown.
at System.Windows.Media.Imaging.WriteableBitmap.AllocPixelBuffer()
at System.Windows.Media.Imaging.WriteableBitmap..ctor(UIElement element, Transform transform)
at MindFusion.Diagramming.Silverlight.Diagram.CreateImage(Double scale)
at MindFusion.Diagramming.Silverlight.Diagram.CreateImage().
Please suggest something...
Thanks in advance.