PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Data Manipulation
>
Image Processing & Analysis
>
Color Processing
>
SetAlphaChannel
>
Mathematica
>
Visualization and Graphics
>
Graphics Options & Styling
>
Colors
>
Color Processing
>
SetAlphaChannel
>
Mathematica
>
Visualization and Graphics
>
Symbolic Graphics Language
>
Graphics Directives
>
Colors
>
Color Processing
>
SetAlphaChannel
>
BUILT-IN MATHEMATICA SYMBOL
RemoveAlphaChannel
AlphaChannel
ColorCombine
ColorSeparate
See Also »
|
Basic Image Manipulation
Color Processing
New in 8.0: Alphabetical Listing
More About »
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
.
MORE INFORMATION
SetAlphaChannel
[
image
]
is equivalent to
SetAlphaChannel
.
SetAlphaChannel
ignores opacity properties of
image
.
SetAlphaChannel
uses an arbitrary
Mathematica
graphics object as the alpha channel.
SetAlphaChannel
works with images of explicit color spaces, that is, any setting of the
ColorSpace
option other than
Automatic
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Set the pixel opacities in an image:
Specify the alpha channel using a graphics object:
Set the pixel opacities in an image:
In[1]:=
Out[1]=
Specify the alpha channel using a graphics object:
In[1]:=
Out[1]=
Scope
(2)
Add a constant alpha channel to an RGB image:
Add a constant alpha channel to a color image:
Applications
(2)
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:
SEE ALSO
RemoveAlphaChannel
AlphaChannel
ColorCombine
ColorSeparate
MORE ABOUT
Basic Image Manipulation
Color Processing
New in 8.0: Alphabetical Listing
New in 8