using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; public class Game1 : Game { GraphicsDeviceManager graphics; public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; } }
graphics.PreferredBackBufferWidth = 1920; graphics.PreferredBackBufferHeight = 1080; graphics.IsFullScreen = true; graphics.ApplyChanges();
graphics.GraphicsProfile = GraphicsProfile.HiDef; graphics.ApplyChanges();Package library: Microsoft.Xna.Framework.Graphics.