CCT.NUI.WPFSamples.VideoManipulationWindow.imageSource_NewDataAvailable C# (CSharp) Method

imageSource_NewDataAvailable() private method

private imageSource_NewDataAvailable ( ImageSource data ) : void
data ImageSource
return void
        private void imageSource_NewDataAvailable(ImageSource data)
        {
            this.videoControl.Dispatcher.Invoke(new Action(() => {
                lock (this.imageSource)
                {
                    this.videoControl.ShowImageSource(data);
                }
            }));
        }