private void CaptureFrame() { var frame = this.depthFrameFactory.Create(dataSourceFactory.GetDepthGenerator().DataPtr); if (this.NewFrameCaptured != null) { this.NewFrameCaptured(frame); } }
private void CaptureFrame() { var frame = this.depthFrameFactory.Create(dataSourceFactory.GetDepthGenerator().DataPtr); /*this.depthDataFrameSource.ForceRun(); * var data = new ushort[this.depthDataFrameSource.Width * this.depthDataFrameSource.Height]; * Buffer.BlockCopy(this.depthDataFrameSource.CurrentValue.Data, 0, data, 0, data.Length * sizeof(ushort));*/ if (this.NewFrameCaptured != null) { //this.NewFrameCaptured(new DepthDataFrame(this.depthDataFrameSource.Width, this.depthDataFrameSource.Height, data)); this.NewFrameCaptured(frame); } }