6.3.5. Set raster area height; 6.3.6. Set raster area width; 6.3.7. Set raster y-offset- Page 110

Brother HL-2700CN Command Reference Guide for Software Developers

Table of Contents

Technical Reference Guide
GLOSSARY
background image

 

CHAPTER 2 PCL - 90 

6.3.5.

 

Set raster area height 

Esc*r#T (27)(42)(114)#(84) 

<1Bh><2Ah><72h>#<54h> 

 

This command sets the height of the raster image to be printed. 

 

# is the number of raster rows. 

 

If you use this command after using a Start Raster Graphics or a Transfer Raster Data command, it does not 
take effect until after the next End Raster Graphics command. 

 

6.3.6.

 

Set raster area width 

Esc*r#S (27)(42)(114)#(83) 

<1Bh><2Ah><72h>#<53h> 

 

This command sets the width of the raster image to be printed. 

 

# is the number of dots at the specified dots per inch resolution. 

 

If you use this command after using a Start Raster Graphics or a Transfer Raster Data command, it does not 
take effect until after the next End Raster Graphics command. 

 

6.3.7.

 

Set raster y-offset 

Esc*b#Y (27)(42)(98)#(89) 

<1Bh><2Ah><62h>#<59h> 

 

This command sets the offset (number of blank rows to be skipped) for the raster image to be printed. 

 

# is the number of rows that are left blank at the top of the image. 

 

# must be in the range 0-32767. 

 

This command is only effective in raster graphics mode, that is, after a Start Raster Graphics mode 
command. 

 

6.3.8.

 

Set compression mode 

Esc*b#M (27)(42)(98)#(77) 

<1Bh><2Ah><62h>#<4Dh> 

Identifies the method of compression used to encode the raster image that is to be sent to the printer. 

 

 # is 0, 1, 2, 3, 5, 9, 1152 or 1024. 

 

 # = 0 signifies no compression is to be used. 

 

 # = 1 indicates that run-length encoding is to be used. The raster data bytes are transmitted in pairs. The 
second byte of each pair specifies the raster output, the first byte specifies the number of times the second 
byte is successively repeated. A value of 0 for the first byte indicates a single occurrence of the second byte, 
a value of 1 indicates two consecutive occurrences of the second byte and so on. 

 

 # = 2 indicates that TIFF (tagged image file format) encoding is to be used. In this format the data is 
transmitted in groups of bytes. The first byte of each group is a control byte and defines how the subsequent 
data byte or bytes should be interpreted, and how many data bytes there are before the next control byte. If 
the two's complement value of the control byte is in the range –1 to –127, the following byte is a repeated 
data byte. The number of successive occurrences of the data byte is given by the absolute value of the 
control byte plus one - that is, if the control byte is -6, the following data byte is repeated 7 times. If the 
value of the control byte is in the range 0-127 the bytes which follow are unencoded raster data. The number 
of data bytes is given by the absolute value of the control byte plus one - that is, if the control byte is 9, the 
following ten bytes are unencoded data. If a control byte has the two's complement value –128 it is ignored 
and the next byte is treated as a control byte. 

Detailed Information for Brother HL-2700CN Command Reference Guide for Software Developers

Lists of information found in Brother HL-2700CN Command Reference Guide for Software Developers - Page 110

  • 6.3.
  • 5. Set raster area height Esc*r#T (27)(42)(114)#(84) &lt;1Bh&gt;&lt;2Ah&gt;&lt;72h&gt;#&lt;54h&gt;  This command sets the height of the raster image to be printed.
  • 6.3.
  • 6. Set raster area width Esc*r#S (27)(42)(114)#(83) &lt;1Bh&gt;&lt;2Ah&gt;&lt;72h&gt;#&lt;53h&gt;  This command sets the width of the raster image to be printed.
  • 6.3.
  • 7. Set raster y-offset Esc*b#Y (27)(42)(98)#(89) &lt;1Bh&gt;&lt;2Ah&gt;&lt;62h&gt;#&lt;59h&gt;  This command sets the offset (number of blank rows to be skipped) for the raster image to be printed.
  • 67.  This command is only effective in raster graphics mode, that is, after a Start Raster Graphics mode command.
  • 6.3.
  • 8. Set compression mode Esc*b#M (27)(42)(98)#(77) &lt;1Bh&gt;&lt;2Ah&gt;&lt;62h&gt;#&lt;4Dh&gt; Identifies the method of compression used to encode the raster image that is to be sent to the printer.
  • 24.  # = 0 signifies no compression is to be used.

Related Documents for Brother HL-2700CN Command Reference Guide for Software Developers