private void RgbReader_SampleArrived(object sender, RS.SampleArrivedEventArgs args) { if (args.sample != null) { try { RGBImageRetreived.Invoke(args.sample.Color); }catch (Exception e) { } } }
private void DepthReader_SampleArrived(object sender, RS.SampleArrivedEventArgs args) { if (args.sample != null) { try { DepthImageRetreived.Invoke(args.sample.Depth); } catch (Exception e) { } } }
private void OnSampleArrived(object sender, RS.SampleArrivedEventArgs args) { // work on sample.color }