UPCEWriter
This object renders an UPC-E code as a io.github.yuroyami.kiteqr.common.BitMatrix.
Functions
Link copied to clipboard
Can be overwritten if the encode requires to read the hints map. Otherwise it defaults to encode.
Encode a barcode using the default settings.
open override fun encode(contents: String, format: BarcodeFormat, width: Int, height: Int, hints: Map<EncodeHintType, *>?): BitMatrix
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.
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.
Link copied to clipboard