paint-brush
How to Print images with TSPL and JavaScriptby@altynberg
3,860 reads
3,860 reads

How to Print images with TSPL and JavaScript

by Altynbek Usenbekov5mJuly 7th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

We can build labels using TSPL commands like `BARCODE` and`BITMAP` We can add an image to the label with the command `BITMAP' To demonstrate how to print an image, I created a simple code using Node.js. Generated commands can be sent to the Bluetooth printer over Serial or Serial Serial or to the printer over Bluetooth. The command: 'Barcode' is a command to print a label with a simple arrow with the size of 16x16 dots. The image is a bitmap data which is basically a set of data that says which dot should be empty and which dot is painted.
featured image - How to Print images with TSPL and JavaScript
Altynbek Usenbekov HackerNoon profile picture
Altynbek Usenbekov

Altynbek Usenbekov

@altynberg

Software Engineer

About @altynberg
LEARN MORE ABOUT @ALTYNBERG'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Altynbek Usenbekov HackerNoon profile picture
Altynbek Usenbekov@altynberg
Software Engineer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite