public Game1() { this.IsFixedTimeStep = false; this.IsMouseVisible = true; this.Window.Title = "Xna Basics"; // This sets the width to the desired width // It also forces a 4:3 ratio for height this.graphics = new GraphicsDeviceManager(this); this.graphics.PreferredBackBufferWidth = Width; this.graphics.PreferredBackBufferHeight = Height; this.graphics.SynchronizeWithVerticalRetrace = true; this.viewPortRectangle = new Rectangle(0, 0, Width, Height); Content.RootDirectory = "Content"; // The Kinect sensor will use 640x480 for both streams // To make your app handle multiple Kinects and other scenarios, // it is recommended to use KinectSensorChooser provided in Microsoft.Kinect.Toolkit this.chooser = new KinectChooser(this, colorImageFormat, depthImageFormat); this.Services.AddService(typeof(KinectChooser), this.chooser); // Default size is the full viewport this.colorStream = new ColorStreamRenderer(this); this.depthStream = new DepthStreamRenderer(this); this.skeletonStream = new SkeletonStreamRenderer(this); this.Components.Add(this.chooser); }