XNA.Texture2D到System.Drawing.Bitmap [英] XNA.Texture2D to System.Drawing.Bitmap

查看:123
本文介绍了XNA.Texture2D到System.Drawing.Bitmap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要加载XNA.Texture2D到图片框。

I need load XNA.Texture2D to PictureBox.

我已经试过这样: HTTP://www.gamedev。净/社区/论坛/ viewreply.asp?ID = 3224621 ,但它不工作。有什么建议?

i've tried this: http://www.gamedev.net/community/forums/viewreply.asp?ID=3224621 but it doesn't work. Any suggestions?

推荐答案

您应该能够使用该方法,但要确保你的XNA的Texture2D与32bbpARGB的格式创建的。任何其他格式将prevent该方法直接工作。

You should be able to use that method, but make sure that your XNA Texture2D is created with a format of 32bbpARGB. Any other format will prevent that method from working directly.

这篇关于XNA.Texture2D到System.Drawing.Bitmap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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