As far as I can tell, it is not supported. I tried using the code here and here and came to this C # Code:
using (Image source = Image.FromFile(@"D:\temp\test2.jpg")) { ImageCodecInfo codec = ImageCodecInfo.GetImageEncoders().First(c => c.MimeType == "image/jpeg"); EncoderParameters parameters = new EncoderParameters(3); parameters.Param[0] = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 100L); parameters.Param[1] = new EncoderParameter(System.Drawing.Imaging.Encoder.ScanMethod, (int)EncoderValue.ScanMethodInterlaced); parameters.Param[2] = new EncoderParameter(System.Drawing.Imaging.Encoder.RenderMethod, (int)EncoderValue.RenderProgressive); source.Save(@"D:\temp\saved.jpg", codec, parameters); }
Setting both interlaced and progressive mode allows you to save the usual basic JPEG. I tried any combination of settings and their alternative settings (without interlacing and without heating) and did not see any difference at all in the resulting image file.
I didn’t find the answer from anyone who said that they actually managed to save progressive JPEG in .NET.
Both ScanMethodInterlaced and RenderProgressive are described only as "Not used in GDI + version 1.0". in the documentation .
Guffa
source share