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

`#include "il_internal.h"`
`#include "il_pic.h"`
`#include "il_manip.h"`
`#include <string.h>`

## Functions

ILboolean | ilIsValidPic (ILconst_string FileName)
| Checks if the file specified in FileName is a valid .pic file.
ILboolean | ilIsValidPicF (ILHANDLE File)
| Checks if the ILHANDLE contains a valid .pic file at the current position.
ILboolean | ilIsValidPicL (const void *Lump, ILuint Size)
| Checks if Lump is a valid .pic lump.
ILboolean | iGetPicHead (PIC_HEAD *Header)
ILboolean | iIsValidPic ()
ILboolean | iCheckPic (PIC_HEAD *Header)
ILboolean | ilLoadPic (ILconst_string FileName)
| Reads a .pic file.
ILboolean | ilLoadPicF (ILHANDLE File)
| Reads an already-opened .pic file.
ILboolean | ilLoadPicL (const void *Lump, ILuint Size)
| Reads from a memory "lump" that contains a .pic.
ILboolean | iLoadPicInternal ()
ILboolean | readScanlines (ILuint *image, ILint width, ILint height, CHANNEL *channel, ILuint alpha)
ILuint | readScanline (ILubyte *scan, ILint width, CHANNEL *channel, ILint bytes)
ILboolean | channelReadRaw (ILubyte *scan, ILint width, ILint noCol, ILint *off, ILint bytes)
ILboolean | channelReadPure (ILubyte *scan, ILint width, ILint noCol, ILint *off, ILint bytes)
ILboolean | channelReadMixed (ILubyte *scan, ILint width, ILint noCol, ILint *off, ILint bytes)

## Function Documentation

ILboolean channelReadMixed | ( | ILubyte * | scan,
|  | ILint | width,
|  | ILint | noCol,
|  | ILint * | off,
|  | ILint | bytes |
| ) |  |  |

Referenced by readScanline().

ILboolean channelReadPure | ( | ILubyte * | scan,
|  | ILint | width,
|  | ILint | noCol,
|  | ILint * | off,
|  | ILint | bytes |
| ) |  |  |

Referenced by readScanline().

ILboolean channelReadRaw | ( | ILubyte * | scan,
|  | ILint | width,
|  | ILint | noCol,
|  | ILint * | off,
|  | ILint | bytes |
| ) |  |  |

Referenced by readScanline().

ILboolean iCheckPic | ( | PIC_HEAD * | Header | ) |

Referenced by iIsValidPic(), and iLoadPicInternal().

ILboolean iGetPicHead | ( | PIC_HEAD * | Header | ) |

Referenced by iIsValidPic(), and iLoadPicInternal().

ILboolean iIsValidPic | ( | void |  | ) |

Referenced by ilIsValidPicF(), and ilIsValidPicL().

ILboolean ilIsValidPic | ( | ILconst_string | FileName | ) |

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

Referenced by ilIsValid().

ILboolean ilIsValidPicF | ( | ILHANDLE | File | ) |

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

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

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

Checks if Lump is a valid .pic lump.

Referenced by ilDetermineTypeL(), and ilIsValidL().

ILboolean ilLoadPic | ( | ILconst_string | FileName | ) |

Reads a .pic file.

Referenced by ilLoad(), and ilLoadImage().

ILboolean ilLoadPicF | ( | ILHANDLE | File | ) |

Reads an already-opened .pic file.

Referenced by ilLoadF(), and ilLoadPic().

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

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

Referenced by ilLoadL().

ILboolean iLoadPicInternal | ( | void |  | ) |

Referenced by ilLoadPicF(), and ilLoadPicL().

ILuint readScanline | ( | ILubyte * | scan,
|  | ILint | width,
|  | CHANNEL * | channel,
|  | ILint | bytes |
| ) |  |  |

Referenced by readScanlines().

ILboolean readScanlines | ( | ILuint * | image,
|  | ILint | width,
|  | ILint | height,
|  | CHANNEL * | channel,
|  | ILuint | alpha |
| ) |  |  |

Referenced by iLoadPicInternal().