Retrieves the left, top, right, and bottom sides of the current Data Source's default image layout rectangle.

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

Syntax

C#
public bool GetDefaultImageLayout(
	out float fLeft,
	out float fTop,
	out float fRight,
	out float fBottom
)
Visual Basic
Public Function GetDefaultImageLayout ( _
	<OutAttribute> ByRef fLeft As Single, _
	<OutAttribute> ByRef fTop As Single, _
	<OutAttribute> ByRef fRight As Single, _
	<OutAttribute> ByRef fBottom As Single _
) As Boolean

Parameters

fLeft
Type: System..::..Single%
The floating point number for the left side of the default image layout rectangle.
fTop
Type: System..::..Single%
The floating point number for the top side of the default image layout rectangle.
fRight
Type: System..::..Single%
The floating point number for the right side of the default image layout rectangle.
fBottom
Type: System..::..Single%
The floating point number for the bottom side of the default 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