Retrieves the left, top, right, and bottom sides of the image layout rectangle for the current Data Source.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public bool GetImageLayout( out float fLeft, out float fTop, out float fRight, out float fBottom ) |
| Visual Basic |
|---|
Public Function GetImageLayout ( _ <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 image layout rectangle.
- fTop
- Type: System..::..Single%
The floating point number for the top side of the image layout rectangle.
- fRight
- Type: System..::..Single%
The floating point number for the right side of the image layout rectangle.
- fBottom
- Type: System..::..Single%
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
| Exception | Condition |
|---|---|
| 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. |