Exemple #1
0
        public static Bitmap Plot(Plot plot, Size size)
        {
            PlotView plotView = new PlotView()
            {
                Plot = plot,
                Mode = PlotViewMode.Plain,
                Size = size
            };
            Bitmap bitmap = new Bitmap(plotView.Width, plotView.Height);

            plotView.DrawToBitmap(bitmap, plotView.ClientRectangle);
            return(bitmap);
        }
Exemple #2
0
        public static Bitmap Plot(Plot plot, Size size)
        {
            PlotView ctrl = new PlotView();

            ctrl.Plot = plot;
            ctrl.Mode = PlotViewMode.Plain;
            ctrl.Size = size;

            Bitmap bmp = new Bitmap(ctrl.Width, ctrl.Height);

            ctrl.DrawToBitmap(bmp, ctrl.ClientRectangle);

            return(bmp);
        }