I've been banging my head recently over this. I'm trying to print an image contained in a blob (signature capture) on a thermal printer using the ESC/POS escape sequence. I'm speaking to the printer via a serial connection and text printing is working fine.
I've collected hints from the following post:
http://www.b4x.com/forum/basic4android-updates-questions/24981-print-image.html
But it comes short of a concrete example and I have been unable to apply that in a concrete fashion. My attempt at resurrecting the thread has been unsuccessful. The closest I have come was this very good example written in C# (there's even a delphi translation in there):
Sending a bit image to an Epson TM-T88III receipt printer using C# and ESC/POS | Simply Does Not Work
I was able to translate most of it but I can't translate some of the lines in b4a.
I researched everywhere for a concrete example in vb6 or vb.net that take an image, let's say a bmp or jpeg, and convert and print it using that ESC/POS escape sequence. In my case, the image is already a blob so I guess there is one less step to send it.
I know very well what the Point Of Sale acronym is but honestly, ESC/POS is starting to get a whole other meaning for me. It has nothing to do with b4a as I haven't even found a vb6 example on the net so far. Like most stuff, it's probably not that complex once you know what to do...
Could someone P L E A S E help me with some lines of code over that?
Thanks in advance!
JF.
I've collected hints from the following post:
http://www.b4x.com/forum/basic4android-updates-questions/24981-print-image.html
But it comes short of a concrete example and I have been unable to apply that in a concrete fashion. My attempt at resurrecting the thread has been unsuccessful. The closest I have come was this very good example written in C# (there's even a delphi translation in there):
Sending a bit image to an Epson TM-T88III receipt printer using C# and ESC/POS | Simply Does Not Work
I was able to translate most of it but I can't translate some of the lines in b4a.
I researched everywhere for a concrete example in vb6 or vb.net that take an image, let's say a bmp or jpeg, and convert and print it using that ESC/POS escape sequence. In my case, the image is already a blob so I guess there is one less step to send it.
I know very well what the Point Of Sale acronym is but honestly, ESC/POS is starting to get a whole other meaning for me. It has nothing to do with b4a as I haven't even found a vb6 example on the net so far. Like most stuff, it's probably not that complex once you know what to do...
Could someone P L E A S E help me with some lines of code over that?
Thanks in advance!
JF.