Code128Writer class
This object renders a CODE128 code as a BitMatrix.
@author erik.barbara@gmail.com (Erik Barbara)
- Inheritance
-
- Object
- OneDimensionalCodeWriter
- Code128Writer
Constructors
Properties
- defaultMargin → int
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedWriteFormats
→ List<
BarcodeFormat> -
Results of minimal lookahead for code C
no setteroverride
Methods
-
encode(
String contents, BarcodeFormat format, int width, int height, [EncodeHint? hints]) → BitMatrix -
Encode the contents following specified format.
width
andheight
are required size. This method may return bigger sizeBitMatrix
when specified size is too small. The user can set bothwidth
andheight
to zero to get minimum size barcode. If negative value is set towidth
orheight
,IllegalArgumentException
is thrown.inherited -
encodeContent(
String contents, [EncodeHint? hints]) → List< bool> -
Encode the contents to bool array expression of one-dimensional barcode.
Start code and end code should be included in result, and side margins should not be included.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
encodeFast(
String contents, EncodeHint? hints, int forcedCodeSet) → List< bool> -
produceResult(
List< List< patterns, int checkSum) → List<int> >bool>