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


.GetImageSize(sImageIndex, iWidth, iHeight);


<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.


Currently this method is only valid in Windows & Mac.

Is this page helpful?

Leave a Reply

Your email address will not be published.