- This topic has 8 replies, 4 voices, and was last updated 6 days ago by Chisymn.
March 24, 2006 at 11:15 am #21903nopParticipant
- Topics - 2
- Replies - 0
- Total Posts - 2
I try to set ICAP_CONTRAST or ICAP_BRIGHTNESS when scanning without showing user interface. Return code is TWRC_SUCCESS but resulting image is with contrast/brightness at default values.
Loratab Rehab ForumMarch 24, 2006 at 12:45 pm #23291sourabhvParticipant
- Topics - 3
- Replies - 4
- Total Posts - 7
he he facing same prob………..November 17, 2006 at 8:06 am #23292
Same problem I’m facing when I try to change brightness/contrast.
I have two scanners Epson Stylus returns success but setting is not visible in the scanned image. Epson Expression 10000XL returns twrc_failure.
If anyone has a solution it would be great.
Sometimes I wonder whether there are other CAPs that shud be set before this. If so, someone please let us know.November 20, 2006 at 8:43 am #23293
Hello! I had a problem similar to yours: one source returned twrc_success, but another – twrc_failure. Then I changed value of ConType in TW_CAPABILITY and received twrc_success for that source.November 20, 2006 at 9:05 am #23294
Thanks for the reply.
What is the value that you set in ConType to get TWRC_SUCCESS?
Still, did you get the changes affecting the scanned image?
In both scanners that I have, although one returns TWRC_SUCCESS, I can’t get the changes to affect the scanned image.
Not only that I’m struggling to set TRUE for ICAP_AUTOMATICBORDERDETECTION. Sometimes I wonder whether these are actually supported in Epson’s twain DSW. I hope somebody will be able to help me in this.
Best RegardsNovember 20, 2006 at 10:48 am #23295
May be you’ll find answer there.November 27, 2006 at 8:41 am #23296
The TwainGUI project given here is using the entry points in twain32.dll in C#. I’m using win32 C++ and using the twain proc address and capability controlling as in twain specification.
Do you think that win32 based method does not work. How would I find the entry points of twain32.dll, so that I can use C#.
Best RegardsNovember 27, 2006 at 9:08 am #23297
I wrote my project in C#, that’s why I gave that link. If you use C++, you can look through article and sources on
I think, you shouldn’t change C++ to C#, because it is easier to use TWAIN in C++ than in C#.November 29, 2006 at 11:43 am #23298
Thanks a lot I went thru that source code of Win32 C++ application. The problem with that (and most other samples) is that they use the epson’s own GUI for most of controlling. They set the ShowUI feature as true and hence the brightness, gamma etc are controlled using Epson GUI. But my work has the pre-condition that none of the Epson GUIs can be used. I have to set the value of ICAP_BRIGHTNESS using capability setting. But that’s where it does not work.
Similarly I can’t set the capability for auto cropping and auto rotating. In fact there is no capability that I can set using win32 C++ Twain interface of Epson 10000XL.
It seems like I’m facing a big wall and no one has gone beyond here. Perhaps to give up Twain altogether might be my option.