<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html> <head> <meta http-equiv='Content-Type' content='text/html; charset=us-ascii' /> <title>The PIL.GdImageFile Module</title> <link rel='stylesheet' href='effbot.css' type='text/css' /> </head> <body> <h1>The PIL.GdImageFile Module</h1> <dl> <dt><b>GdImageFile</b> (class) [<a href='#PIL.GdImageFile.GdImageFile-class'>#</a>]</dt> <dd> <p>Image plugin for the GD uncompressed format.</p> <p>For more information about this class, see <a href='#PIL.GdImageFile.GdImageFile-class'><i>The GdImageFile Class</i></a>.</p> </dd> <dt><a id='PIL.GdImageFile.open-function' name='PIL.GdImageFile.open-function'><b>open(fp, mode="r")</b></a> [<a href='#PIL.GdImageFile.open-function'>#</a>]</dt> <dd> <p>Load texture from a GD image file.</p> <dl> <dt><i>filename</i></dt> <dd> GD file name, or an opened file handle.</dd> <dt><i>mode</i></dt> <dd> Optional mode. In this version, if the mode argument is given, it must be "r".</dd> <dt>Returns:</dt> <dd> An image instance.</dd> <dt>Raises <b>IOError</b>:</dt><dd> If the image could not be read.</dd> </dl><br /> </dd> </dl> <h2><a id='PIL.GdImageFile.GdImageFile-class' name='PIL.GdImageFile.GdImageFile-class'>The GdImageFile Class</a></h2> <dl> <dt><b>GdImageFile</b> (class) [<a href='#PIL.GdImageFile.GdImageFile-class'>#</a>]</dt> <dd> <p>Image plugin for the GD uncompressed format. Note that this format is not supported by the standard <b>Image.open</b> function. To use this plugin, you have to import the <b>GdImageFile</b> module and use the <b>GdImageFile.open</b> function. </p></dd> </dl> </body></html>