I get good results on the RGB channels using either the Merge or Mosaic functions, but both give me a completely white Alpha channel.
Here's what I have:
Code: Select all
using (MagickImageCollection images = new MagickImageCollection())
{
MagickImage first = new MagickImage(@"C:\Users\a\Desktop\test\1.dds");
images.Add(first);
MagickImage second = new MagickImage(@"C:\Users\a\Desktop\test\2.dds");
images.Add(second);
using (IMagickImage result = images.Merge())
{
result.Settings.SetDefine(MagickFormat.Dds, "compression", "dxt5");
result.Write(@"C:\Users\a\Desktop\test\result.dds");
}
}
I've tried playing arround with defines, AlphaOptions and have been trying to solve this for a couple of hours with no luck.
Any ideas?