I'm working on getting an image exported from a lightning chart control into a devex report. In order to do that I have to have an 'Image' object. My plan was to use ExportToStream and then Image.FromStream.
However, its so blurry! I can't figure out what kind of configuration I'm going to need to order to get this to export cleanly.
What am I missing?
Thanks!
Code: Select all
public Image ExportToStream(int width, int height)
{
var stream = new MemoryStream();
var options = new BitmapAntialiasOptions();
//options.ResolutionDivider = 0;
//options.BlurRadius = 0;
//options.ActualPixelWeight = 0;
this.PrimaryChart.SaveToStream(stream, TargetImageFormat.Bmp, options, width, height);
var image = Image.FromStream(stream);
return image;
}