leesiongchan / react-native-esc-pos

A React Native ESC/POS module to help you connect to your ESC/POS printer easily.
MIT License
80 stars 84 forks source link

Color of image after print only black and white #60

Open lytrunghieu opened 4 years ago

lytrunghieu commented 4 years ago

I have a picture with many color, but after print, image just only have 2 color: black and white, not exist color is between black and white. This is my code

EscPos.connect(address).then(async success =>{ EscPos.setPrintingSize(EscPos.PRINTING_SIZE_80_MM); await EscPos.printImage(uri); await EscPos.disconnect(); }).catch(error =>{ console.log("error ", error); });

deckyfx commented 4 years ago

AFAIK, this lib is meant to be used to print to Thermal or Dot Matrix Printer, and both types has no support for color printing

lytrunghieu commented 4 years ago

AFAIK, this lib is meant to be used to print to Thermal or Dot Matrix Printer, and both types has no support for color printing

I'm mean, I can't see detail of image because all dot have color will be black. Ex: a avatar will be black block, I can't see mouth, eye, nose