LEADTOOLS Support
Imaging
Imaging SDK Questions
i need to scan a image with the following features
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, August 31, 2009 1:39:47 AM(UTC)
Groups: Registered
Posts: 2
1 page in b/w
2 page in gray scale ( will have photo)
3 page onwards b/w
how to do so in vb.net
#2
Posted
:
Monday, August 31, 2009 6:22:44 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
If you're using our .NET classes, the code will be like this:
Sub SetTransferCount(ByVal nPages As Integer) Dim twCap As TwainCapability = New TwainCapability() twCap.Information.ContainerType = TwainContainerType.OneValue twCap.OneValueCapability.ItemType = TwainItemType.Int16 twCap.Information.Type = TwainCapabilityType.TransferCount twCap.OneValueCapability.Value = nPages acq_session.SetCapability(twCap, TwainSetCapabilityMode.Set)End SubSub SetPixelType(ByVal PixType As Leadtools.Twain.TwainCapabilityValue) Dim twCap As TwainCapability = New TwainCapability() twCap.Information.Type = TwainCapabilityType.ImagePixelType twCap.Information.ContainerType = TwainContainerType.OneValue twCap.OneValueCapability.ItemType = TwainItemType.Uint16 twCap.OneValueCapability.Value = CType(PixType, Object) acq_session.SetCapability(twCap, TwainSetCapabilityMode.Set)End SubSub DifferentPixelTypes() acq_session = New TwainSession() acq_session.Startup(Me, "LEAD Technologies, Inc.", "LEAD Twain .NET", "Version 14", "LEADTools Twain test sample", TwainStartupFlags.None) acq_session.SelectSource(String.Empty) AddHandler acq_session.AcquirePage, AddressOf twain_AcquirePage SetPixelType(Leadtools.Twain.TwainCapabilityValue.PixelTypeBW) SetTransferCount(1) acq_session.Acquire(TwainUserInterfaceFlags.None) SetPixelType(Leadtools.Twain.TwainCapabilityValue.PixelTypeGray) SetTransferCount(2) acq_session.Acquire(TwainUserInterfaceFlags.None) SetPixelType(Leadtools.Twain.TwainCapabilityValue.PixelTypeBW) SetTransferCount(3) acq_session.Acquire(TwainUserInterfaceFlags.None) acq_session.Shutdown()End SubAmin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
i need to scan a image with the following features
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.