I had used these code to scan image in my application
WIA.CommonDialog dialog = new WIA.CommonDialog();
ImageFile scannedImage = null;
scannedImage = dialog.ShowAcquireImage(
WiaDeviceType.ScannerDeviceType,
WiaImageIntent.UnspecifiedIntent,
WiaImageBias.MinimizeSize,
FormatID.wiaFormatPNG,
true, true, false);
but the scanned image is at least (6 MB) in size how can I reduce the size of image without change the scanner settings ???
Mohamed AbedallahPosted Jan 19, 2017, 10:21 AM
To reduce the size of the output image, try to use a different like wiaFormatJPEG as shown in the following MSDN help:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms630826(v=vs.85).aspx#SharedSample002
If you still facing problem with the image size, consider using a programming toolkit that supports Twain, WIA scanning and Image compression. LEADTOOLS supports these features and also include wide set of Image compressions, for more details see this help topic:
https://www.leadtools.com/help/leadtools/v19/dh/to/leadtools.topics.wia~wa.topics.howtoacquirefromthewiasource.html
Disclaimer: I work for the company that created this library.