Varying sliding window size(deflate ratio)
-
I have written a C#.Net application to convert any image into png image. I have basically used the call Image.Save(outputFilename, ImageFormat.Png); I get the proper png file compressed to smaller size and working fine. But my customer wants the application to allow users to modify/vary the sliding window size(deflate ratio) of the compressed png image. So I want to know if whether I can actually supply the deflate ratio to the .Net Framework and the framework compresses the image to a png file with that deflate ratio(sliding window size). Anybody can give suggestions/inputs?
-
I have written a C#.Net application to convert any image into png image. I have basically used the call Image.Save(outputFilename, ImageFormat.Png); I get the proper png file compressed to smaller size and working fine. But my customer wants the application to allow users to modify/vary the sliding window size(deflate ratio) of the compressed png image. So I want to know if whether I can actually supply the deflate ratio to the .Net Framework and the framework compresses the image to a png file with that deflate ratio(sliding window size). Anybody can give suggestions/inputs?
I have never tried it, but there is a different overload which may help: Image.Save Method (String, ImageCodecInfo, EncoderParameters)[^] If it can be done, it will be in the EncoderParameters somewhere.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water