Accusoft.TwainPro9.ActiveX
Specify Image Layout

The desired layout size for scanned images can be specified prior to initiating a scanning session, by calling SetImageLayout. This method sets the Left, Top, Right, and Bottom sides of the Image Layout rectangle for the current Data Source. The Image Layout rectangle defines what portion of the Data Source's scanning area is acquired. 

It is also a good idea to set the ICAP_UNITS capability for the scanner prior to using the SetImageLayout method to specify the unit of measure you'll be using.
VB Example
Copy Code
' This code demonstrates how to set the Image Layout rectangle to 6.5 inches X 9 inches
TwainPRO1.Capability = ICAP_UNITS
If TwainPRO1.CapSupported = True Then
TwainPRO1.CapTypeOut = TWON_ONEVALUE
TwainPRO1.CapValueOut = 0 ' set units to Inches
TwainPRO1.SetCapOut
End If 
TwainPRO1.SetImageLayout 1, 1, 7.5, 10 
Image Layout can only be modified, or set, prior to initiating the scanning session (StartSession).

 

See Also

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback