New Icons and Zoom of graph were added
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Media.Imaging;
|
||||
|
||||
namespace StructureHelperLogics.NdmCalculations.Analyses
|
||||
{
|
||||
public class ExportResultToBitmapLogic : IExportResultLogic
|
||||
{
|
||||
private BitmapImage bitmapImage;
|
||||
|
||||
public ExportResultToBitmapLogic(BitmapImage bitmapImage)
|
||||
{
|
||||
this.bitmapImage = bitmapImage;
|
||||
}
|
||||
|
||||
public string FileName { get; set; }
|
||||
|
||||
public void Export()
|
||||
{
|
||||
using (var fileStream = new FileStream(FileName, FileMode.Create))
|
||||
{
|
||||
BitmapEncoder encoder = new BmpBitmapEncoder();
|
||||
encoder.Frames.Add(BitmapFrame.Create(bitmapImage));
|
||||
encoder.Save(fileStream);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user