## Printer Device Driver

[prev][next][parent][TOC]

### Compression

The compression package contains routines that compress raster image data using common printer hardware-supported compression routines.

Raster printer drivers render on a per-page basis into a raster representation of an output page. As soon as rendering is completed for a given page, that raster data can be compressed into a format that the printer hardware supports. Compressed data is typically smaller than the original uncompressed data and will therefore transmit faster across communication lines to the printer.

Note: The caller of a compression routine should allocate a buffer to hold the compressed data whose size (in bytes) is as large as the the original uncompressed data.

To use the GenPLib Compression package, you must include:

    INCL_GENPLIB_COMPRESS

Following are the GenPLib compression routines:

GplCompressRLL
GplCompressTIFF
GplCompressDeltaRow
GplCompressRLLDeltaRow
GplCompressChooseMode
GplCompressAscii85
GplFaxG3EncodeBlock
"GplFaxG3StartBlock"
"GplFaxG3EndBlock"
"GplFaxG3EndDoc"
"GplFaxG3NewFrame"
GplFaxG4EncodeBlock
"GplFaxG4EndBlock"
GplFaxTIFF2EncodeBlock
"GplFaxTIFF2StartBlock"
"GplFaxTIFF2EndBlock"