Scanning Halftone

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
jesusahmed
Posts: 3
Joined: Thu Jul 09, 2009 7:58 am

Scanning Halftone

Post by jesusahmed » Sat Jul 25, 2009 8:23 pm

Hi!
I have a canon scanner dr-3020, the controller of this equipment allows autodetection paper size and type in halftone image. What methods gdpicture can emulate these options to scan the image?
thanks

User avatar
Loïc
Site Admin
Posts: 5664
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Scanning Halftone

Post by Loïc » Sun Jul 26, 2009 5:31 pm

Hi,

For halftone image:

Code: Select all

Twain1.TwainSetCurrentBitDepth (8)
Twain1.TwainSetCurrentPixelType (TWPT_PALETTE)
twain1.TwainSetCapCurrentNumeric(ICAP_BITDEPTHREDUCTION,TWTY_UINT16,1)
For paper size auto detection, this feature is available into TWAIN 2.0 only. This means that you need to have TWAIN DSM 2.X & a twain driver compatible with TWAIN 2.0.

The method to use is TwainSetAutoSize().

With best regards,

Loïc

jesusahmed
Posts: 3
Joined: Thu Jul 09, 2009 7:58 am

Re: Scanning Halftone

Post by jesusahmed » Wed Aug 26, 2009 6:13 am

thanks for answering

but I'm working with VFP9 and the script for halftone image, generated error because Visual FoxPro does not recognize the constants TWPT_PALETTE, ICAP_BITDEPTHREDUCTION and TWTY_UINT16, how these constants could be referenced from VFP, and where to download TWAIN DSM 2.X?

thanks!

User avatar
Loïc
Site Admin
Posts: 5664
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Scanning Halftone

Post by Loïc » Wed Aug 26, 2009 10:22 am

Hi,

You can get all TWAIN 2.0 constants from this link: http://twain.org/devfiles/twain.h

And a link to download the TWAIN DSM 2.0: http://sourceforge.net/projects/twain-dsm/files/

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest