public boolean isRotated() {
        return rotation % 180 != 0;
    }
@return true if the preview image is rotated orthogonal to the display
zxing-android-embedded/src/com/journeyapps/barcodescanner/SourceData.java