public static byte[] quadsToByteArray(final int quad) {
        final byte[] arr = new byte[4];
        arr[0] = (byte) (quad >> 24);
        arr[1] = (byte) (quad >> 16);
        arr[2] = (byte) (quad >> 8);
        arr[3] = (byte) quad;
        return arr;
    }
Convert a quad into a byte array.

@param quad quad
@return a byte array
src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java