How to load .dds files into a picturebox?

后端 未结 3 1486
借酒劲吻你
借酒劲吻你 2021-01-13 15:41

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

3条回答
  •  臣服心动
    2021-01-13 16:35

    I had the same issue. Here is a good solution.

    1. Source: http://www.mastropaolo.com/devildotnet/
    2. Download Version 1.3 from that link (bottom of page)
    3. Add the Devil.NET.dll as a reference to your application
    4. Use the code that I have supplied below.

      PictureBox1.Image = DevIL.DevIL.LoadBitmap(DDS_File_Path)

    It's really that easy. We owe the DevIL .NET Wrapper creator a beer.

提交回复
热议问题