Пример #1
0
        void Refresh(object sender, EventArgs e)
        {
            _plotSurface.Clear();
            _plotSurface.BackColor = Color.Black;

            if (!_component.ComputeProfile())
            {
                _plotSurface.Refresh();
                return;
            }

            LinePlot linePlot = new LinePlot();

            linePlot.AbscissaData = _component.PixelIndices;
            linePlot.OrdinateData = _component.PixelValues;
            linePlot.Pen          = new Pen(ClearCanvasStyle.ClearCanvasBlue);

            _plotSurface.Add(linePlot);
            _plotSurface.PlotBackColor = Color.Black;
            _plotSurface.XAxis1.Color  = Color.White;
            _plotSurface.YAxis1.Color  = Color.White;
            _plotSurface.Refresh();
        }
Пример #2
0
        private void Refresh(object sender, EventArgs e)
        {
            _plotSurface.Clear();
            _plotSurface.BackColor = Color.Black;

            if (!_component.ComputeProfile())
            {
                _plotSurface.Refresh();
                return;
            }

            LinePlot linePlot = new LinePlot();

            linePlot.AbscissaData = _component.PixelIndices;
            linePlot.OrdinateData = _component.PixelValues;
            linePlot.Pen          = new Pen(Application.CurrentUITheme.Colors.StandardColorBase);

            _plotSurface.Add(linePlot);
            _plotSurface.PlotBackColor = Color.Black;
            _plotSurface.XAxis1.Color  = Color.White;
            _plotSurface.YAxis1.Color  = Color.White;
            _plotSurface.Refresh();
        }