/// <summary> /// Saves the plot model to the path provided. /// </summary> /// <param name="plot"></param> /// <param name="path"></param> /// <param name="encoder"></param> public static void SaveImage <T>(PlotBase plot, string path, IPlotModelEncoder <T> encoder) { encoder.SaveImage(plot.Model, path); }
public static void SaveImage(PlotBase plot, string path) { SaveImage(plot, path, new PngPlotModelEncoder()); }
/// <summary> /// Converts a plot model into a System.Drawing.Image. /// </summary> /// <param name="plot"></param> /// <returns></returns> public static BitmapSource CreateImage(PlotBase plot) { var encoder = new PngPlotModelEncoder(); return(encoder.CreateImage(plot.Model)); }