openmedialibrary_platform/Darwin/lib/python3.4/site-packages/PIL/ImagePath.py

67 lines
1.2 KiB
Python
Raw Normal View History

2013-10-11 17:28:32 +00:00
#
# The Python Imaging Library
# $Id$
#
# path interface
#
# History:
# 1996-11-04 fl Created
# 2002-04-14 fl Added documentation stub class
#
# Copyright (c) Secret Labs AB 1997.
# Copyright (c) Fredrik Lundh 1996.
#
# See the README file for information on usage and redistribution.
#
2014-09-30 16:15:32 +00:00
from PIL import Image
2013-10-11 17:28:32 +00:00
2014-09-30 16:15:32 +00:00
# the Python class below is overridden by the C implementation.
2013-10-11 17:28:32 +00:00
2014-09-30 16:15:32 +00:00
class Path:
2013-10-11 17:28:32 +00:00
def __init__(self, xy):
pass
##
# Compacts the path, by removing points that are close to each
# other. This method modifies the path in place.
def compact(self, distance=2):
pass
##
# Gets the bounding box.
def getbbox(self):
pass
##
# Maps the path through a function.
def map(self, function):
pass
##
# Converts the path to Python list.
#
# @param 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.
# @return A list of coordinates.
def tolist(self, flat=0):
pass
##
# Transforms the path.
def transform(self, matrix):
pass
# override with C implementation
Path = Image.core.path