LEADTOOLS Support
Imaging
Imaging SDK Questions
How to get current bitmap from AcquireMultiEvent
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, March 21, 2006 1:04:46 PM(UTC)
Groups: Registered
Posts: 22
Hello all,
I've downloaded the LEADTools 14.5 eval and I'm trying to learn the API's.
I have some code as follows..
(VB6, COM)
Private WithEvents m_LEADTWAIN As LEADRasterTwain_D
m_LEADTWAIN.EnableTwainEvent = True
nRet = m_LEADTWAIN.Acquire(L_LTWAIN_SHOW_USER_INTERFACE)
and when i scan the following event fires
Private Sub m_LEADTWAIN_AcquirePageEvent(ByVal pBitmap As Long)
'---------------------------------------------------
' we are saving a singlage page
'---------------------------------------------------
LEAD1.Bitmap = pBitmap
LEAD1.ForceRepaint
End Sub
This is perfect, it allows my pages to be displayed in the LEAD control as they are scanned.
Since the AcquireMultiEvent doesn't have a pBitmap parameter, what's the best way for me to assign the captured bitmap to a LEAD control for display?
Thanks in advance to all answers.
Bryan James.
#2
Posted
:
Thursday, March 23, 2006 9:10:31 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Bryan,
The point of using AcquireMulti method is to get batches of scanned
pages to disk as quickly as possible using our Fast Twain technique. In
some cases, the optimization actually determines that the fastest
configuration is to use disk transfer, which makes the scanner's driver
save the files directly without going through a LEAD bitmap object.
In short, you can't display the bitmap directly in the event, unless
you load it from disk in the event, which is bound to slow the process
down. In this case, it might be better to use Acquire (which is also
capable of multi-page scanning) instead of AcquireMulti.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
How to get current bitmap from AcquireMultiEvent
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.