This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, May 6, 2008 10:36:41 AM(UTC)
Groups: Registered
Posts: 6
Hello,
I understand how the actual blank page detection process works( using raster image apis) but how can I store the blank page detection preference within the twain session ?. I want to build a settings screen where user will have the option of turning on/off the blank page detection preference.
If the preference is on, every image will then pass through a blank page test.If not, even blank images will be retrieved/displayed.
Thanks
Vasu
#2
Posted
:
Wednesday, May 7, 2008 3:03:50 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Vasu,
Do you
mean you want to store an additional flag for page detection into the Twain template
saved by LEADTOOLS Twain template functions?
If yes,
the template save and load functions only save the Twain driver's capability
values, and do not allow adding other data there, such as your own flag that
determines whether to turn on or off your own blank page detection code.
If you want to save such settings, you must use your
own file to store them.
#3
Posted
:
Wednesday, May 7, 2008 5:48:56 AM(UTC)
Groups: Registered
Posts: 6
Thanks.
But, is there a twain capability for blank page detection preference - like there are ones available for duplex setting, rotation angle etc ?.
#4
Posted
:
Thursday, May 8, 2008 4:56:33 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You can do that by setting the ICAP_AUTODISCARDBLANKPAGES. However, this depends on whether the scanner driver supports the capability or not. More information on the capability is available in the Twain Standard document.
#5
Posted
:
Monday, May 12, 2008 6:42:07 AM(UTC)
Groups: Registered
Posts: 6
Doesn't LeadTools provide a blank page detection preference ?
My code is in C#. Can you point me to some sample C# code that interfaces with ICAP capabilties ?
Thanks.
#6
Posted
:
Monday, May 12, 2008 8:33:15 AM(UTC)
Groups: Registered
Posts: 6
It further seems that the ICAP_AUTODISCARDBLANKPAGES setting is not listed as a TwainCapabilityType in Leadtools.
#7
Posted
:
Tuesday, May 13, 2008 5:52:05 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
This
capability was removed from the Twain standard header file in version 1.9.
However, if your driver supports it, it will probably
be listed as a custom capability with number (1134)hex = (4404)decimal
#8
Posted
:
Sunday, January 18, 2009 11:07:35 PM(UTC)
Groups: Registered
Posts: 12
How do I work with this custom capabilities? My scanner supports this feature and I would like to handle this with the Leadtools twain session.
Can you maybe give me some sample code for setting up this custom capability?
Thanks a lot!
#9
Posted
:
Monday, January 19, 2009 12:59:26 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Can you tell me which version of LEADTOOLS (v14,v15, v16, etc) are you using? Also, which LEADTOOLS programming interface (DLL API, C++ Class library ,.NET classes, etc.) you are using?
#10
Posted
:
Monday, January 19, 2009 1:20:38 AM(UTC)
Groups: Registered
Posts: 12
sorry, my fault
Leadtools V15 .Net Class Libraries
#11
Posted
:
Monday, January 19, 2009 3:31:37 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Please see the following forum post that shows how to Get\Set custom capabilities:
http://support.leadtools.com/SupportPortal/CS/forums/3277/ShowPost.aspx
The forum shows how to do that in LEADTOOLS version 14.5 .NET, which is not different than LEADTOOLS v15 .NET.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.