Page 2 of 2

Re: EzTwain Freeware

Posted: Fri May 05, 2023 8:54 pm
by infratec
Added SelectSourceByName(), GetAcquiredImage(), SetTwainMode()

GetAcquiredImage() returns a hDIB, there is a procedure here in the forum which shows how to get the image from that handle.

I don't know why AcquireToClipboard() is not working.

The help file is very complete.

Re: EzTwain Freeware

Posted: Sat May 06, 2023 9:22 am
by Kwai chang caine
Worst..i have even an IMA on line on your new code

Code: Select all

SysDestroy()
Thanks INFRATEC, i take a look to all this splendid library 8)

Re: EzTwain Freeware

Posted: Sat May 06, 2023 6:02 pm
by infratec
Hm ... I need a scanner :oops:

Btw. DTWAIN_BMP was right, I added the missing constants.

Re: EzTwain Freeware

Posted: Sat May 06, 2023 6:20 pm
by Kwai chang caine
Master wrote:Hm ... I need a scanner :oops:
I exchange my old scanner for your great knowledge :mrgreen: :idea:

Here works : AcquireFile and AcquireNative 8)
But always IMA with AcquireToClipboard :|

Re: EzTwain Freeware

Posted: Sat May 06, 2023 7:22 pm
by infratec
Enabled Logging,

Re: EzTwain Freeware

Posted: Sat May 06, 2023 7:28 pm
by infratec
Please try to use PrototypeC for the AcquireToClipboard function.

Re: EzTwain Freeware

Posted: Sat May 06, 2023 7:40 pm
by Kwai chang caine
Enabled Logging, :shock:
PrototypeC :cry:
:oops:

Re: EzTwain Freeware

Posted: Sat May 06, 2023 7:58 pm
by infratec
I made a fault, try:

Code: Select all

DTWAIN::AcquireToClipboard(Source, DTWAIN::#DTWAIN_PT_DEFAULT, 1, DTWAIN::#DTWAIN_USENATIVE, #True, #True, #True, @Status)

Re: EzTwain Freeware

Posted: Sat May 06, 2023 8:09 pm
by Kwai chang caine
Not works
Always "Status: 0" and the IMA on line SysDestroy() :cry:

Re: EzTwain Freeware

Posted: Sat May 06, 2023 8:24 pm
by infratec
Are you using PB x64 or x86?

Re: EzTwain Freeware

Posted: Sun May 07, 2023 9:29 am
by Kwai chang caine
Pb v5.60 LTS X86
After your question i have try with X64
But this time, PB is locked, and nothing happening :|
It's an old Canoscan 4200F, i love it, simple, faster, and i have bought several of this, for always use this model :mrgreen: