Note When using the MC command, some pattern types will not produce the expected ROP result. This only occurs when using the FT (Fill Type) command pattern types 1, 2, 3, and 4, and the ROP includes an XOR operation. (This problem is due to the fact that these patterns are the result of a vector operation and do not produce raster data for use by a ROP operation.) All other Fill Type command patterns (types, 10, 11, 21, or 22) operate as expected.
opcode
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 (also see Table
Table | Common Opcodes |
|
|
|
| ||
|
|
|
|
|
|
| |
| Pixel Combinations | Desired Destination Values | |||||
Pattern Pixel | Source Pixel |
| Destination | Source | Transparency | Source | |
|
|
|
| Pixel | Overwrite | (TR | Destination |
|
|
|
|
|
| command) |
|
0 |
| 0 |
| 0 | 0 | 0 | 0 |
0 |
| 0 |
| 1 | 0 | 1 | 1 |
0 |
| 1 |
| 0 | 1 | 1 | 1 |
0 |
| 1 |
| 1 | 1 | 1 | 0 |
1 |
| 0 |
| 0 | 0 | 0 | 0 |
1 |
| 0 |
| 1 | 0 | 1 | 1 |
1 |
| 1 |
| 0 | 1 | 1 | 1 |
1 |
| 1 |
| 1 | 1 | 1 | 0 |
| Resulting Opcode |
| 204 (0xCC) | 238 (0xEE) | 102 (0x66) |