Home › Forums › TWAIN Classic › TW_IMAGEINFO › Reply To: TW_IMAGEINFO
I don’t want the user interface to be displayed, and I want to set the resolution and the scanning area programatically.
I have read more accurately paragraph “Changing the Image Attributes” (TWAIN 1.9a spec, page 4-88) and you’re right: TW_IMAGEINFO can’t be used to set scanning parameters using the DG_IMAGE / DAT_IMAGELAYOUT / MSG_SET triplet.
According to that paragraph I should use TW_IMAGELAYOUT, but the contents of this latter structure can’t be used to set the parameters that I need. TW_IMAGEINFO, on the contrary, is exactly the structure containing the parameters that I want to set. And it works: every parameter appears to be properly set. The only problem is that I get the “TWCC_BADVALUE” condition code. That’s all.
I just want to perform one simple task: scan a B&W letter size sheet at 200 dpi and get the uncompressed data. But it appears to be a pretty difficult task using TWAIN.
Regards from Alvise.