android/src/main/java/io/github/edufolly/fluttermobilevision/barcode/BarcodeGraphic.java
@Override
    public void draw(Canvas canvas) {
        Barcode barcode = this.barcode;
        if (barcode == null) {
            return;
        }

        // Draws the bounding box around the barcode.
        RectF rect = new RectF(barcode.getBoundingBox());
        rect = translateRect(rect);
        canvas.drawRect(rect, rectPaint);

        if (textPaint != null) {
            // Draws a label at the bottom of the barcode indicate the barcode value that was detected.
            canvas.drawText(barcode.rawValue, rect.left, rect.bottom, textPaint);
        }
    }
/**
     * Draws the barcode annotations for position, size, and raw value on the supplied canvas.
     */
Draws the barcode annotations for position, size, and raw value on the supplied canvas.
Draws the barcode annotations for position size and raw value on the supplied canvas .
@Override
    public void draw(Canvas canvas) {
        Barcode barcode = this.barcode;
        if (barcode == null) {
            return;
        }
        RectF rect = new RectF(barcode.getBoundingBox());
        rect = translateRect(rect);
        canvas.drawRect(rect, rectPaint);
        if (textPaint != null) {
            canvas.drawText(barcode.rawValue, rect.left, rect.bottom, textPaint);
        }
    }
@ Override public void draw ( Canvas canvas ) { Barcode barcode = this . barcode ; if ( barcode == null ) { return ; } RectF rect = new RectF ( barcode . getBoundingBox ( ) ) ; rect = translateRect ( rect ) ; canvas . drawRect ( rect , rectPaint ) ; if ( textPaint != null ) { canvas . drawText ( barcode . rawValue , rect . left , rect . bottom , textPaint ) ; } }
Draws the barcode annotations for position, size, and raw value on the supplied canvas.
Draws the barcode annotations for position size and raw value on the supplied canvas .
// Draws the bounding box around the barcode. // Draws a label at the bottom of the barcode indicate the barcode value that was detected.