windows phone xna framework 4.0
我试图在XNA4.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
Texture2D texture = Game.Content.Load<Texture2D>("image1");
Texture2D texture=Game.Content.Load(“image1”);
但是我的图像在运行时被拉长了,所有其他代码都运行得很好,但是图像变得模糊和拉长了
为什么会发生这种情况,请提供补救措施?向我们展示代码(尤其是加载纹理的方法)。另外,如果可能,请显示
protected override void LoadContent()
方法,否则我们将无法帮助您。请指定用于显示此纹理的代码,并指定其尺寸!