WIA: no compression when saving files
I'm using WIA for scanning images and noticed, that images aren't stored efficiently as SaveFile apparently doesn't make use of compression. Currently I'm using this code: WIA.ImageFile img = (WIA.ImageFile)item.Transfer(WIA.FormatID.wiaFormatPNG); img.SaveFile(path); Is there a way to use WIA for compression, or how else could I save the image using compression? EDIT: Using the following code I was able to decrease file size from 25 to 10 MB. WIA.ImageFile img = (WIA.ImageFile)item.Transfer(WIA.FormatID.wiaFormatPNG); WIA.ImageProcess ImageProcess1 = new WIA.ImageProcessClass(); System.Object