Hi,
I'd like to export and save the image of diagram in database.
I try to do this...
Byte[] bytes = null;
using (var stream = new MemoryStream())
{
diagram.ExportToImage(stream, null, new Rect(0, 0, 400, 400), new Size(200, 200), backgroundBrush: new SolidColorBrush(Colors.White));
bytes = new Byte[stream.Length];
stream.Read(bytes, 0, bytes.Length);
}
Here is the result 0x000000000000000000000000000000000000......................................
Thank you
I'd like to export and save the image of diagram in database.
I try to do this...
Byte[] bytes = null;
using (var stream = new MemoryStream())
{
diagram.ExportToImage(stream, null, new Rect(0, 0, 400, 400), new Size(200, 200), backgroundBrush: new SolidColorBrush(Colors.White));
bytes = new Byte[stream.Length];
stream.Read(bytes, 0, bytes.Length);
}
Here is the result 0x000000000000000000000000000000000000......................................
Thank you