Set the barcode height property to changing the size of the created Data Matrix images.
Like barcode.setbarcodeheight(70);