mMasked=MaskImageIn(m [,alphaIn])

Accept an image matrix “m” and return “nMasked”, holding the same image
but with adjusted alpha values. MaskImageIn sets full transparency
for pixels with value zero and sets full opacity for pixels with
non-zero value.

If the optional alphaIn argument is specified then MaskImageIn sets
non-zero pixels to alphaIn opacity instad of to full opacity, 255.

see also: SetImageAlpha, MaskImageOut, AlphaDemo.

Path   Retrieve current version from GitHub | View changelog