# E:/DevIL/src-IL/src/il_tiff.c File Reference

`#include "il_internal.h"`
`#include "tiffio.h"`
`#include <time.h>`
`#include "il_manip.h"`

## Defines

#define | MAGIC_HEADER1 0x4949
#define | MAGIC_HEADER2 0x4D4D

## Functions

ILboolean | ilisValidTiffExtension (ILconst_string FileName)
ILboolean | ilIsValidTiff (ILconst_string FileName)
| Checks if the file specified in FileName is a valid tiff file.
ILboolean | ilisValidTiffFunc ()
ILboolean | ilIsValidTiffF (ILHANDLE File)
| Checks if the ILHANDLE contains a valid tiff file at the current position.
ILboolean | ilIsValidTiffL (const void *Lump, ILuint Size)
| Checks if Lump is a valid Tiff lump.
ILboolean | ilLoadTiff (ILconst_string FileName)
| Reads a Tiff file.
ILboolean | ilLoadTiffF (ILHANDLE File)
| Reads an already-opened Tiff file.
ILboolean | ilLoadTiffL (const void *Lump, ILuint Size)
| Reads from a memory "lump" that contains a Tiff.
void | warningHandler (const char *mod, const char *fmt, va_list ap)
void | errorHandler (const char *mod, const char *fmt, va_list ap)
ILboolean | ilSaveTiff (const ILstring FileName)
| Writes a Tiff file.
ILuint | ilSaveTiffF (ILHANDLE File)
| Writes a Tiff to an already-opened file.
ILuint | ilSaveTiffL (void *Lump, ILuint Size)
| Writes a Tiff to a memory "lump".

## Define Documentation

#define MAGIC_HEADER1 0x4949

Referenced by ilisValidTiffFunc().

#define MAGIC_HEADER2 0x4D4D

Referenced by ilisValidTiffFunc().

## Function Documentation

void errorHandler | ( | const char * | mod,
|  | const char * | fmt,
|  | va_list | ap |
| ) |  |  |

Referenced by ilSaveFromJpegStruct().

ILboolean ilIsValidTiff | ( | ILconst_string | FileName | ) |

Checks if the file specified in FileName is a valid tiff file.

Referenced by ilIsValid().

ILboolean ilisValidTiffExtension | ( | ILconst_string | FileName | ) |

Referenced by ilIsValidTiff().

ILboolean ilIsValidTiffF | ( | ILHANDLE | File | ) |

Checks if the ILHANDLE contains a valid tiff file at the current position.

Referenced by ilDetermineTypeF(), ilIsValidF(), and ilIsValidTiff().

ILboolean ilisValidTiffFunc | ( |  | ) |

Referenced by ilIsValidTiffF(), and ilIsValidTiffL().

ILboolean ilIsValidTiffL | ( | const void * | Lump,
|  | ILuint | Size |
| ) |  |  |

Checks if Lump is a valid Tiff lump.

Referenced by ilDetermineTypeL(), and ilIsValidL().

ILboolean ilLoadTiff | ( | ILconst_string | FileName | ) |

Reads a Tiff file.

Referenced by ilLoad(), and ilLoadImage().

ILboolean ilLoadTiffF | ( | ILHANDLE | File | ) |

Reads an already-opened Tiff file.

Referenced by ilLoadF(), and ilLoadTiff().

ILboolean ilLoadTiffL | ( | const void * | Lump,
|  | ILuint | Size |
| ) |  |  |

Reads from a memory "lump" that contains a Tiff.

Referenced by ilLoadL().

ILboolean ilSaveTiff | ( | const ILstring | FileName | ) |

Writes a Tiff file.

Referenced by ilSave(), and ilSaveImage().

ILuint ilSaveTiffF | ( | ILHANDLE | File | ) |

Writes a Tiff to an already-opened file.

Referenced by ilSaveF(), and ilSaveTiff().

ILuint ilSaveTiffL | ( | void * | Lump,
|  | ILuint | Size |
| ) |  |  |

Writes a Tiff to a memory "lump".

Referenced by ilDetermineSize(), and ilSaveL().

void warningHandler | ( | const char * | mod,
|  | const char * | fmt,
|  | va_list | ap |
| ) |  |  |