如何文件加载到的.dds一个PictureBox? [英] How to load .dds files into a picturebox?

查看:186
本文介绍了如何文件加载到的.dds一个PictureBox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何加载的.dds纹理文件在C#中的形象?有一个关于谷歌没什么用处,我能找到。

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.

推荐答案

我想简短的答案是,你不知道。 说,支持的格式有BMP,GIF文档,EXIG,JPG,PNG和TIFF

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.

更新:似乎有许多的转换器,以通过谷歌发现,这可能帮助你。此外,作为韦恩建议,看看XNA(如果你没有的话)。该 Texture2D.FromFile 方法似乎处理的.dds文件,但我从来没有使用过自己,所以我不能说,如果它是你在找什么或不...

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...

这篇关于如何文件加载到的.dds一个PictureBox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆