InvertChannel
InvertChannel(srcImage, destImage, doAlpha, doRed, doGreen, doBlue)
Additional Notes
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.

