encode
Encode the contents to boolean array expression of one-dimensional barcode. Start code and end code should be included in result, and side margins should not be included.
Return
a boolean[] of horizontal pixels (false = white, true = black)
Parameters
barcode contents to encode
Can be overwritten if the encode requires to read the hints map. Otherwise it defaults to encode.
Return
a boolean[] of horizontal pixels (false = white, true = black)
Parameters
barcode contents to encode
encoding hints
Encode a barcode using the default settings.
Return
BitMatrix representing encoded barcode image
Parameters
The contents to encode in the barcode
The barcode format to generate
The preferred width in pixels
The preferred height in pixels
Throws
if contents cannot be encoded legally in a format
Encode the contents following specified format. width and height are required size. This method may return bigger size BitMatrix when specified size is too small. The user can set both width and height to zero to get minimum size barcode. If negative value is set to width or height, IllegalArgumentException is thrown.