Search code examples
c#imagedirectdrawdds-format

How to load .dds files into a picturebox?


How do I load .dds texture files as an Image in C#? There's nothing useful on google that I could find.

The more information with samples you give me,the better it will be for me to understand it.


Solution

  • I think the short answer is that you don't. The documentation says that the supported formats are BMP, GIF, EXIG, JPG, PNG and TIFF.

    Update: there seem to be a number of converters to be found through Google, that might help you out. Also, as Wayne suggests, look at XNA (if you didn't already). The Texture2D.FromFile method seems to handle the .dds files, but I never used it myself so I can't say if it is what you are looking for or not...