HP (Hewlett-Packard) PCL Printer User Manual


 
EN Color Vector Graphics (HP-GL/2) 7-7
Opcode — Specifies the logical operations performed on a
source, destination, and pattern prior to drawing the final
image. These raster opcodes (ROPs) are listed on the
following pages in reverse polish notation (RPN) using the
following abbreviations:
D — Destination
S — Source
T — Texture
a — and
n — not
o — or
x — exclusive or
For example, when mode = 0, the opcode default is 252, which is the
logical function TSo (Texture OR Source).
The operation code (opcode) specifies the logical operations that are
performed on a source, destination, and patterned image prior to
drawing the final image. The opcodes are created by listing all
possible combinations of a single pattern, source and destination
pixel, and constructing the desired final pixel values. The following
table shows three common opcodes constructed by reading the
output values bottom up.
Pixel Combinations Desired Destination Values
Patter Pixel Source Pixel Destination
Pixel
Source
Overwrite
Transparency
(TR command)
Source
Destination
000000
001011
010111
011110
100000
101011
110111
111110
Resulting Opcode 204 (0xCC) 238 (0xEE) 102 (0x66)