/// <summary> /// Initializes a new instance of the <see cref="ResultPoint"/> class. /// </summary> public ResultPoint(ZXing.ResultPoint other) { X = other.X; Y = other.Y; hashCode = other.GetHashCode(); toString = other.ToString(); }
public void AddPossibleResultPoint(ZXing.ResultPoint point) { var points = possibleResultPoints; lock (points) { points.Add(point); var size = points.Count; if (size > MAX_RESULT_POINTS) { points.RemoveRange(0, size - MAX_RESULT_POINTS / 2); } } }
private void drawLine(Canvas canvas, Paint paint, ZXing.ResultPoint a, ZXing.ResultPoint b) { canvas.DrawLine(a.X, a.Y, b.X, b.Y, paint); }