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

`#include "il_internal.h"`
`#include "il_icon.h"`
`#include <png.h>`

## Defines

#define | GAMMA_CORRECTION 1.0

## Functions

ILboolean | ilLoadIcon (ILconst_string FileName)
| Reads an icon file.
ILboolean | ilLoadIconF (ILHANDLE File)
| Reads an already-opened icon file.
ILboolean | ilLoadIconL (const void *Lump, ILuint Size)
| Reads from a memory "lump" that contains an icon.
ILboolean | iLoadIconInternal ()
ILint | ico_readpng_init ()
ILboolean | ico_readpng_get_image (ICOIMAGE *Icon, ILdouble display_exponent)
void | ico_readpng_cleanup ()
ILboolean | iLoadIconPNG (ICOIMAGE *Icon)

## Variables

png_structp | ico_png_ptr = NULL
png_infop | ico_info_ptr = NULL
ILint | ico_color_type

## Define Documentation

#define GAMMA_CORRECTION 1.0

Referenced by iLoadIconPNG(), and iLoadPngInternal().

## Function Documentation

void ico_readpng_cleanup | ( |  | ) |

Referenced by iLoadIconPNG().

ILboolean ico_readpng_get_image | ( | ICOIMAGE * | Icon,
|  | ILdouble | display_exponent |
| ) |  |  |

Referenced by iLoadIconPNG().

ILint ico_readpng_init | ( |  | ) |

Referenced by iLoadIconPNG().

ILboolean ilLoadIcon | ( | ILconst_string | FileName | ) |

Reads an icon file.

Referenced by ilLoad(), and ilLoadImage().

ILboolean ilLoadIconF | ( | ILHANDLE | File | ) |

Reads an already-opened icon file.

Referenced by ilLoadF(), and ilLoadIcon().

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

Reads from a memory "lump" that contains an icon.

Referenced by ilLoadL().

ILboolean iLoadIconInternal | ( |  | ) |

Referenced by ilLoadIconF(), and ilLoadIconL().

ILboolean iLoadIconPNG | ( | ICOIMAGE * | Icon | ) |

Referenced by iLoadIconInternal().

## Variable Documentation

ILint ico_color_type

Referenced by ico_readpng_get_image().

png_infop ico_info_ptr = NULL

Referenced by ico_readpng_cleanup(), ico_readpng_get_image(), and ico_readpng_init().

png_structp ico_png_ptr = NULL

Referenced by ico_readpng_cleanup(), ico_readpng_get_image(), and ico_readpng_init().