Skip to content

Commit af4f467

Browse files
authored
Update readme.md
1 parent 29bb834 commit af4f467

File tree

1 file changed

+2
-4
lines changed
  • projects/17-07-03_wav_speed_rendering

1 file changed

+2
-4
lines changed

projects/17-07-03_wav_speed_rendering/readme.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ Rather than generating fake data, let's use some real data. A ~20 second 8-bit 4
1313
## Function Reference
1414

1515
### AddLineSignal()
16-
```
16+
```c#
1717
public void AddLineSignal(List<double> Ys, double unitsPerPoint = 10, double offsetX = 0, bool drawGrid = true)
1818
{
19-
if (AX.GetAxis()[0] == 0 && AX.GetAxis()[1] == 0) {AX.SetAxis(offsetX, Ys.Count * unitsPerPoint, Ys.Min(), Ys.Max());}
2019
double unitsPerPixel = AX.UnitsPerPxX;
2120
double iPerPixel = unitsPerPixel / unitsPerPoint;
2221
double nDataPixels = unitsPerPoint * Ys.Count / unitsPerPixel;
@@ -36,8 +35,7 @@ public void AddLineSignal(List<double> Ys, double unitsPerPoint = 10, double off
3635
points.Add(new Point(x, (int)colMin));
3736
if ((int)colMin != (int)colMax) { points.Add(new Point(x, (int)colMax)); }
3837
}
39-
if (highQuality == true) graphicsData.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
40-
graphicsData.DrawLines(new Pen(Color.Red, 1), points.ToArray()); //todo: is there a faster way to make an array?
38+
graphicsData.DrawLines(new Pen(Color.Red, 1), points.ToArray());
4139
dataPointCount = Ys.Count;
4240
dataLinesCount = points.Count;
4341
}

0 commit comments

Comments
 (0)