GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainSetImageLayout Method
Value of the left-most edge of the area to scan measured in inches.
Value of the top-most edge of the area to scan measured in inches.
Value of the right-most edge of the area to scan measured in inches. Note: ImageWidth = Right - Left.
Value of the bottom-most edge of the area to scan measured in inches. Note: ImageHeight = Bottom - Top.





In This Topic
TwainSetImageLayout Method (GdPictureImaging)
In This Topic
Specifies the physical area (a rectangle) to be acquired during the next image transfer.
Syntax
'Declaration
 
Public Function TwainSetImageLayout( _
   ByVal Left As Double, _
   ByVal Top As Double, _
   ByVal Right As Double, _
   ByVal Bottom As Double _
) As Boolean
public bool TwainSetImageLayout( 
   double Left,
   double Top,
   double Right,
   double Bottom
)
public function TwainSetImageLayout( 
    Left: Double;
    Top: Double;
    Right: Double;
    Bottom: Double
): Boolean; 
public function TwainSetImageLayout( 
   Left : double,
   Top : double,
   Right : double,
   Bottom : double
) : boolean;
public: bool TwainSetImageLayout( 
   double Left,
   double Top,
   double Right,
   double Bottom
) 
public:
bool TwainSetImageLayout( 
   double Left,
   double Top,
   double Right,
   double Bottom
) 

Parameters

Left
Value of the left-most edge of the area to scan measured in inches.
Top
Value of the top-most edge of the area to scan measured in inches.
Right
Value of the right-most edge of the area to scan measured in inches. Note: ImageWidth = Right - Left.
Bottom
Value of the bottom-most edge of the area to scan measured in inches. Note: ImageHeight = Bottom - Top.

Return Value

True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
Remarks
Before using this method check that the TWAIN state is 4 (TWAIN_SOURCE_OPEN) To get the TWAIN state, use the TwainGetState() method.
See Also