alphaMask

fun alphaMask(other: Image): Image

Applies an alpha mask to the image using another image as the mask. This operation sets the alpha channel of the image based on the brightness of the mask image.

Return

A new Image object with the alpha mask applied.

Parameters

other

The image to use as the alpha mask.