~ubuntu-branches/ubuntu/wily/python-imaging/wily

« back to all changes in this revision

Viewing changes to .pc/git-updates.diff/PIL/ImagePath.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-31 20:49:20 UTC
  • mfrom: (1.1.4)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130131204920-7tnuhqhlsqdza4c2
Rewrite build dependencies to allow cross builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# The Python Imaging Library
 
3
# $Id$
 
4
#
 
5
# path interface
 
6
#
 
7
# History:
 
8
# 1996-11-04 fl   Created
 
9
# 2002-04-14 fl   Added documentation stub class
 
10
#
 
11
# Copyright (c) Secret Labs AB 1997.
 
12
# Copyright (c) Fredrik Lundh 1996.
 
13
#
 
14
# See the README file for information on usage and redistribution.
 
15
#
 
16
 
 
17
import Image
 
18
 
 
19
##
 
20
# Path wrapper.
 
21
 
 
22
class Path:
 
23
 
 
24
    ##
 
25
    # Creates a path object.
 
26
    #
 
27
    # @param xy Sequence.  The sequence can contain 2-tuples [(x, y), ...]
 
28
    #     or a flat list of numbers [x, y, ...].
 
29
 
 
30
    def __init__(self, xy):
 
31
        pass
 
32
 
 
33
    ##
 
34
    # Compacts the path, by removing points that are close to each
 
35
    # other.  This method modifies the path in place.
 
36
 
 
37
    def compact(self, distance=2):
 
38
        pass
 
39
 
 
40
    ##
 
41
    # Gets the bounding box.
 
42
 
 
43
    def getbbox(self):
 
44
        pass
 
45
 
 
46
    ##
 
47
    # Maps the path through a function.
 
48
 
 
49
    def map(self, function):
 
50
        pass
 
51
 
 
52
    ##
 
53
    # Converts the path to Python list.
 
54
    #
 
55
    # @param flat By default, this function returns a list of 2-tuples
 
56
    #     [(x, y), ...].  If this argument is true, it returns a flat
 
57
    #     list [x, y, ...] instead.
 
58
    # @return A list of coordinates.
 
59
 
 
60
    def tolist(self, flat=0):
 
61
        pass
 
62
 
 
63
    ##
 
64
    # Transforms the path.
 
65
 
 
66
    def transform(self, matrix):
 
67
        pass
 
68
 
 
69
 
 
70
# override with C implementation
 
71
Path = Image.core.path