0
全部我想在Windows Phone中用XNA显示全屏相机(Microsoft.Devices.PhotoCamera),如下面的代码所示,我试图改变screenpos和原点的值,但是它没有工作,我的代码有什么问题?由于在XNA中显示全屏相机
if (CameraTexture != null)
{
Vector2 origin = new Vector2(CameraTexture.Width/2, CameraTexture.Height/2);
Vector2 screenpos = new Vector2(240, 400);
spriteBatch.Draw(CameraTexture, screenpos, null, Microsoft.Xna.Framework.Color.White, (float)Math.PI/2,
origin, 1.0f, SpriteEffects.None, 0f);
}