Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Show the alpha channel of an image as a checkerboard pattern
ResourceFunction["ShowAlphaChannel"][img] highlights an image’s alpha channel using a checkerboard pattern. | |
ResourceFunction["ShowAlphaChannel"][img,c] highlights an image’s alpha channel using a checkerboard pattern with contrast c. |
ShowAlphaChannel will show partial transparency with a transparent checkerboard:
In[1]:= |
Out[1]= |
In[2]:= |
Out[2]= |
ShowAlphaChannel can be applied directly to AnimatedImage expressions:
In[3]:= |
In[4]:= |
Out[4]= |
The level of transparency of the checkerboard can be controlled:
In[5]:= |
In[6]:= |
Out[6]= |
In[7]:= |
Out[7]= |
In a typical image, it is impossible to see the difference between white and alpha channel transparency:
In[8]:= |
ShowAlphaChannel distinguishes the two:
In[9]:= |
Out[9]= |
An image with no alpha channel will not be changed by ShowAlphaChannel:
In[10]:= |
Out[10]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License