How to Print images with TSPL and JavaScriptby@altynberg
1,353 reads

How to Print images with TSPL and JavaScript

tldt arrow
Read on Terminal Reader🖨️

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

@altynberg

Altynbek Usenbekov

About @altynberg
LEARN MORE ABOUT @ALTYNBERG'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa