How can I convert an electronic signature into a printable image in triPOS?
For PointsBigEndian and PointsLittleEndian, the data received from the PIN pads isa series of 4 byte coordinates, 2 bytes for X and 2 bytes for Y. The onlydifference between the formats is whether the high or low order byte comesfirst in each 2 bytes.
A simple PointsBigEndianexample: if the bytes are 0x00 0x01 0x00 0x02 0x00 0x03 0x00 0x04 0xFF 0xFF0xFF 0xFF, then the points are X=1 Y=2, X=3 Y=4, X=-1 Y=-1 where X=-1 Y=-1 is apen up.
A simple PointsLittleEndianexample: if the bytes are 0x01 0x00 0x02 0x00 0x03 0x00 0x04 0x00 0xFF 0xFF0xFF 0xFF, then the points are X=1 Y=2, X=3 Y=4, X=-1 Y=-1 where X=-1 Y=-1 is apen up.
Those are simple examples so beaware it is not simply skipping every other byte to get the values. Each X andY are 2 bytes so if the bytes for a single big Endian coordinate are 0x01 0x020x03 0x04, that translates to X=258 Y=772. For the same coordinate, the littleEndian bytes would be 0x02 0x01 0x04 0x03.
There is some Sample code available here.
Retrieving data ...