private void changePencil(object sender, RoutedEventArgs e) { this.sensorChooser.Stop(); pen = new Pencils(this); pen.ShowDialog(); }
private void load_window(object sender, RoutedEventArgs e) { //Esto es opcional pero ayuda a colocar el dispositivo Kinect a un cierto angulo de inclinacion, desde -27 a 27 this._sensor = KinectSensor.KinectSensors[0]; this._sensor.Start(); this.ang = 0; _sensor.ElevationAngle = 15; this._sensor.Stop(); sensorChooser = new KinectChooser(this.kinectRegion, this.sensorChooserUi); pen = new Pencils(this); col = new Colors(this); size = new SizePaint(this); this.ctl = new Controlador(); KinectRegion.AddHandPointerMoveHandler(this.paint, OnHandMove); KinectRegion.AddQueryInteractionStatusHandler(this.paint, OnQuery); }