WIA scanning in a WPF application
问题 I'm using WIA 2.0 to scan images from a HP scanner. The problem is that saved TIFFs are around 9MBs big (A4 page at 300dpi, grayscale). I convert WIA's ImageFile that contains scan in TIFF format to BitmapSource like this: public static BitmapSource ConvertScannedImage(ImageFile imageFile) { if (imageFile == null) return null; // save the image out to a temp file string fileName = Path.GetTempFileName(); // this is pretty hokey, but since SaveFile won't overwrite, we // need to do something