public HoloLensCameraStream.Resolution GetHighestResolution() { if (videoCapture == null) { throw new Exception("Please call this method after a VideoCapture instance has been created."); } return(videoCapture.GetSupportedResolutions().OrderByDescending((r) => r.width * r.height).FirstOrDefault()); }