Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 2
0
        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);
                }
            }
        }
Ejemplo n.º 3
0
 private void drawLine(Canvas canvas, Paint paint, ZXing.ResultPoint a, ZXing.ResultPoint b)
 {
     canvas.DrawLine(a.X, a.Y, b.X, b.Y, paint);
 }