Set ICAP_IMAGEFILEFORMAT

Q:  How can I change the image file format?

A:  You can use the ICAP_IMAGEFILEFORMAT capability to retrive the available image file formats for a scanner. You can use the SetCapabilityOneNumValue function to specify the image file format. When you scan to file the scanner will generate an image depending on the image file format specified. For example, if you specify the TWFF_TIF, the scanner will generate images in TIFF format. There are some scanners that disregard this capability. You can get/set this capability without any error, but the scanner scans in the default image file format anyway.

Code example:

// Set ICAP_IMAGEFILEFORMAT

int err = SetCapabilityOneNumValue(ICAP_IMAGEFILEFORMAT, MSG_SET, fValue);