private static void drawLine(Canvas canvas, Paint paint, ResultPoint a, ResultPoint b, int scaleFactor) {
        if (a != null && b != null) {
            canvas.drawLine(a.getX() / scaleFactor,
                    a.getY() / scaleFactor,
                    b.getX() / scaleFactor,
                    b.getY() / scaleFactor,
                    paint);
        }
    }
This contains the result of a barcode scan.

This class delegate all read-only fields of {@link com.google.zxing.Result},
and adds a bitmap with scanned barcode.
zxing-android-embedded/src/com/journeyapps/barcodescanner/BarcodeResult.java