pygame.image.load(name) -> Surface This will load an image into a new surface. You can pass it either a filename, or a python file-like object to load the image from. If you pass a file-like object that isn't actually a file (like the StringIO class), then you might want to also pass either the filename or extension as the namehint string. The namehint can help the loader determine the filetype. You will only be able to load the types of images supported by your build of SDL_image. This will always include GIF, BMP, PPM, PCX, and TIF. SDL_image can also load JPG and PNG, but they are optional.
Contains routines to load and (someday) save library.