Writing images using this lib #684
Unanswered
andre-luiz1997
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to print a simple image using a thermal printer that is connected using this plugin (@capacitor-community/bluetooth-le).
Although I couldn't find much information on the internet, I have ended with this function within my service:
After the bitmapData, I simply cannot print the image, since I couldn't find much info on that. I have also tried to combine this lib to manipulate the image and pass it as the write input: https://github.com/NielsLeenheer/ThermalPrinterEncoder
I always get an error on BleClient.write, sometimes "Writing characteristic failed with status code 200." and other "Writing characteristic failed with status code 201." What could it be?
The implementation of imageToBitmap is below:
Beta Was this translation helpful? Give feedback.
All reactions