determineDimensions
fun determineDimensions(minCols: Int, maxCols: Int, minRows: Int, maxRows: Int, sourceCodeWords: Int, errorCorrectionCodeWords: Int): IntArray
Determine optimal nr of columns and rows for the specified number of codewords.
Return
dimension object containing cols as width and rows as height
Parameters
minCols
minimum number of columns
maxCols
maximum number of columns
minRows
minimum number of rows
maxRows
maximum number of rows
sourceCodeWords
number of code words
errorCorrectionCodeWords
number of error correction code words
Throws
when dimensions can't be determined