예제 #1
0
        public void StartCaptureFromItem(GraphicsCaptureItem item, IntPtr hWnd)
        {
            StopCapture();

            capture = new BasicCapture(device, item, hWnd);

            capture.StartCapture();
        }
        public void StartCaptureFromItem(GraphicsCaptureItem item)
        {
            StopCapture();
            _capture = new BasicCapture(_device, item);

            var surface = _capture.CreateSurface(_compositor);

            _brush.Surface = surface;

            _capture.StartCapture();
        }