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

请教一下。。 #12

Open
xslonepiece opened this issue Aug 29, 2017 · 3 comments
Open

请教一下。。 #12

xslonepiece opened this issue Aug 29, 2017 · 3 comments

Comments

@xslonepiece
Copy link

m_imageData[result_index++] = 27;
m_imageData[result_index++] = 51;
m_imageData[result_index++] = 0;

m_imageData[result_index++] = 27;
m_imageData[result_index++] = 42;
m_imageData[result_index++] = 33;

m_imageData[result_index++] = width%256;
m_imageData[result_index++] = width/256;

这段代码能不能解释一下,在网上搜了打印图像的指令,跟这个略有出入。不知道有些参数的含义。

@xslonepiece
Copy link
Author

恩叶NP58打印机打印二维码乱码,所以想研究一下图像打印指令。
另外,这台打印机还存在问题:不支持制表符指令,导致打印出来的位置混乱。这个我已经解决了,主要是打印二维码乱码。

@huyahui
Copy link

huyahui commented Apr 9, 2018

请问您二维码乱码问题解决了吗,我也遇到这样的问题。恩叶PN100(58mm)打印机。

@huyahui
Copy link

huyahui commented Apr 13, 2018

https://github.com/huyahui/BluetoothPrinter/wiki
试试这个demo,我的就是恩叶打印机。。。改的我老费劲了。。。

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