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);
}