







The PIL.ImagePath Module


Path(xy) (class) [ #PIL.ImagePath.Path-class# ]

Path wrapper.

For more information about this class, see #PIL.ImagePath.Path-classThe Path Class .



The Path Class 


Path(xy) (class) [ #PIL.ImagePath.Path-class# ]

Path wrapper.


__init__(xy)  [ #PIL.ImagePath.Path.__init__-method# ]

Creates a path object.


xy

Sequence.  The sequence can contain 2-tuples [(x, y), ...]
    or a flat list of numbers [x, y, ...].



compact(distance=2)  [ #PIL.ImagePath.Path.compact-method# ]

Compacts the path, by removing points that are close to each
other.  This method modifies the path in place.


getbbox()  [ #PIL.ImagePath.Path.getbbox-method# ]

Gets the bounding box.


map(function)  [ #PIL.ImagePath.Path.map-method# ]

Maps the path through a function.


tolist(flat=0)  [ #PIL.ImagePath.Path.tolist-method# ]

Converts the path to Python list.


flat

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.

Returns:

A list of coordinates.



transform(matrix)  [ #PIL.ImagePath.Path.transform-method# ]

Transforms the path.




