PosImage class abstract
PosImage
ESC/POS command generator for printing image using (ESC *) or (GS v 0) command.
Examples
For printing image using (ESC *):
...
final PosImage imageToPrint = PosImage(
image: imageSource,
);
...
For printing image raster (using (GS v 0)):
...
final PosImage imageToPrint = PosImage.raster(
image: imageSource,
);
...
- Implemented types
Constructors
- PosImage({required Image image, PosAlign align})
-
Creates ESC/POS commands for printing image
using (ESC *) command
constfactory
- PosImage.raster({required Image image, PosAlign align, bool highDensityHorizontal, bool highDensityVertical, PosImageFn imageFn})
-
Creates a ESC/POS command for printing image
using (GS v 0) obsolete command
constfactory
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
-
generate(
Generator generator) → List< int> -
Generates ESC/POS commands based on
generator
's CapabilityProfile, PaperSize, PosStyles, etc.inherited -
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