EzTwain Freeware
Re: EzTwain Freeware
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.
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.
Last edited by infratec on Sat May 06, 2023 9:26 am, edited 1 time in total.
- Kwai chang caine
- Always Here

- Posts: 5499
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: EzTwain Freeware
Worst..i have even an IMA on line on your new code
Thanks INFRATEC, i take a look to all this splendid library 
Code: Select all
SysDestroy()
The happiness is a road...Not a destination
Re: EzTwain Freeware
Hm ... I need a scanner
Btw. DTWAIN_BMP was right, I added the missing constants.
Btw. DTWAIN_BMP was right, I added the missing constants.
- Kwai chang caine
- Always Here

- Posts: 5499
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: EzTwain Freeware
I exchange my old scanner for your great knowledgeMaster wrote:Hm ... I need a scanner
Here works : AcquireFile and AcquireNative
But always IMA with AcquireToClipboard
The happiness is a road...Not a destination
Re: EzTwain Freeware
Enabled Logging,
Re: EzTwain Freeware
Please try to use PrototypeC for the AcquireToClipboard function.
- Kwai chang caine
- Always Here

- Posts: 5499
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: EzTwain Freeware
I made a fault, try:
Code: Select all
DTWAIN::AcquireToClipboard(Source, DTWAIN::#DTWAIN_PT_DEFAULT, 1, DTWAIN::#DTWAIN_USENATIVE, #True, #True, #True, @Status)- Kwai chang caine
- Always Here

- Posts: 5499
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: EzTwain Freeware
Not works
Always "Status: 0" and the IMA on line SysDestroy()
Always "Status: 0" and the IMA on line SysDestroy()
The happiness is a road...Not a destination
Re: EzTwain Freeware
Are you using PB x64 or x86?
- Kwai chang caine
- Always Here

- Posts: 5499
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: EzTwain Freeware
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
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
The happiness is a road...Not a destination