BinaryBitmap class
This class is the core bitmap class used by ZXing to represent 1 bit data. Reader objects accept a BinaryBitmap and attempt to decode it.
Constructors
- BinaryBitmap(Binarizer _binarizer)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
@return The height of the bitmap.
no setter
- isCropSupported → bool
-
@return Whether this bitmap can be cropped.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int
-
@return The width of the bitmap.
no setter
Methods
-
crop(
int left, int top, int width, int height) → BinaryBitmap - Returns a new object with cropped image data. Implementations may keep a reference to the original data rather than a copy. Only callable if isCropSupported() is true.
-
getBlackMatrix(
) → BitMatrix - Converts a 2D array of luminance data to 1 bit. As above, assume this method is expensive and do not call it repeatedly. This method is intended for decoding 2D barcodes and may or may not apply sharpening. Therefore, a row from this matrix may not be identical to one fetched using getBlackRow(), so don't mix and match between them.
-
getBlackRow(
int y, BitArray row) → BitArray - Converts one row of luminance data to 1 bit data. May actually do the conversion, or return cached data. Callers should assume this method is expensive and call it as seldom as possible. This method is intended for decoding 1D barcodes and may choose to apply sharpening.
-
isRotateSupported(
) → bool - @return Whether this bitmap supports counter-clockwise rotation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rotateCounterClockwise(
) → BinaryBitmap - Returns a new object with rotated image data by 90 degrees counterclockwise. Only callable if {@link #isRotateSupported()} is true.
-
rotateCounterClockwise45(
) → BinaryBitmap - Returns a new object with rotated image data by 45 degrees counterclockwise. Only callable if {@link #isRotateSupported()} is true.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited