예제 #1
0
        static void JpegHandler(String file, SearchLocation config, Archive archive)
        {
            DateTime createTime = File.GetCreationTime(file);

            using (FileStream stream = File.OpenRead(file))
            using (Bitmap image = (Bitmap)Bitmap.FromStream(stream))
            {
                createTime = TagParser.Parse<ExifTags>(image.PropertyItems.ToList())
                    .FileChangeDateTime
                    .GetValueOrDefault(createTime);
            }

            Archive(file, createTime, archive);
        }
예제 #2
0
        static void MovHandler(String file, SearchLocation config, Archive archive)
        {
            //DateTime createTime = File.GetCreationTime(file);

            //Archive(file, createTime, archive);
        }