File: ImagePath.py

package info (click to toggle)
python-imaging 1.1.4-3.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,092 kB
  • ctags: 2,664
  • sloc: ansic: 16,119; python: 9,017; makefile: 161
file content (63 lines) | stat: -rw-r--r-- 901 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# The Python Imaging Library
# $Id: //modules/pil/PIL/ImagePath.py#4 $
#
# 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.
#

import Image

##
# Path wrapper.

class Path:

    ##
    # Create a path object.
    #
    # @param xy Sequence.

    def __init__(self, xy):
        pass

    ##
    # Compact path contents.

    def compact(self, distance):
        pass

    ##
    # Get bounding box.

    def getbbox(self):
        pass

    ##
    # Map path through function.

    def map(self, function):
        pass

    ##
    # Convert path to Python list.

    def tolist(self):
        pass

    ##
    # Transform path.

    def transform(self, matrix):
        pass


Path = Image.core.path