Exemplo n.º 1
0
        public void LoadImage()
        {
            FormLoadImage image;

            if (Image != null)
            {
                image = new FormLoadImage(Image, m_ImageRectangle, (m_Pattern == CompareSearchPattern.Face) ? ImageType.Face : ImageType.Object);
            }
            else
            {
                image = new FormLoadImage();
            }
            image.ShowDialog();
        }
        public void GotoCompareSearch()
        {
            VideoStatusInfo e = Framework.Container.Instance.VideoPlayService.GetPlayStatus(m_player.HWnd);

            if (e.PlayState != VideoStatusType.E_PAUSE)
            {
                PauseVideo();
            }

            try
            {
                Image         img   = Framework.Container.Instance.VideoPlayService.GrabPicture(m_player.HWnd);
                FormLoadImage image = new FormLoadImage(img, new Rectangle());
                image.ShowDialog();
            }
            catch (SDKCallException ex)
            {
                Common.SDKCallExceptionHandler.Handle(ex, "抓图");
            }
        }