GetImageSizeWithSpecifiedType()

Description

Calculates the file size in the specified format of the image specified by index.

Syntax

.GetImageSizeWithSpecifiedType(sImageIndex, sImageType);

Parameters

<short> sImageIndex: specifies the index of image in buffer. The index is 0-based.
EnumDWT_ImageType (short) sImageType: specifies the format.

Type Numeric Value
IT_BMP 0
IT_JPG 1
IT_TIF 2
IT_PNG 3
IT_PDF 4

Return value

<int>: returns the size in bytes.

If Dynamic Web TWAIN fails to caculate the size. -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.