예제 #1
0
        public void Save_Jpeg(long quality)
        {
            var filename = "lena.png";

            using (var resizer = new ImageResizer(GetSource(filename)))
            {
                resizer.ResizeMode = ImageResizeMode.HighQuality;
                resizer.Width      = 256;

                var dest = SavePath(resizer, "jpeg", ".jpg");
                resizer.Save(dest, Jpeg.Format, Jpeg.Quality(quality));
                Assert.That(Io.Exists(dest), Is.True);
            }
        }