/// <summary> /// Finds a mode, given a format and resolution. /// </summary> /// <param name="format"> /// Depth format for the mode /// </param> /// <param name="resolution"> /// Resolution for the mode /// </param> /// <returns> /// Mode with the format/resolution combo. Null if the combination is invalid. /// </returns> public static DepthFrameMode Find(DepthFormat format, Resolution resolution) { return((DepthFrameMode)FrameMode.FromInterop(KinectNative.freenect_find_depth_mode(resolution, format), FrameMode.FrameModeType.DepthFormat)); }