/// <summary> /// /// </summary> /// <returns></returns> public static ImageOutput GetNewFromFilePath(string filePath) { if (!io.File.Exists(filePath)) { return(null); } var result = new ImageOutput(filePath); return(result); }
public static SnapShot GetNewFromPathes(string compressedImgPath, string uncompressedImgPath) { var result = new SnapShot(); result.CompressedOutput = ImageOutput.GetNewFromFilePath(compressedImgPath); if (!string.IsNullOrWhiteSpace(uncompressedImgPath)) { result.UncompressedOutput = ImageOutput.GetNewFromFilePath(uncompressedImgPath); } // TODO : result.CreationDate = implémenter la déduction de la date depuis le system de nommage du fichier return(result); }