-
I am pretty new in ImageMagic and I need some help. Image with alpha: Image without alpha: Or how to add alpha channel from PNG alpha file to a Tiff image without alpha channel using Magic .Net. |
Beta Was this translation helpful? Give feedback.
Answered by
dlemstra
May 15, 2020
Replies: 1 comment 1 reply
-
You can do that with the following method: using (var image = new MagickImage("without.tif"))
{
using (var alpha = new MagickImage("with.tif"))
{
image.Composite(alpha, CompositeOperator.CopyAlpha);
image.Write("out.tif");
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
adobris
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do that with the following method: