public void draw_Graph(object sender, EventArgs e) { _xvalue = new double[Larray.Length]; _yvalue = new double[Larray.Length]; for (int i = 0; i < Larray.Length; i++) { //Larray is the byte variable from filestream. i saved it to stream. _xvalue[i] = i; _yvalue[i] = Convert.ToDouble(Larray[i]); } _myPionts = new PointPairList(_xvalue, _yvalue); LineItem _myLine = _myPane.AddCurve("Sine Wave", _myPionts, Color.Black, SymbolType.None); _myLine.Line.IsAntiAlias = true; _myLine.Line.IsSmooth = true; zedGraphControl1.AxisChange(); zedGraphControl1.Invalidate(); zedGraphControl1.Refresh(); }
Larray
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)