function Attribute | Function Property | Internet Development Index |
Sets or retrieves the compositing operation to perform.
Syntax
HTML Scripting
Possible Values
sFunction Integer that specifies or receives one of the following possible values:
0 Default. CLEAR. Perform no operation. 1 MIN. Compare the brightness of each pixel in both images, and show the less bright of the two pixels. 2 MAX. Compare the brightness of each pixel in both images, and show the brighter of the two pixels. 3 A. Display only Input A. 4 A OVER B. Display Input A over Input B. All of Input A is visible, and Input B shows through translucent regions of Input A. 5 A IN B. Display all parts of Input A that are contained in Input B. Only regions with nonzero alpha values for both images are visible, and no part of Input B shows through. 6 A OUT B. Display all parts of Input A that are not contained in Input B. No part of Input B is displayed. 7 A ATOP B. Display Input A covering Input B, with each sample scaled by the alpha channel of Input B. 8 A SUBTRACT B. Display Input A with the sample color values of Input B subtracted from the corresponding sample color values of Input A. The resulting color is scaled by the alpha values of Input A. 9 A ADD B. Display Input A with the sample color values of Input B added to the corresponding sample color values of Input A. The resulting color value is scaled by the alpha value of Input A. 10 A XOR B. Display pixels of each set of input where the two images do not overlap. Pixels that overlap are scaled by their inverse alpha value. 19 B. Display only Input B. 20 B OVER A. Display Input B over Input A. All of Input B is visible, and Input A shows through translucent regions of Input B. 21 B IN A. Display all parts of Input B that are contained in Input A. Only regions with nonzero alpha values for both images are visible, and no part of Input A shows through. 22 B OUT A. Display all parts of Input B that are not contained in Input A. No part of Input A is displayed. 23 B ATOP A. Display Input B over Input A, with each sample scaled by the alpha channel of Input A. 24 B SUBTRACT A. Display Input B with the sample color values of Input A subtracted from the corresponding sample color values of Input B. The resulting color is scaled by the alpha values of Input B. 25 B ADD A. Display Input B with the sample color values of Input A added to the corresponding sample color values of Input B. The resulting color value is scaled by the alpha value of Input B. The property is read/write. The property has a default value of 0.
Applies To
Compositor