public BarcodeGraphic(GraphicOverlay overlay) : base(overlay)
        {
            _currentColorIndex = (_currentColorIndex + 1) % COLOR_CHOICES.Length;
            var selectedColor = COLOR_CHOICES[_currentColorIndex];

            _positionPaint       = new Paint();
            _positionPaint.Color = selectedColor;

            _idPaint          = new Paint();
            _idPaint.Color    = selectedColor;
            _idPaint.TextSize = IdTextSize;

            _boxPaint       = new Paint();
            _boxPaint.Color = selectedColor;
            _boxPaint.SetStyle(Paint.Style.Stroke);
            _boxPaint.StrokeWidth = BoxStrokeWidth;
        }
 public void Start(CameraSource cameraSource, GraphicOverlay overlay)
 {
     _overlay = overlay;
     Start(cameraSource);
 }
Example #3
0
 protected Graphic(GraphicOverlay overlay)
 {
     _overlay = overlay;
 }