Exemple #1
0
        // Initilize method to initialize the members
        public void Initialize()
        {
            // Requestr the overlaySurface to allocate a region.
            Microsoft.MediaCenter.UI.Size size = new Microsoft.MediaCenter.UI.Size(1200, 800);
            _overlaySurface.Allocate(size, true, true);

            // the user cannot override the zoom or rendering will be off
            _videoSurface.SetUserZoomModeOverride(false);

            // Initialize the audio stream.
            _audioStreamSwitcher.Initialize();

            // Add delegate to handle events.
            _eventHandler.Initialize();

            // Reset the selection to 0,0
            _selectionX = 0;
            _selectionY = 0;
        }