Returns how tall/int, in pixels, the image is. This is a runtime, read-only property.

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

Syntax

C#
public int ImageLength { get; }
Visual Basic
Public ReadOnly Property ImageLength As Integer
	Get
Visual C++
public:
virtual property int ImageLength {
	int get () sealed;
}

Property Value

Type: Int32

Remarks

-1 is returned, if the Source doesn't know the length of the image.(hand scanners may do this). ImageLength property, along with other properties about information of the current image, is valid only in OnPreTransfer and OnPostTransfer event.

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