public Size rotate() {
        //noinspection SuspiciousNameCombination
        return new Size(height, width);
    }
Swap width and height.

@return a new Size with swapped width and height
zxing-android-embedded/src/com/journeyapps/barcodescanner/Size.java