예제 #1
0
 /// <summary>
 /// Finds a mode, given a format and resolution.
 /// </summary>
 /// <param name="format">
 /// Video 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 VideoFrameMode Find(VideoFormat format, Resolution resolution)
 {
     return((VideoFrameMode)FrameMode.FromInterop(KinectNative.freenect_find_video_mode(resolution, format), FrameMode.FrameModeType.VideoFormat));
 }