public void Record(ColorImageFrame frame) { if (writer == null) { throw new Exception("This recorder is stopped"); } if (colorRecoder == null) { throw new Exception("Color recording is not actived on this KinectRecorder"); } colorRecoder.Record(frame); Flush(); }