ImageProcessor class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
-
convertToMonochrome(
Image image, {int threshold = 128}) → Uint8List - Convert image to monochrome (black and white)
-
convertToPrinterFormat(
Uint8List monochromeData, int width, int height, {bool useRasterFormat = true}) → List< int> - Convert monochrome data to printer format
-
convertUIImageToBytes(
Image image) → Uint8List - Convert UI Image to bytes for printing
-
processImageForPrinting(
Uint8List imageBytes, {required PaperSize paperSize, int? maxWidth}) → Uint8List - Process image for thermal printing
-
resizeImageForPaper(
Image image, PaperSize paperSize) → Image - Resize image to fit paper width