示例#1
0
        /// <summary>
        /// Gets or sets a value indicating whether this instance is native resolution.
        /// </summary>
        /// <value>
        /// <c>true</c> if running at native resolution; otherwise, <c>false</c>.
        /// </value>
        //public bool IsNativeResolution
        //{
        //    get { return this.isNativeResolution; }
        //    set { this.isNativeResolution = value; }
        //}

        #endregion //PROPERTIES

        #region Public methods

        public void Start()
        {
            if (isRendering)
            {
                return;
            }

            if (tracker != null)
            {
                tracker.OnProcessedFrame += Tracker_FrameCaptureComplete;
                isRendering = true;

                if (overlay == null)
                {
                    overlay        = new VideoImageOverlay();
                    overlay.Width  = this.VideoImageWidth;
                    overlay.Height = this.VideoImageHeight;
                    overlay.Top    = PointToScreen(new Point(0, 0)).Y;
                    overlay.Left   = PointToScreen(new Point(0, 0)).X;
                    overlay.Show();
                }

                overlay.Topmost = true;
            }
        }
        /// <summary>
        /// Gets or sets a value indicating whether this instance is native resolution.
        /// </summary>
        /// <value>
        /// <c>true</c> if running at native resolution; otherwise, <c>false</c>.
        /// </value>
        //public bool IsNativeResolution
        //{
        //    get { return this.isNativeResolution; }
        //    set { this.isNativeResolution = value; }
        //}

        #endregion //PROPERTIES

        #region Public methods

        public void Start()
        {
            Tracker.Instance.OnProcessedFrame += Tracker_FrameCaptureComplete;

            Settings.Instance.Visualization.IsDrawing = true;

            if (overlay == null)
            {
                overlay        = new VideoImageOverlay();
                overlay.Width  = this.VideoImageWidth;
                overlay.Height = this.VideoImageHeight;
                overlay.Top    = PointToScreen(new Point(0, 0)).Y;
                overlay.Left   = PointToScreen(new Point(0, 0)).X;
                overlay.Show();
                overlay.Topmost = true;
            }
        }
        /// <summary>
        /// Gets or sets a value indicating whether this instance is native resolution.
        /// </summary>
        /// <value>
        /// <c>true</c> if running at native resolution; otherwise, <c>false</c>.
        /// </value>
        //public bool IsNativeResolution
        //{
        //    get { return this.isNativeResolution; }
        //    set { this.isNativeResolution = value; }
        //}

        #endregion //PROPERTIES

        #region Public methods

        public void Start()
        {
            Tracker.Instance.OnProcessedFrame += Tracker_FrameCaptureComplete;

            Settings.Instance.Visualization.IsDrawing = true;

            if(overlay == null)
            {
                overlay = new VideoImageOverlay();
                overlay.Width = this.VideoImageWidth;
                overlay.Height = this.VideoImageHeight;
                overlay.Top = PointToScreen(new Point(0, 0)).Y;
                overlay.Left = PointToScreen(new Point(0, 0)).X;
                overlay.Show();
                overlay.Topmost = true;
            }
        }