This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

SetAlphaChannel

SetAlphaChannel[image]
adds a fully opaque alpha channel to image.
SetAlphaChannel
sets the opacity of all pixels to a.
SetAlphaChannel
sets the alpha channel of image to aimage.
  • SetAlphaChannel uses an arbitrary Mathematica graphics object as the alpha channel.
Set the pixel opacities in an image:
Specify the alpha channel using a graphics object:
Set the pixel opacities in an image:
In[1]:=
Click for copyable input
Out[1]=
 
Specify the alpha channel using a graphics object:
In[1]:=
Click for copyable input
Out[1]=
Add a constant alpha channel to an RGB image:
Add a constant alpha channel to a color image:
Set the alpha channel of an RGB image to a detected background:
Set the alpha channel of an RGB image to be the negative of its blue channel:
New in 8