Example #1
0
        public static void ReducePicture(PictureModel picture, int width)
        {
            var targetPath = new FileInfo(picture.EPath).DirectoryName + "\\snapshot";

            if (!System.IO.Directory.Exists(targetPath))
            {
                System.IO.Directory.CreateDirectory(targetPath);
            }

            var target = targetPath + "\\" + "snapshot_" + picture.EName;

            var success = PictureHandler.GetReducedImage(picture.EPath, width, target);

            picture.ESnapshotPath = target;
        }