Browse Prior Art Database

Raster Image Graphics Personal Printer Data Stream Command

IP.com Disclosure Number: IPCOM000100094D
Original Publication Date: 1990-Mar-01
Included in the Prior Art Database: 2005-Mar-15
Document File: 3 page(s) / 96K

Publishing Venue

IBM

Related People

Buchanan, JC: AUTHOR [+3]

Abstract

This command is used to transmit control parameters and raster APA image data to a printer using the IBM Personal Printer Data Stream. A variable-length parameter list is used to identify the format of the APA data and process the APA data.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 47% of the total text.

Raster Image Graphics Personal Printer Data Stream Command

       This command is used to transmit control parameters and
raster APA image data to a printer using the IBM Personal Printer
Data Stream.  A variable-length parameter list is used to identify
the format of the APA data and process the APA data.

      When this command is processed, the horizontal position of the
cursor is saved as temporary left margin.  Upon completion of each
raster line of APA data, the cursor is returned to the temporary left
margin and advanced based on the vertical resolution.

      Command Format
CHR$(27);CHR$(91);CHR$(104);CHR$(CNT1);CHR$(CNTh);
CHR$(PARM_LENGTH);                      'Length Parameter List'
CHR$(PARM_1);CHR$(PARM_n);                     'Parameter List'
CHR$(APA_1);CHR$(APA_n);                             'APA Data'

      PARM_LENGTH:  PARM_LENGTH is an unsigned byte value which
identifies the number of bytes of data in the parameter list which
follows the PARM_LENGTH field.  A value of zero indicates the absence
of a parameter list.  In this case, all previous values of the
parameter fields are used and the APA data immediately follows the
PARM_LENGTH field.

      PARM_1 ... PARM_n:  This is a variable length parameter list as
follows:
PARM      Description
Byte
1-2       Horizontal Resolution Parameter:  An unsigned
           integer value parameter giving the horizontal
           resolution in pels per inch at which the APA data
           is to be printed.  If the printer does not support
           the specified resolution then the next larger
           resolution, value is used.  If a larger resolution
           is not supported, then the next smaller resolution
           is used.
           If a value of zero is specified, then the previous
           value is used.
           If more than one pel is required to represent a
           data bit of APA, then the first pel of the
           expansion is placed at the active cursor position.
3-4       Vertical Resolution Parameter:  An unsigned
           integer value parameter giving the vertical
           resolution in pels per inch at which the APA data
           is to be printed.  If the printer does not support
           the specified resolution, then the next larger
           resolution value is used.  If a larger resolution
           is not supported, then the next smaller resolution
           is used.
           If a value of zero is specified, then the previous
           value is used.
           If more than one line of pels is required to
           represent a data bit of APA, then the first line
         ...