| Raster Op |
Description |
Equation |
| Normal |
Regular pixel assignment |
P = A |
| Difference |
Absolute value difference of image A pixel and image B pixel |
P = abs(A-B)+abs(B-A) |
| Add |
Sum of image A pixel and image B pixel, overflow is truncated |
P = A+B |
| Subtract |
Subtraction of image B pixel from image A pixel, underflow is truncated |
P = A-B |
| Multiply |
Normalized multiplication of image A pixel with image B pixel |
P = normalize(A*B) |
| Darker |
Maximum of image A pixel and image B pixel |
P = max(A,B) |
| Lighter |
Minimum of image A pixel and image B pixel |
P = min(A,B) |