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(); }
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(); }