コード例 #1
0
ファイル: PhotoService.cs プロジェクト: nancy-bree/PhotoBook
        private static void ApplyGrayscale(string path, string newPath)
        {
            var photo = PhotoEditor.ToGrayscale(path);

            photo.Save(newPath, System.Drawing.Imaging.ImageFormat.Jpeg);
            photo.Dispose();
        }
コード例 #2
0
ファイル: PhotoService.cs プロジェクト: nancy-bree/PhotoBook
        private static void ApplyAutocontrast(string path, string newPath)
        {
            var photo = PhotoEditor.ApplyContrast(path, 20);

            photo.Save(newPath, System.Drawing.Imaging.ImageFormat.Jpeg);
            photo.Dispose();
        }