Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

蓝牙打印图片问题,我发现封装的tsc.js里对于图片的指令好像有些问题 #14

Open
Burst-Linker999 opened this issue Sep 7, 2020 · 1 comment

Comments

@Burst-Linker999
Copy link

tsc.js原内容
data = "BITMAP " + x + "," + y + "," + width + "," + height + "," + mode + ","
jpPrinter.addCommand(data)
我修正后却打印出一团像条形码的黑块,图片格式是png,大小3kb
我修正的方式是直接从res把data拿过来用了,这一步是不是做错了
data = "BITMAP " + x + "," + y + "," + width + "," + height + "," + mode + "," + res.data
jpPrinter.addCommand(data)

@Burst-Linker999 Burst-Linker999 changed the title 蓝牙打印图片问题,我发现封装的tsc.js里对于图片的指令好像有些问题,addcommand时没有带上图片数据 蓝牙打印图片问题,我发现封装的tsc.js里对于图片的指令好像有些问题 Sep 14, 2020
@tong822218
Copy link

请问解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants