Set raster area height, Set raster area width, Set raster y-offset – Brother HL-2170W User Manual
Page 105: Set compression mode
CHAPTER 2 PCL - 86
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.
- HL-1670N HL-6050D HL 5250DN HL-5070N HL-2460 HL-6050DN HL-2150N HL 2700CN HL-2130 HL-S7000DN HL-3040CN HL 1650 HL-6050 HL-5240 HL-5240L HL-1470N HL 3070CW HL 5170DN HL-3450CN HL-3140CW HL 5470DW HL-5140 HL-5440D HL-7050 HL-2240 HL-5040 HL-4070CDW HL-1870N HL-1110 HL-1850 HL 4150CDN HL-8050N HL 5450DN HL 5370DW HL-5050 HL-2140 HL 1270N HL-2600CN HL-6180DW HL-5350DN HL-4050CDN HL-2070N HL-3260N HL-5150D HL-5280DW HL-3170CDW HL-4570CDW HL-3150CDW HL 4040CN HL-4140CN HL 2240D HL 2270DW HL-1250 HL-7050N HL 5340D HL-2250DN HL-1450 HL-L9200CDWT HL-1112 HL-5270DN HL-5450DNT HL-L8250CDN HL 4570CDWT HL-5380DN HL-6180DWT HL-L8350CDW HL-4040CDN HL-L8350CDWT HL-2230 HL-5470DWT HL 2220 HL-1110E HL-1112E