hi walter
i used Panel.MakeBitmap method … version 1.1.9.4
and it good works
but version 1.2.2.4 is not good…
my code is
--------------------------------------------
double s = 1.0;
Rect b = myDiagram.Panel.DiagramBounds;
double w = b.Width;
double h = b.Height;
myDiagram.Panel.MakeBitmap(new Size(w, h), 96, new Point(b.X, b.Y), s
, delegate(BitmapSource img)
{
…
…
}
1. scale parameter it doesn’t works;
2. img have black background…
but this method good works… in version 1.1.9.4
Any solutions?
^^ hi walter
i found solution…
my modified code is
--------------------------------
double s = 1.0;
Rect b = myDiagram.Panel.DiagramBounds;
double w = b.Width;
double h = b.Height;
myDiagram.Panel.ZoomTime = 0;
myDiagram.Panel.MakeBitmap(new Size(w, h), 96, new Point(b.X, b.Y), s
, delegate(BitmapSource img)
{
…
…
finally
myDiagram.Panel.ZoomTime = orgZoomTime value;
}
so it works… ^^
Thanks for reporting this. I haven’t been able to reproduce this problem, though.
Does the bitmap not render well only during a diagram zoom animation? Are you calling MakeBitmap from a user command when the diagram is fully rendered and stable (not animating) and waiting for user events?
Or are you calling MakeBitmap during diagram initialization/loading?
–Thanks for reporting this. I haven’t been able to reproduce this problem, though.
–Does the bitmap not render well only during a diagram zoom animation? Are you calling MakeBitmap from a user command when the diagram is fully rendered and stable (not animating) and waiting for user events? YES
–Or are you calling MakeBitmap during diagram initialization/loading? NO