本帖最后由 gw0506 于 2016-12-1 14:13 编辑
你看一下这个,
https://www.leadtools.com/help/l ... /19compression.html
代码方面修改 [size=14.6667px]QualityFactor
- RasterCodecs codecs = new RasterCodecs();
- codecs.Options.Jpeg.Save.QualityFactor = 2;
- codecs.Options.Jpeg.Save.SaveOldJtif = true;
- codecs.Save(srcImage, Path.Combine(LEAD_VARS.ImagesDir, "jpeg1.jpg"), RasterImageFormat.Jpeg, srcImage.BitsPerPixel);
复制代码
|