Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
esc_pos_print_plus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dio Maulana
esc_pos_print_plus
Commits
7b9f912d
Commit
7b9f912d
authored
Sep 02, 2019
by
Andrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added GS * command (print image)
parent
37f9dfd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
commands.dart
lib/src/commands.dart
+2
-1
printer.dart
lib/src/printer.dart
+1
-1
No files found.
lib/src/commands.dart
View file @
7b9f912d
...
...
@@ -46,4 +46,5 @@ const cFeedN = '${esc}d'; // Print and feed n lines [N]
const
cReverseFeedN
=
'
${esc}
e'
;
// Print and reverse feed n lines [N]
// Bit Image
const
cImgPrint
=
'
${gs}
v0'
;
// Print raster bit image [obsolete command]
const
cRasterImg
=
'
${gs}
v0'
;
// Print raster bit image [obsolete command]
const
cBitImg
=
'
$esc
*'
;
// Set bit image mode
lib/src/printer.dart
View file @
7b9f912d
...
...
@@ -329,7 +329,7 @@ class Printer {
const
int
densityByte
=
(
highDensityVertical
?
0
:
1
)
+
(
highDensityHorizontal
?
0
:
2
);
final
List
<
int
>
header
=
List
.
from
(
c
ImgPrint
.
codeUnits
);
final
List
<
int
>
header
=
List
.
from
(
c
RasterImg
.
codeUnits
);
header
.
add
(
densityByte
);
header
.
addAll
(
_intLowHigh
(
widthBytes
,
2
));
header
.
addAll
(
_intLowHigh
(
heightPx
,
2
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment