02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter —Image Transfer<br />

PRBUF Protocol<br />

The PRBUF Protocol is designed for downloading bitmap print image data<br />

directly from an application program, such as a Windows printer driver,<br />

directly to the printer’s image buffer in connection with the PRBUF statement.<br />

The protocol consist of a two-byte header and a number of data bytes:<br />

Header<br />

Byte No 1. is always the @-sign (Commercial at; Unicode 0x0040) and<br />

indicates start of the protocol header.<br />

Byte No 2 is:<br />

0 Reserved (bitmap format)<br />

1 Reserved (RLL image format)<br />

2 RLL buffer format<br />

3-255 Reserved<br />

RLL Buffer format<br />

The RLL buffer format is optimized for use by Windows drivers. In most<br />

cases the performance of the host outruns the performance of the printer,<br />

so it is preferred to to do most of the processing in the host before sending<br />

the job down to the printer.<br />

- Data byte 1 & 2 specifies the pixelwidth (unsigned) of data in BIG<br />

Endian format for one line.<br />

- Data byte 3 & 4 specifies the pixelheight (unsigned) of the buffer when<br />

it is expanded BIG Endian.<br />

- Data byte 5-nn specifies the bitmap in RLL format.<br />

Example of RLL buffer protocol header, 515x212 pixels hexdump:<br />

40 02 02 03 00 d4<br />

RLL format<br />

The RLL format is good for black and white pixel runs. It compresses data<br />

in both dimensions. It works well with one-dimensional bar codes, but<br />

grayscales grow in size instead of shrinking. The format is symmetric so<br />

that all pixel runs start and end with a white pixel and with line repetitions<br />

whenever applicable. This makes the format possible to turn upside down.<br />

The RLL format is specified on the next page.<br />

08 <strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!