public static async Task <Size> GetVideoOrFramesRes(string path) { Size res = new Size(); if (!IsPathDirectory(path)) // If path is video { res = GetVideoRes(path); } else // Path is frame folder { Image thumb = await MainUiFunctions.GetThumbnail(path); res = new Size(thumb.Width, thumb.Height); } return(res); }
public static async Task <Size> GetVideoOrFramesRes(string path) { Size res = new Size(); try { if (!IsPathDirectory(path)) // If path is video { res = GetVideoRes(path); } else // Path is frame folder { Image thumb = await MainUiFunctions.GetThumbnail(path); res = new Size(thumb.Width, thumb.Height); } } catch (Exception e) { Logger.Log("GetVideoOrFramesRes Error: " + e.Message); } return(res); }