by Joe Maller on 18 Oct, 2002 01:34, Applies to: FCP 3.04 from:
InvertChannel inverts channels in an image buffer. The doAlpha, doRed, doGreen and doBlue varaibles are boolean switches, use True or 1 and False or 0 to turn inversion on or off. This function can self-target, so the destination image can be the same as the source image.
All channels are moved from source to destination, channels marked for inversion are inverted during the move. InvertChannel is YUV safe and faster than the other inversion functions Invert.
Authors own their submissions and grant full use rights to the site owner.
Commercial reproduction is prohibited without prior written permission (please ask first).
The FXScript Reference is an independent resource, created and funded through user contributions and my wallet. If you find the site useful, please donate to help keep this unique resource online.
InvertChannel inverts channels in an image buffer. The doAlpha, doRed, doGreen and doBlue varaibles are boolean switches, use True or 1 and False or 0 to turn inversion on or off. This function can self-target, so the destination image can be the same as the source image.
All channels are moved from source to destination, channels marked for inversion are inverted during the move. InvertChannel is YUV safe and faster than the other inversion functions Invert.