public Bitmap GetCurrentVideoFrame() { lock (sync) { return (currentFrame == null) ? null : Accord.Imaging.Image.Clone(currentFrame); } }