Signature Capture - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

Signature
Signature Capture is implemented as a widget at the FancyPants GUI level. The
Capture
widget supports the definition of a signing region as well as the ability to track
stylus movement. Note that the strokes returned by the Signature Capture widget
are scaled to 320x234 (72dpi). If a higher resolution image is desired, use the API
defined below to read and process the raw data.
NOTE
During signature capture, the unit will switch to stylus only mode only if there is
one attached.
#include "svc.h"
#include "sig.h"
typedef struct {
long x : 12; // X co-ordinate 0...2047 of touched point
long y : 12; // Y co-ordinate 0...1535 of touched point
long z :
} __attribute__((packed)) xyz_t;
This is a representation of the x,y,z value of a single touched point packed into a
single 32 bit long - x,y and z are all signed quantities.
Also defines PENUP which is the special value {.x = -1, .y = -1, .z = -1}.
On error the functions all return -1 with the reason for the error in errno.
8;
//
Z co-ordinate/pressure 0...127 of touched point
D

Signature Capture

X
M
800 S
P
ERIES
ROGRAMMERS
D
EVICE
RIVERS
123
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents