Loading...

TwainSetImageLayout: Small images

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

TwainSetImageLayout: Small images

Postby ctn » Tue Feb 24, 2009 1:59 pm

Hi

I could not set the image layout with the following parameters:

_gdTwain.TwainSetImageLayout(5.1,0.366666666666667,6.73333333333333,0.7);

The return value of this function is false, TwainGetLastConditionCode = TWCC_BADVALUE and TwainGetLastResultCode = TWRC_FAILURE.

It seems that the parameters are out of range. But why? Since the ranges of the A4 format are left=0, top=0, right=8.26, bottom=11.69 (inches).

Could you please investigate?
Thank you
Br, ctn
ctn
 
Posts: 57
Joined: Thu Dec 04, 2008 6:20 pm

Re: TwainSetImageLayout: Small images

Postby Loïc » Tue Feb 24, 2009 11:13 pm

Hi,

I've tested your parameters with success using my scanners.

Your scan seems to be unable to apply these values.

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: TwainSetImageLayout: Small images

Postby ctn » Wed Feb 25, 2009 11:14 am

Hi Loïc

Ok. Thank you.
Br, ctn
ctn
 
Posts: 57
Joined: Thu Dec 04, 2008 6:20 pm

Re: TwainSetImageLayout: Small images

Postby budait » Tue Sep 20, 2011 8:21 pm

Is there a way to query the minimal scanning area?
budait
 
Posts: 4
Joined: Tue Sep 20, 2011 6:23 pm

Re: TwainSetImageLayout: Small images

Postby budait » Tue Sep 20, 2011 8:42 pm

Within the TWAIN spec i found following capability to be queried
ICAP_MINIMUMHEIGHT that can be queried. Is GdTwain supporting it?

Just a note:

The experience showed that most of the scanners have a minimal scan area of 1x1 inch.
For example the Plustek OpticSlim 500 does not allow a scan are to be set on the 4th quarted of the available scan area. This means that the left upper point value must be smaller than (maxphysicalwidth /2) and (maxphysicalheight /2)

Is there a possibility to query such a limitation of the scanner?
budait
 
Posts: 4
Joined: Tue Sep 20, 2011 6:23 pm


Return to GdTwain [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests