Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 5cbb2d15b928e5cda7a6aeb04f3b1a17 > files > 56

python-imaging-devel-1.1.5-7.el5.i386.rpm

<!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.ImagePath Module</title>
<link rel='stylesheet' href='effbot.css' type='text/css' />
</head>
<body>
<h1>The PIL.ImagePath Module</h1>
<dl>
<dt><b>Path(xy)</b> (class) [<a href='#PIL.ImagePath.Path-class'>#</a>]</dt>
<dd>
<p>Path wrapper.</p>
<p>For more information about this class, see <a href='#PIL.ImagePath.Path-class'><i>The Path Class</i></a>.</p>
</dd>
</dl>
<h2><a id='PIL.ImagePath.Path-class' name='PIL.ImagePath.Path-class'>The Path Class</a></h2>
<dl>
<dt><b>Path(xy)</b> (class) [<a href='#PIL.ImagePath.Path-class'>#</a>]</dt>
<dd>
<p>Path wrapper.</p>
</dd>
<dt><a id='PIL.ImagePath.Path.__init__-method' name='PIL.ImagePath.Path.__init__-method'><b>__init__(xy)</b></a> [<a href='#PIL.ImagePath.Path.__init__-method'>#</a>]</dt>
<dd>
<p>Creates a path object.</p>
<dl>
<dt><i>xy</i></dt>
<dd>
Sequence.  The sequence can contain 2-tuples [(x, y), ...]
    or a flat list of numbers [x, y, ...].</dd>
</dl><br />
</dd>
<dt><a id='PIL.ImagePath.Path.compact-method' name='PIL.ImagePath.Path.compact-method'><b>compact(distance=2)</b></a> [<a href='#PIL.ImagePath.Path.compact-method'>#</a>]</dt>
<dd>
<p>Compacts the path, by removing points that are close to each
other.  This method modifies the path in place.</p>
</dd>
<dt><a id='PIL.ImagePath.Path.getbbox-method' name='PIL.ImagePath.Path.getbbox-method'><b>getbbox()</b></a> [<a href='#PIL.ImagePath.Path.getbbox-method'>#</a>]</dt>
<dd>
<p>Gets the bounding box.</p>
</dd>
<dt><a id='PIL.ImagePath.Path.map-method' name='PIL.ImagePath.Path.map-method'><b>map(function)</b></a> [<a href='#PIL.ImagePath.Path.map-method'>#</a>]</dt>
<dd>
<p>Maps the path through a function.</p>
</dd>
<dt><a id='PIL.ImagePath.Path.tolist-method' name='PIL.ImagePath.Path.tolist-method'><b>tolist(flat=0)</b></a> [<a href='#PIL.ImagePath.Path.tolist-method'>#</a>]</dt>
<dd>
<p>Converts the path to Python list.</p>
<dl>
<dt><i>flat</i></dt>
<dd>
By default, this function returns a list of 2-tuples
    [(x, y), ...].  If this argument is true, it returns a flat
    list [x, y, ...] instead.</dd>
<dt>Returns:</dt>
<dd>
A list of coordinates.</dd>
</dl><br />
</dd>
<dt><a id='PIL.ImagePath.Path.transform-method' name='PIL.ImagePath.Path.transform-method'><b>transform(matrix)</b></a> [<a href='#PIL.ImagePath.Path.transform-method'>#</a>]</dt>
<dd>
<p>Transforms the path.</p>
</dd>
</dl>
</body></html>