示例#1
0
 private void RgbReader_SampleArrived(object sender, RS.SampleArrivedEventArgs args)
 {
     if (args.sample != null)
     {
         try
         {
             RGBImageRetreived.Invoke(args.sample.Color);
         }catch (Exception e)
         {
         }
     }
 }
示例#2
0
 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
 }