compute Image Size
fun computeImageSize(cellSize: Int = DEFAULT_CELL_SIZE, margin: Int = 0, rawData: QRCodeRawData = encode()): Int(source)
fun computeImageSize(cellSize: Int = DEFAULT_CELL_SIZE, margin: Int = DEFAULT_MARGIN, size: Int): Int(source)
Compute the final size of the image of this QRCode based on the given cellSize
and margin
.
This means this QRCode will be <size> x <size>
pixels. For example, if this method returns 100, the resulting image will be 100x100 pixels.