0
我可能會錯過一些東西,但當我嘗試使用:System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width
或graphicsDevice.PresentationParameters.BackBufferWidth;
時,我無法使用這些。屏幕調整C#2010
我可能失去了一些東西對他們的呼籲內容裝載機:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.Content;
謝謝您的信息,先生您可以告訴我更多關於如何使圖像重新調整大小以適應全屏? http://stackoverflow.com/questions/20001894/transferring-texture-across-classes –
實際沒關係preferredbackbuffer的高度和寬度正在爲我做... –