Home › Forums › TWAIN Classic › problem with ICAP_UNDEFINEDPAGESIZE
- This topic has 1 reply, 1 voice, and was last updated 15 years, 3 months ago by houhuiman.
- AuthorPosts
Hello, I am using the scanner–HP scanjet G3110 and I want to disable the automatic border detection because sometimes the borders this scanner found were not correct. The spec told me to play with ICAP_AUTOMATICBORDERDETECTION, first of all, I should enable ICAP_UNDEFINEDIMAGESIZE. However, when I tried to get the value of ICAP_UNDEFINEDIMAGESIZE, I failed and the error status told me this is a TWCC_CAPUNSUPPORTED error, that is to say ICAP_UNDEFINEDIMAGESIZE is not supported on my scanner. I don’t believe with this because the spec TWAINMandatory.pdf told me ICAP_UNDEFINEDIMAGESIZE is a very basic trigle for a scanner and I can set the scan whole glass-flat bed option in the software interface
the scanner provide me. (However, this is not set through twain protocol, because the software never use twain_32.dll when it is running) I compared ICAP_UNDEFINEDIMAGESIZE with ICAP_AUTOBRIGHT at the same stage(stage 4 , just before open the user interface). The result shows ICAP_AUTOBRIGHT is supported and able to get the value, but ICAP_UNDEFINEDIMAGESIZE is not supported. What should I do with the scanner? Is it really unable to support ICAP_UNDEFINEDIMAGESIZE?I settled this problem by using WIA(Microsoft Windows Image Acquisition ) instead of TWAIN. The WIA driver scanned the whole image as a default option, for more details, the link can be a reference:
http://msdn.microsoft.com/en-us/library/ms629848(VS.85).aspx- AuthorPosts