Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
windows phone xna framework 4.0_Xna_Windows Phone - Fatal编程技术网

windows phone xna framework 4.0

windows phone xna framework 4.0,xna,windows-phone,Xna,Windows Phone,我试图在XNA4.0游戏中运行一个图像,使用纹理作为 Texture2D texture = Game.Content.Load<Texture2D>("image1"); Texture2D texture=Game.Content.Load(“image1”); 但是我的图像在运行时被拉长了,所有其他代码都运行得很好,但是图像变得模糊和拉长了 为什么会发生这种情况,请提供补救措施?向我们展示代码(尤其是加载纹理的方法)。另外,如果可能,请显示protected overrid

我试图在XNA4.0游戏中运行一个图像,使用纹理作为

Texture2D texture = Game.Content.Load<Texture2D>("image1");
Texture2D texture=Game.Content.Load(“image1”);
但是我的图像在运行时被拉长了,所有其他代码都运行得很好,但是图像变得模糊和拉长了


为什么会发生这种情况,请提供补救措施?

向我们展示代码(尤其是加载纹理的方法)。另外,如果可能,请显示
protected override void LoadContent()
方法,否则我们将无法帮助您。

请指定用于显示此纹理的代码,并指定其尺寸!