Returns the file size of the new image resized from the image of a specified index in buffer.

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

Syntax

C#
public double GetImageSize(
	short sImageIndex,
	int iWidth,
	int iHeight
)
Visual Basic
Public Function GetImageSize ( _
	sImageIndex As Short, _
	iWidth As Integer, _
	iHeight As Integer _
) As Double

Parameters

sImageIndex
Type: System..::..Int16
specifies the index of image in buffer. The index is 0-based.
iWidth
Type: System..::..Int32
specifies the pixel width of the new image.
iHeight
Type: System..::..Int32
specifies the pixel height of the new image.

Return Value

-1 indicates failure. Other values indicate success.

Remarks

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