# Images

pyglet provides functions for loading and saving images in various formats using native operating system services. pyglet can also work with the Python Imaging Library (PIL) for access to more file formats.

Loaded images can be efficiently provided to OpenGL as a texture, and OpenGL textures and framebuffers can be retrieved as pyglet images to be saved or otherwise manipulated.

pyglet also provides an efficient and comprehensive Sprite class, for displaying images on the screen with an optional transform.

- Loading an image
- Supported image formats
- Working with images
- The AbstractImage hierarchy
- Accessing or providing pixel data
  - Performance concerns
- Image sequences and atlases
  - Image grids
  - 3D textures
  - Texture bins and atlases
- Animations
- Buffer images
- Displaying images
  - Sprites
  - Simple image blitting
- OpenGL imaging
  - Texture dimensions
  - Texture internal format
- Saving an image