BiTiff.dll specific error codes

The last error code in the BiTiff.dll can be retrieved by the TiffError function.

The TiffErrorString function can be used to get the error message associated with error code.

 

Please note that each DLL has a different Error code function and Error String function. The error list may be expanded in future releases without notice.

Error Code number

Error Code

Meaning

0

TOK

Operation was successfull.

1

TNOTENOUGHMEMORY

Not enough memory to allocate block.

2

TBADOPENMODE

Not T_READ or T_CREAT in OpenTiffFile().

3

TINDEXOUTOFRANGE

Image or tag data index is out of range.

4

TSTRIPOUTOFRANGE

Strip index is out of range.

5

TENDOFDATA

Unexpected end of file in reading data.

6

TFILEIOERROR

General I/O error in reading or writing.

7

TPATHTOOLONG

Pathname is longer than MAXPATH.

8

TNOTTIFFILE

File does not have a valid TIFF format.

9

TBADTAG

Invalid TIFF directory tag.

10

TTOOFEWINFO

Indispensable tags are missing.

11

TUNKNOWNCOMPRESSION

Image compression type is not known.

12

TCOMPRESSIONFAILED

Error during compression or decompression.

13

TNOSUCHTAG

Such tag is not defined.

14

TBADBYTEORDER

Invalid byte order ID in ModiTiffFileInfo().

15

TBADBITORDER

Invalid BITORDER tag value.

16

TBADNUMBEROFCOLORS

Invalid BITSPERPIXEL tag value.

17

TTOFEWCOLORINFO

Color info is not enough.

18

TNOTCALSFILE

File has not a valid CALS format.

19

TNOEOFB

End of Facsimile Block is missing (EOFB).

20

TBADEOFB

Unexpected End of Facsimile Block (EOFB).

21

TBADWIDTH

Image width must be 1728 pixels (Can’t save it).

22

TNOJPEGDLL

Module JPEG DLL is not found.

23

TBADJPEGDLL

Can’t find a function in module JPEG DLL.

24

TFORMATCLIPBOARD

Clipboard format is not bitmap.

25

TOPENCLIPBOARD

Could not open clipboard.

26

TRECEIVECLIPBOARD

Could not receive bitmap from clipboard.

27

TIMAGENOTREGISTERED

Image is not registered.