Sets the left, top, right, and bottom sides of the image layout rectangle for the current Data Source.

Namespace: Dynamsoft.DotNet.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public bool SetImageLayout(
	float fLeft,
	float fTop,
	float fRight,
	float fBottom
)
Visual Basic
Public Function SetImageLayout ( _
	fLeft As Single, _
	fTop As Single, _
	fRight As Single, _
	fBottom As Single _
) As Boolean

Parameters

fLeft
Type: System..::..Single
Float fLeft: specifies the floating point number for the left side of the image layout rectangle.
fTop
Type: System..::..Single
Float fTop: specifies the floating point number for the top side of the image layout rectangle.
fRight
Type: System..::..Single
Float fRight: specifies the floating point number for the right side of the image layout rectangle.
fBottom
Type: System..::..Single
Float fBottom: specifies the floating point number for the bottom side of the image layout rectangle.

Return Value

True indicates success. False indicates failure.

Remarks

The image layout rectangle defines what portion of the Data Source's scanning area is acquired.

Exceptions

ExceptionCondition
Dynamsoft.DotNet.TWAIN..::..TwainException When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString.

See Also