コード例 #1
0
        /// <summary>
        /// Starts the Colour Reading Process
        /// </summary>
        private void InitiateColour(KinectSensor newSensor)
        {
            //Create Colour Object with active sensor and initiate StartUp
            colourObj = new Colour(newSensor);
            colourObj.startUpColour();

            //Set the global variable to hold the RGB image from the Colour Object
            this.streamImg = colourObj.getImage();

            // Adds event handler for whenever a new colour frame is ready
            newSensor.ColorFrameReady += colourObj.SensorColorFrameReady;
        }
コード例 #2
0
 public Colour(Colour copy)
 {
     this.sensor       = copy.getSensor();
     this.outputBitmap = copy.getImage();
 }