static readVersion(bitMatrix) {
        const numRows = bitMatrix.getHeight();
        const numColumns = bitMatrix.getWidth();
        return Version.getVersionForDimensions(numRows, numColumns);
    }
/**
     * <p>Creates the version object based on the dimension of the original bit matrix from
     * the datamatrix code.</p>
     *
     * <p>See ISO 16022:2006 Table 7 - ECC 200 symbol attributes</p>
     *
     * @param bitMatrix Original {@link BitMatrix} including alignment patterns
     * @return {@link Version} encapsulating the Data Matrix Code's "version"
     * @throws FormatException if the dimensions of the mapping matrix are not valid
     * Data Matrix dimensions.
     */
Creates the version object based on the dimension of the original bit matrix from
the datamatrix code.

See ISO 16022:2006 Table 7 - ECC 200 symbol attributes

@param bitMatrix Original  BitMatrix including alignment patterns
@return  Version encapsulating the Data Matrix Code's "version"
@throws FormatException if the dimensions of the mapping matrix are not valid
Data Matrix dimensions.
Creates the version object based on the dimension of the original bit matrix from the datamatrix code . See ISO 16022 : 2006 Table 7 - ECC 200 symbol attributes @param bitMatrix Original BitMatrix including alignment patterns @return Version encapsulating the Data Matrix Code ' s " version " @throws FormatException if the dimensions of the mapping matrix are not valid Data Matrix dimensions .
static readVersion(bitMatrix) {
        const numRows = bitMatrix.getHeight();
        const numColumns = bitMatrix.getWidth();
        return Version.getVersionForDimensions(numRows, numColumns);
    }
static readVersion ( bitMatrix ) { const numRows = bitMatrix . getHeight ( ) ; const numColumns = bitMatrix . getWidth ( ) ; return Version . getVersionForDimensions ( numRows , numColumns ) ; }
<p>Creates the version object based on the dimension of the original bit matrix from
 the datamatrix code.</p>
<p > Creates the version object based on the dimension of the original bit matrix from the datamatrix code . < / p >