im.AlphaMask
Function: im.AlphaMask( | base, mask, **properties) |
base and mask should be image manipulators. This function takes the red channel from mask, and applies it to the alpha channel of base to create a new image.
Example
init: image eileen happy = im.AlphaMask("eileen_happy.base.jpg", "eileen_happy.mask.jpg")