ArtofKinectRecorder.ArtofKinectRecorderWindow.UpdateFrameViewer C# (CSharp) Method

UpdateFrameViewer() private method

private UpdateFrameViewer ( MotionFrame frame ) : void
frame MotionFrame
return void
        private void UpdateFrameViewer(MotionFrame frame)
        {
            if (pointCloudFrameViewer != null)
            {
                currentConfiguration = new DeviceConfiguration()
                    {
                        DepthBufferFormat = new BufferFormat(frame.DepthFrame.Width, frame.DepthFrame.Height, frame.DepthFrame.PixelFormat),
                        VideoBufferFormat = new BufferFormat(frame.RGBFrame.Width, frame.RGBFrame.Height, frame.RGBFrame.PixelFormat),
                    };
                pointCloudFrameViewer.UpdateMotionFrame(currentConfiguration, frame);
            }
        }