ModuleCount Property

Indicates the number of modules in the barcode.


public int getModuleCount()



A module is defined as any one of the thinnest bars of the barcode. The number of modules in a barcode gives the minimum width of the barcode in pixels. The barcode width can only be a multiple of this minimum width. Depending on the user printer resolution and the barcode type, a barcode of the minimum width may not be scannable, so using a bigger width may be necessary.