Sets the values of the specified frame.

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

Syntax

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

Parameters

iIndex
Type: System..::..Int32
Specifies the values of which frame to set. The index is 0-based.
fLeft
Type: System..::..Single
The value (in ICAP_UNITS) of the left-most edge of the specified frame.
fTop
Type: System..::..Single
The value (in ICAP_UNITS) of the top-most edge of the specified frame.
fRight
Type: System..::..Single
The value (in ICAP_UNITS) of the right-most edge of the specified frame.
fBottom
Type: System..::..Single
The value (in ICAP_UNITS) of the bottom-most edge of the specified frame.

Return Value

True indicates success. False indicates failure.

Remarks

The default unit is assumed to be "inches" unless it has been otherwise negotiated between the application and source.

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