private Mat CaptureMatWindow()
        {
            BitmapImage bmpImage   = CaptureWindow(capLT, capRB);
            Mat         matCapture = BitmapSourceExtension.ToMat(bmpImage);

            matCapture.ConvertTo(matCapture, Emgu.CV.CvEnum.DepthType.Cv32F);

            return(matCapture);
        }
        public void ScreenCapture()
        {
            if (!_IsScreenShotEnabled)
            {
                return;
            }

            BitmapImage bmpImage   = CaptureWindow(appPlayerLT, appPlayerRB);
            Mat         matCapture = BitmapSourceExtension.ToMat(bmpImage);

            string savePath = "SaveImage";
            string saveName = "ScreenShot";
            string saveExt  = "jpg";

            string fileName = SaveFileName(savePath, saveName, saveExt);

            CheckFolder(savePath);
            matCapture.Save(fileName);
        }