Loading...

Scanning Halftone

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

Scanning Halftone

Postby 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
jesusahmed
 
Posts: 3
Joined: Thu Jul 09, 2009 7:58 am

Re: Scanning Halftone

Postby 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
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Scanning Halftone

Postby 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!
jesusahmed
 
Posts: 3
Joined: Thu Jul 09, 2009 7:58 am

Re: Scanning Halftone

Postby 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
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdTwain [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests