~ubuntu-branches/debian/squeeze/python-imaging/squeeze

« back to all changes in this revision

Viewing changes to Docs/pythondoc-PIL.ImagePath.html

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-08-28 23:14:10 UTC
  • mfrom: (2.1.5 edgy)
  • Revision ID: james.westby@ubuntu.com-20060828231410-lca9enmne3ecmkup
Tags: 1.1.5-11
* python-imaging-sane: Depend on python-numarray. Closes: #382190.
* Add dependencies on ${shlibs:Depends}, lost in -6. Closes: #378596.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
 
2
<html>
 
3
<head>
 
4
<meta http-equiv='Content-Type' content='text/html; charset=us-ascii' />
 
5
<title>The PIL.ImagePath Module</title>
 
6
<link rel='stylesheet' href='effbot.css' type='text/css' />
 
7
</head>
 
8
<body>
 
9
<h1>The PIL.ImagePath Module</h1>
 
10
<dl>
 
11
<dt><b>Path(xy)</b> (class) [<a href='#PIL.ImagePath.Path-class'>#</a>]</dt>
 
12
<dd>
 
13
<p>Path wrapper.</p>
 
14
<p>For more information about this class, see <a href='#PIL.ImagePath.Path-class'><i>The Path Class</i></a>.</p>
 
15
</dd>
 
16
</dl>
 
17
<h2><a id='PIL.ImagePath.Path-class' name='PIL.ImagePath.Path-class'>The Path Class</a></h2>
 
18
<dl>
 
19
<dt><b>Path(xy)</b> (class) [<a href='#PIL.ImagePath.Path-class'>#</a>]</dt>
 
20
<dd>
 
21
<p>Path wrapper.</p>
 
22
</dd>
 
23
<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>
 
24
<dd>
 
25
<p>Creates a path object.</p>
 
26
<dl>
 
27
<dt><i>xy</i></dt>
 
28
<dd>
 
29
Sequence.  The sequence can contain 2-tuples [(x, y), ...]
 
30
    or a flat list of numbers [x, y, ...].</dd>
 
31
</dl><br />
 
32
</dd>
 
33
<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>
 
34
<dd>
 
35
<p>Compacts the path, by removing points that are close to each
 
36
other.  This method modifies the path in place.</p>
 
37
</dd>
 
38
<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>
 
39
<dd>
 
40
<p>Gets the bounding box.</p>
 
41
</dd>
 
42
<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>
 
43
<dd>
 
44
<p>Maps the path through a function.</p>
 
45
</dd>
 
46
<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>
 
47
<dd>
 
48
<p>Converts the path to Python list.</p>
 
49
<dl>
 
50
<dt><i>flat</i></dt>
 
51
<dd>
 
52
By default, this function returns a list of 2-tuples
 
53
    [(x, y), ...].  If this argument is true, it returns a flat
 
54
    list [x, y, ...] instead.</dd>
 
55
<dt>Returns:</dt>
 
56
<dd>
 
57
A list of coordinates.</dd>
 
58
</dl><br />
 
59
</dd>
 
60
<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>
 
61
<dd>
 
62
<p>Transforms the path.</p>
 
63
</dd>
 
64
</dl>
 
65
</body></html>