This project has moved and is read-only. For the latest updates, please go here.

DDS format

Nov 5, 2013 at 3:19 PM

is it possible to save an dds file with different compression ({dxt1, dxt5, none})?

I can't find informations about the compression or the mipmaps.
Nov 5, 2013 at 3:47 PM
You can find information about the available options here: Scroll down till you find DDS. -define is the same as the SetOption method of MagickImage:
using (MagickImage image = new MagickImage("input.png"))
  image.SetOption(MagickFormat.Dds, "compression", "dxt1");
Nov 5, 2013 at 4:03 PM
Thank you,

i had read this but i don't know about the -define and SetOption thing.
Nov 5, 2013 at 10:21 PM
I should probably rename the SetOption method to SetDefine to avoid confusion in the future.
Nov 7, 2013 at 10:32 AM
Yes, think this would be a great idea.
Maybe you can add an example to the documentation.
Nov 7, 2013 at 10:45 AM
Edited Nov 7, 2013 at 12:31 PM
Okay, I will make the change and add a new page to the documentation that contains the example above.

You can find the page here:
Nov 7, 2013 at 12:36 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.