Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 public static void SaveImage(PlotBase plot, string path)
 {
     SaveImage(plot, path, new PngPlotModelEncoder());
 }
Ejemplo n.º 3
0
        /// <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));
        }