RemoveAlphaChannel
✖
RemoveAlphaChannel
Details

- RemoveAlphaChannel returns an image or a color without an opacity value or alpha channel, either dropping or blending the colors with a specified background color.
- RemoveAlphaChannel returns the original color or image if it does not contain an alpha channel.
- When blending with a background color, an RGB or grayscale color or image is always returned.
- RemoveAlphaChannel works with any valid color directive as well as 2D and 3D images.

Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Remove opacity from a color directive:

https://wolfram.com/xid/0bc6mudgk689qs2-bdk6yx

Drop the alpha channel from an image:

https://wolfram.com/xid/0bc6mudgk689qs2-qnqfl

Remove opacity by blending with a white background:

https://wolfram.com/xid/0bc6mudgk689qs2-lkqtcu


https://wolfram.com/xid/0bc6mudgk689qs2-cmkgim

Scope (6)Survey of the scope of standard use cases
Remove opacity from a color directive:

https://wolfram.com/xid/0bc6mudgk689qs2-4obl8u

Remove an opaque mask from a grayscale image:

https://wolfram.com/xid/0bc6mudgk689qs2-gvhs5i

Remove opacity by blending with a pink background:

https://wolfram.com/xid/0bc6mudgk689qs2-fio9d9

Remove the alpha channel from a 3D image:

https://wolfram.com/xid/0bc6mudgk689qs2-b3tgjq

Blend with a black background:

https://wolfram.com/xid/0bc6mudgk689qs2-u01ba

Remove the alpha channel from a video:

https://wolfram.com/xid/0bc6mudgk689qs2-8ddgpz



https://wolfram.com/xid/0bc6mudgk689qs2-81uscc


Applications (2)Sample problems that can be solved with this function
Replace all transparent colors with fully opaque colors in graphics:

https://wolfram.com/xid/0bc6mudgk689qs2-woe0l3

https://wolfram.com/xid/0bc6mudgk689qs2-4v7g9w

https://wolfram.com/xid/0bc6mudgk689qs2-j3q4hn

Create artistic effects using alpha blending:

https://wolfram.com/xid/0bc6mudgk689qs2-j661dj

Properties & Relations (2)Properties of the function, and connections to other functions
On an image with no alpha channel, the input image is returned:

https://wolfram.com/xid/0bc6mudgk689qs2-ebhe3z

Remove the alpha channel using ColorSeparate followed by ColorCombine:

https://wolfram.com/xid/0bc6mudgk689qs2-4zlf4


https://wolfram.com/xid/0bc6mudgk689qs2-enbovv

Wolfram Research (2010), RemoveAlphaChannel, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoveAlphaChannel.html (updated 2022).
Text
Wolfram Research (2010), RemoveAlphaChannel, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoveAlphaChannel.html (updated 2022).
Wolfram Research (2010), RemoveAlphaChannel, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoveAlphaChannel.html (updated 2022).
CMS
Wolfram Language. 2010. "RemoveAlphaChannel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/RemoveAlphaChannel.html.
Wolfram Language. 2010. "RemoveAlphaChannel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/RemoveAlphaChannel.html.
APA
Wolfram Language. (2010). RemoveAlphaChannel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RemoveAlphaChannel.html
Wolfram Language. (2010). RemoveAlphaChannel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RemoveAlphaChannel.html
BibTeX
@misc{reference.wolfram_2025_removealphachannel, author="Wolfram Research", title="{RemoveAlphaChannel}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/RemoveAlphaChannel.html}", note=[Accessed: 19-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_removealphachannel, organization={Wolfram Research}, title={RemoveAlphaChannel}, year={2022}, url={https://reference.wolfram.com/language/ref/RemoveAlphaChannel.html}, note=[Accessed: 19-June-2025
]}