Compaq 5525B/31/32 manual Raster Graphics, ESC*b# of raster lines Y

Page 41

Raster Graphics

Raster Graphics

Graphics are sent to the printer using the following escape sequences:

ESC*t[70, 140]R

Raster graphics resolution

ESC*r#L

Horizontal raster graphics resolution

ESC*r#V

Vertical raster graphics resolution

The ESC*r#L and ESC*r#V escape sequences allow you to set the horizontal and vertical raster graphics resolutions independently. Valid raster graphics resolutions are 70 DPI by 72 DPI, 140 DPI by 72 DPI, 70 DPI by 144 DPI, and 140 DPI by 144 DPI. The following table lists the graphics resolution and the corresponding escape sequence used to select that graphics resolution. There are many different valid ways to select a given graphics resolution. The following table lists only one of the many valid ways.

The ESC*t#R escape sequence allows you to select a graphics resolution of either 70 x 72 dots per inch (default) or 140 x 144 dots per inch (high resolution). For example, to specify high-resolution, you would send the ESC*t140R escape sequence to the printer. Using the standard resolution, the maximum amount of graphics data that can be printed is 115.5 bytes versus 231 bytes for high-resolution.

Table 9. Graphics Resolution

Horizontal DPI

Vertical DPI

Escape Sequence

 

 

 

 

 

 

70

72

ESC*r70l72V

 

 

 

140

72

ESC*r140l72V

 

 

 

70

144

ESC*r70l144V

 

 

 

140

144

ESC*r140l144V

 

 

 

ESC*rA

Prepare for raster graphics (PCL Level I)

ESC*b[# of bytes] W[binary data]

Raster data transfer (PCL Level I)

ESC*b[# of raster lines]Y

Move paper # number of raster lines

ESC*rB

Raster graphics complete (PCL Level I)

The ESC*rA sequence informs the printer that a raster graphics dump is to follow the sequence. If the printer has received a partial line of ASCII data before this sequence is received, this escape sequence causes the ASCII data to be printed and a carriage return and line feed to be performed.

The ESC*b#W[binary data] sequence actually sends the raster data to the printer. This escape sequence must be sent for each raster line to be printed. The # of bytes parameter is the decimal number of bytes of binary graphics data to be sent to the printer. The binary data consists of a 1 for every dot to be printed and a 0 for every blank space.

41

Image 41
Contents 5525B/31/32 Line Matrix Printer Page PCL-II Programmer’s Reference Manual Page Trademark Acknowledgements Page Table of Contents Standard Ascii Character Set Related Product Information IntroductionSoftware Features HP PCL-II Switching Between the Emulations HP PCL-II Emulation Default SettingsPrinter Feature Set Compatibility Configuring the PCL-II Emulation with Control CodesLogical and Physical Pages General InformationProgrammatic Printer Control Combining Escape Sequences Escape SequencesPCL Level Escape Sequences Line Printer Escape Sequences Explanation Programmable Reset Character Font Selection Symbol Set Selection OCR-A Character Style Selection Printing in the Hex 80 through Hex FF RegionPrint Pitch Selection PCL Level Character Density SelectionHS DP NLQ Switching Character Fonts Self-test Display Functions ModePrint Mode Selection Standard Computed VFC Line SpacingVertical Forms Control VFC Page Special VFC Considerations Programmable VFCExample Form Programmable VFC Using PCLChannel Line Configuring the PCL-II Emulation with Control Codes Programmable VFC Ascii CTL MSB/LSB Example VFC Data Entry Methods \CHANGEQ 7 to 00 \CHANGEQ 8 to Logical Page Length Selection Logical Page Length SelectionText Length Vertical Margin Selection Perforation Skip ModeTransparent Print Data Horizontal Margin SelectionCursor Control ESC*b# of raster lines Y Raster GraphicsUnderlining ESC*z#V Bar Code Selection Character OverstrikeBar Codes ESC*z#H Bar Code Height ESC*z#C Bar Code Label PlacementESC*z#Q Bar Code Header Control ESC*zBar Code DataZ Bar Code Label DataPrinting Bar Codes Printing Bar Codes With Text Printing Multiple Labels On The Same LineBar Code Number of Characters Sent Bar Code Width InformationCode 3 Royal Mail EAN8Additional Product ID Assigned By Manufacturer N3+an..30 Width, Diameter, or 2nd Dimension, Inches, Logistics N4+n6 Data Value Representation US Postnet BarcodesCPI 22.5 Bars per inch US Postnet BAR Code 256X US Postnet BAR Code2 3 4 5 6 7 8 9 CPI 20 Bars per inch US Postnet Bar Code Method CPI 20 Bars per inch US Postnet Bar CodeConfiguring the PCL-II Emulation with Control Codes Standard Ascii Character Set Appendix a Index Bar Code Underlining PCL-II Upca Page Page 5525B/31/32 Line Matrix Printer