Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#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
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
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.

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, March 23, 2006 9:10:31 AM(UTC)


Groups: Manager, Tech Support
Posts: 367


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.
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.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.056 seconds.