Esempio n. 1
0
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            kinect = Kinect2.KinectSensor.Default;
            kinect.Open();
            colorReader = kinect.ColorFrameSource.OpenReader();
            bodyReader  = kinect.BodyFrameSource.OpenReader();

            CompositionTarget.Rendering += CompositionTarget_Rendering;
        }
        void MainWindow_Loaded( object sender, RoutedEventArgs e )
        {
            kinect = Kinect2.KinectSensor.Default;
            kinect.Open();
            colorReader = kinect.ColorFrameSource.OpenReader();
            bodyReader = kinect.BodyFrameSource.OpenReader();

            CompositionTarget.Rendering += CompositionTarget_Rendering;
        }