PrinterImages class
Image printing functions for Bixolon printers.
This class provides methods for printing images from various sources and with different formatting options.
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
-
printDivider(
{String style = 'line', int width = 0}) → Future< bool> - Print a divider image.
-
printImage(
String imagePath, {int width = 0, Alignment alignment = Alignment.centerLeft}) → Future< bool> - Print an image from a file path.
-
printImageBytes(
Uint8List imageBytes, {int width = 0, Alignment alignment = Alignment.centerLeft}) → Future< bool> - Print an image from bytes.
-
printImageWithCaption(
String imagePath, {required String caption, int width = 0, Alignment alignment = Alignment.center, double fontSize = 18}) → Future< bool> - Print an image with a caption.
-
printLogo(
String logoPath, {int width = 0, bool addSpacing = true}) → Future< bool> - Print a logo at the top of a receipt.
-
printOptimizedImage(
String imagePath, {int width = 0, Alignment alignment = Alignment.centerLeft, int threshold = 128, bool dither = true}) → Future< bool> - Optimize an image for thermal printing and print it.
-
printQRCode(
String data, {int size = 200, Alignment alignment = Alignment.center}) → Future< bool> - Print a QR code image.
-
printWidget(
Widget widget, {required double width, required double height}) → Future< bool> - Print a bitmap from a Flutter widget.