Exemplo n.º 1
0
 public BasicPhotoService(ISensorService<KinectSensor> sensorService)
 {
     _greenScreen = new KinectNoBackgroundView();
     //_greenScreen.Start();
     _sensorService = sensorService;
     _colorFrameDescription = _sensorService.Sensor.ColorFrameSource.CreateFrameDescription(ColorImageFormat.Bgra);
     this.Photo = new WriteableBitmap(_colorFrameDescription.Width, _colorFrameDescription.Height, 96.0, 96.0, PixelFormats.Bgr32, null);
     Init();
 }
Exemplo n.º 2
0
 public BasicPhotoService(ISensorService <KinectSensor> sensorService)
 {
     _greenScreen = new KinectNoBackgroundView();
     //_greenScreen.Start();
     _sensorService         = sensorService;
     _colorFrameDescription = _sensorService.Sensor.ColorFrameSource.CreateFrameDescription(ColorImageFormat.Bgra);
     this.Photo             = new WriteableBitmap(_colorFrameDescription.Width, _colorFrameDescription.Height, 96.0, 96.0, PixelFormats.Bgr32, null);
     Init();
 }