Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 4 of 4

Signature Capture Reference Guide, pages 15 to 22

Pages 15 to 22 of 22: Using and Rendering Signature Capture Data; Back Cover

The original document is the PDF (474 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Symbol PD8700

Page 15

Chapter 1

Using and Rendering Signature Capture Data

Chapter 1 Chapter 1 Using and Rendering Signature Capture Data

Introduction Symbol signature capture products record the graphical signature data in a vector graphics format. The signature consists of a series of lines, each with a starting point and a destination point. The details of the format are shown below. Symbol’s legacy signature capture products all scale the signature the same way. This causes reproduction problems when moving from one capture device to another because of differences in scaling and aspect ratio. This legacy format also has resolution problems on some pads. Symbol’s current signature capture products have an enhanced mode that solves both the reproduction problems and the resolution problems.

Legacy Format The legacy signature capture products scale the signature with a horizontal range of 640 corresponding to the full width of the pad and 128 corresponding to the full height of the pad. Any application attempting to reproduce the signature needs to know the dimensions of the pad in order to properly scale the signature on the output device. For the ICE 4000 product, the vertical range of 128 includes the fixed-button portion of the screen. A typical signature on the ICE 4000 uses a vertical range of about 10. Because of the shorter height on the ICE 5500 pad, the typical signature uses a vertical range of about 20. This scaling discrepancy causes problems when reproducing the signature.

Signature Capture Resolution A captured signature has a resolution of 640 X 128 pixels. The signature coordinate limits are:

(0,0)

(639,0)

(0,127)

(639,127)

Figure 1-1 Figure 1. Signature Coordinate Limits (Legacy Format)

Page 16

1-2

Signature Capture Reference Guide

Signature Data Format A signature is stored as a stream of bits. Within the bit stream there are two types of bit sequences: Move and Draw. The initial bit of a sequence indicates which type of sequence it is. Signature data always starts with a Move, thus the first bit (the most significant bit of the first byte) is always a “1” and this information can be used to identify the legacy format.

Move A Move sequence is processed by moving the graphics cursor to the absolute X,Y position specified by the sequence data. The first sequence in a compressed signature will always be a Move sequence. A Move sequence is 18-bits long.

Table 1-1 Move Sequence (Legacy Format) 1xxxxxxxxxxyyyyyyy

1

Move sequence indicator.

Xxxxxxxxxx

10-bit absolute X coordinate (0 to 639).

Yyyyyyy

7-bit absolute Y coordinate (0 to 127).

Draw A Draw sequence is processed by adding the X and Y change values to the previous graphics cursor position to determine the new cursor position. A Draw sequence is 13-bits long.

Table 1-2 Draw Sequence (Legacy Format) 0sxxxxxsyyyyy

0

Draw sequence indicator.

Sxxxxx

Signed change in the X coordinate (-31 to +31).

Syyyyyy

Signed change in the Y coordinate (-31 to +31).

Since the signature bit stream is transmitted a byte at a time, there may be as many as seven extra bits at the end of a signature. These extra bits should be discarded.

Page 17

Using and Rendering Signature Capture Data

1-3

Enhanced Format The current versions of the ICE 4000, ICE 5500, ICE 6000, and ICE 6500 products have an enhanced resolution mode allowing for a range of up to 1024 for both horizontal and vertical coordinates. More importantly, this enhanced mode now includes a header documenting the scaled resolution and the size of the pad. With this new enhanced mode, we cannot only capture better signatures, but we can also reproduce them more accurately.

Signature Capture Resolution A captured signature has a resolution of up to 1024 X 1024 pixels. The actual resolution will depend upon the value specified in the application. Assuming maximum resolution, the signature coordinate limits are:

(0,0)

(1023,0)

(0,1023)

(1023,1023)

Figure 1-2 Figure 2. Signature Coordinate Limits (Enhanced Format)

Signature Data Format A signature is stored as a ten-byte header followed by binary data.

Signature Header The signature header consists of the following data.

Table 1-3 Signature Header Data Size

Description

8 bits

ID (all bits 0)

8 bits

Header Data Length to follow in bytes (MSB first, =8)

16 bits

X-Axis Scaled Resolution (horizontal full-scale range up to 1024, MSB first)

Page 18

1-4

Signature Capture Reference Guide

Table 1-3 Signature Header Data (Continued) Size

Description

16 bits

Y-Axis Scaled Resolution (vertical full-scale range up to 1024, MSB first)

16 bits

X-Axis Physical Size (width of pad in .01 mm units, for the ICE 5500 this is 6717 corresponding to 67.17 mm, MSB first)

16 bits

Y-Axis Physical Size (height of pad in .01 mm units, MSB first)

Since the first bit of the signature data (the MSB of the first byte) is always a “0”, this key can be used to identify whether the signature data is in the legacy format or the enhanced format.

Signature Binary Data The signature binary data is a stream of bits. Within the bit stream there are two types of bit sequences: Move and Draw. The initial bit of a sequence indicates what type it is.

Move A Move sequence is processed by moving the graphics cursor to the absolute X,Y position specified by the sequence data. The first sequence in a compressed signature will always be a Move sequence. A Move sequence is 21-bits long.

Table 1-4 Move Sequence (Enhanced Format) 1xxxxxxxxxxyyyyyyy

1

Move sequence indicator.

Xxxxxxxxxx

10-bit absolute X coordinate (0 to 1023).

Yyyyyyyyyy

10-bit absolute Y coordinate (0 to 1023).

Draw A Draw sequence is processed by adding the X and Y change values to the previous graphics cursor position to determine the new cursor position. The Draw sequence is 13-bits long.

Table 1-5 Draw Sequence (Enhanced Format) 0sxxxxxsyyyyy

0

Draw sequence indicator.

Sxxxxx

Signed change in the X coordinate (-31 to +31).

Syyyyy

Signed change in the Y coordinate (-31 to +31).

Since the signature bit stream is transmitted a byte at a time, there may be as many as seven extra bits at the end of a signature. These extra bits should be discarded.

Page 19

Using and Rendering Signature Capture Data

1-5

Symbol SigCapDisplay ActiveX Control Object Symbol SigCapDisplay ActiveX Control Object exposes methods and properties to POS applications to display signature data received from the Symbol touch screen PIN pad devices like the Symbol PD8700 terminal. Symbol SigCapDisplay ActiveX Control Object also provides API to convert the raw signature data into a bitmap image. The SigCapDisplay Control Object can be added to a Form/Dialog at design time and after that it will be visible on the Form/Dialog not only in design mode, but also in run-time. Please see the description of the methods below to work with the Symbol SigCapDisplay ActiveX Control Object.

Table 1-6 SigCapDisplay Methods Method

Syntax

Remarks

ResetSignature void ResetSignature (void);

Requests the Control Object to reset or blank out any existing signature displayed and initialize internal variables.

SetSigCapData void SetSigCapData (VARIANT VectorData);

Transfers the signature data to the Control Object. The VectorData is of VARIANT type and must be of type unsigned char combined with array. For information on VARIANT type, see: http://msdn.microsoft.com/library/default.as p?url=/library/en-us/automat/htm/chap6_7z dz.asp. For sample code to convert binary data to VARIANT type data and vice versa, see: http://msdn.microsoft.com/library/default.as p?url=/library/en-us/vcsample/html/vcsmpv ariantuse demonstratesuseofvariants.asp.

Display Signature void DisplaySignature (void);

Requests the Control Object to display the signature. This method must be called after calling SetOPOSSigCapRawData or SetSigCapData.

Page 20

1-6

Signature Capture Reference Guide

Table 1-6 SigCapDisplay Methods (Continued) Method

Syntax

Remarks

SetOPOSSigCapRawData void SetOPOSSigCapRawData (String RawData, LONG BinaryConversion);

Transfers the signature data to the Control Object. This method is equivalent to the SetSigCapData method, but more suited for applications that are using Symbol OPOS Service Objects to communicate with the Symbol terminal. The BinaryConversion parameter must be set to OPOS_BC_NIBBLE or OPOS_BC_DECIMAL so that data does not get translated or misinterpreted if different development platforms were used for the POS application and ActiveX control. For more information on the BinaryDataConversion property, see the “UnifiedPOS Retail Peripheral Architecture” specification at http://www.nrf-arts.org.

GenerateBMPFile void GenerateBMPFile (String FileName);

Creates a bitmap file with the name specified in FileName after the signature is displayed inside the Control Object. The DisplaySignature method must be called before invoking this method.

ConvertIntoBmp void ConvertIntoBmp (VARIANT VectorData, String FileName);

Creates a bitmap file with the name specified FileName. This function does not have any condition and can be used solely to pass in the binary signature data in the Symbol vector format and generate a bitmap file.

Page 21

This page is a scan with no text; see it in the PDF.

Page 22

Symbol Technologies, Inc. One Symbol Plaza Holtsville, New York 11742-1300 http://www.symbol.com

72E-86291-01 Revision A - November 2006