GetImageWidth()

Description

Returns the width (in pixels) of the selected image.

Syntax

.GetImageWidth(sImageIndex);

Parameters

<short> sImageIndex: specifies the index of image in buffer. The index is 0-based.

Return value

<int>

If Dynamic Web TWAIN fails to get the width of the image. -1 is returned.

When an error occurs, check ErrorCode or ErrorString for error information.