/// <summary> /// Serializes the bodies of the current <see cref="BodyFrame"/> and saves the file to the specified location. /// </summary> /// <param name="frame">The frame to capture.</param> /// <param name="destination">The destination file.</param> /// <returns>True if the frame was successfully saved. False otherwise.</returns> public static async Task <bool> Save(this BodyFrame frame, StorageFile destination) { string json = frame.Serialize(); return(await _capture.Save(json, destination)); }
/// <summary> /// Serializes the bodies of the current <see cref="BodyFrame"/> and saves the file to the specified location. /// </summary> /// <param name="frame">The frame to capture.</param> /// <param name="path">The destination file path.</param> /// <returns>True if the frame was successfully saved. False otherwise.</returns> public static bool Save(this BodyFrame frame, string path) { string json = frame.Serialize(); return(_capture.Save(json, path)); }