Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static ImageOutput GetNewFromFilePath(string filePath)
        {
            if (!io.File.Exists(filePath))
            {
                return(null);
            }

            var result = new ImageOutput(filePath);

            return(result);
        }
Ejemplo n.º 2
0
        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);
        }