I use WIA library to scan images in my app. Can I set scanner settings (colorfull, grayscell, dpi....) programmaticaly in my app and not show every time scanning settings to end user?
I use next code to get an image from scanner
public ImageFile Scan()
{
try
{
CommonDialog dialog = new CommonDialog();
ImageFile image = dialog.ShowAcquireImage(
WiaDeviceType.ScannerDeviceType,
WiaImageIntent.ColorIntent,
WiaImageBias.MaximizeQuality,
WIA.FormatID.wiaFormatJPEG,false,false,false);
return image;
}
catch (COMException ex)
{
if (ex.ErrorCode == -2145320939)
{
throw new ScannerNotFoundException();
}
else
{
throw new ScannerException("COM Exception", ex);
}
}
}