EAN8Writer class
This object renders an EAN8 code as a BitMatrix.
@author aripollak@gmail.com (Ari Pollak)
- Inheritance
-
- Object
- OneDimensionalCodeWriter
- UPCEANWriter
- EAN8Writer
Constructors
Properties
- defaultMargin → int
-
Use a different default more appropriate for UPC/EAN
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> -
no setteroverride
Methods
-
encode(
String contents, BarcodeFormat format, int width, int height, [EncodeHint? hints]) → BitMatrix -
Encode the contents following specified format.
widthandheightare required size. This method may return bigger sizeBitMatrixwhen specified size is too small. The user can set bothwidthandheightto zero to get minimum size barcode. If negative value is set towidthorheight,IllegalArgumentExceptionis thrown.inherited -
encodeContent(
String contents, [EncodeHint? hints]) → List< bool> -
@return a byte array of horizontal pixels (false = white, true = black)
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