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

`#include "il_internal.h"`
`#include "il_targa.h"`
`#include <string.h>`
`#include "il_manip.h"`
`#include "il_bits.h"`

## Functions

ILboolean | ilIsValidTga (ILconst_string FileName)
| Checks if the file specified in FileName is a valid Targa file.
ILboolean | ilIsValidTgaF (ILHANDLE File)
| Checks if the ILHANDLE contains a valid Targa file at the current position.
ILboolean | ilIsValidTgaL (const void *Lump, ILuint Size)
| Checks if Lump is a valid Targa lump.
ILboolean | iGetTgaHead (TARGAHEAD *Header)
ILboolean | iIsValidTarga ()
ILboolean | iCheckTarga (TARGAHEAD *Header)
ILboolean | ilLoadTarga (ILconst_string FileName)
| Reads a Targa file.
ILboolean | ilLoadTargaF (ILHANDLE File)
| Reads an already-opened Targa file.
ILboolean | ilLoadTargaL (const void *Lump, ILuint Size)
| Reads from a memory "lump" that contains a Targa.
ILboolean | iLoadTargaInternal ()
ILboolean | iReadColMapTga (TARGAHEAD *Header)
ILboolean | iReadUnmapTga (TARGAHEAD *Header)
ILboolean | iReadBwTga (TARGAHEAD *Header)
ILboolean | iUncompressTgaData (ILimage *Image)
ILboolean | i16BitTarga (ILimage *Image)
ILboolean | ilSaveTarga (const ILstring FileName)
| Writes a Targa file.
ILuint | ilSaveTargaF (ILHANDLE File)
| Writes a Targa to an already-opened file.
ILuint | ilSaveTargaL (void *Lump, ILuint Size)
| Writes a Targa to a memory "lump".
ILboolean | iSaveTargaInternal ()
ILuint | iTargaSize (void)
void | iGetDateTime (ILuint *Month, ILuint *Day, ILuint *Yr, ILuint *Hr, ILuint *Min, ILuint *Sec)

## Function Documentation

ILboolean i16BitTarga | ( | ILimage * | Image | ) |

Referenced by iReadUnmapTga().

ILboolean iCheckTarga | ( | TARGAHEAD * | Header | ) |

Referenced by iIsValidTarga(), and iLoadTargaInternal().

void iGetDateTime | ( | ILuint * | Month,
|  | ILuint * | Day,
|  | ILuint * | Yr,
|  | ILuint * | Hr,
|  | ILuint * | Min,
|  | ILuint * | Sec |
| ) |  |  |

Referenced by iSaveTargaInternal().

ILboolean iGetTgaHead | ( | TARGAHEAD * | Header | ) |

Referenced by iIsValidTarga(), and iLoadTargaInternal().

ILboolean iIsValidTarga | ( |  | ) |

Referenced by ilIsValidTgaF(), and ilIsValidTgaL().

ILboolean ilIsValidTga | ( | ILconst_string | FileName | ) |

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

Referenced by ilIsValid().

ILboolean ilIsValidTgaF | ( | ILHANDLE | File | ) |

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

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

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

Checks if Lump is a valid Targa lump.

Referenced by ilDetermineTypeL(), and ilIsValidL().

ILboolean ilLoadTarga | ( | ILconst_string | FileName | ) |

Reads a Targa file.

Referenced by ilLoad(), and ilLoadImage().

ILboolean ilLoadTargaF | ( | ILHANDLE | File | ) |

Reads an already-opened Targa file.

Referenced by ilLoadF(), and ilLoadTarga().

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

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

Referenced by ilLoadL().

ILboolean iLoadTargaInternal | ( | void |  | ) |

Referenced by ilLoadTargaF(), and ilLoadTargaL().

ILboolean ilSaveTarga | ( | const ILstring | FileName | ) |

Writes a Targa file.

Referenced by ilSave(), and ilSaveImage().

ILuint ilSaveTargaF | ( | ILHANDLE | File | ) |

Writes a Targa to an already-opened file.

Referenced by ilSaveF(), and ilSaveTarga().

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

Writes a Targa to a memory "lump".

Referenced by ilSaveL(), and iTargaSize().

ILboolean iReadBwTga | ( | TARGAHEAD * | Header | ) |

Referenced by iLoadTargaInternal().

ILboolean iReadColMapTga | ( | TARGAHEAD * | Header | ) |

Referenced by iLoadTargaInternal().

ILboolean iReadUnmapTga | ( | TARGAHEAD * | Header | ) |

Referenced by iLoadTargaInternal().

ILboolean iSaveTargaInternal | ( | void |  | ) |

Referenced by ilSaveTargaF(), and ilSaveTargaL().

ILuint iTargaSize | ( | void |  | ) |

Referenced by ilDetermineSize().

ILboolean iUncompressTgaData | ( | ILimage * | Image | ) |

Referenced by iReadBwTga(), iReadColMapTga(), and iReadUnmapTga().