First time here? Check out the FAQ!
answered 2017-06-29 19:56:11 -0600
The copyTo function takes a mask as a parameter.
transparent.copyTo(background, mask);