GetImageSize()

Description

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

Syntax

.GetImageSize(sImageIndex, iWidth, iHeight);

Parameters

<short> sImageIndex: specifies the index of image in buffer. The index is 0-based.
<int> iWidth: specifies the new width.
<int> iHeight: specifies the new height.

Return value

<double>: returns the size in bytes.

If Dynamic Web TWAIN fails to calculate the size of the image. -1 is returned.

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

Is this page helpful?

Leave a Reply

Your email address will not be published.