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

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

Syntax

C#
public int ImageWidth { get; }
Visual Basic
Public ReadOnly Property ImageWidth As Integer
	Get

Remarks

-1 is returned, if the Source doesn't know the width of the image. (handhold scanners may do this). ImageWidth 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