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

« back to all changes in this revision

Viewing changes to PIL/ImageDraw2.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-31 20:49:20 UTC
  • mfrom: (27.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130131204920-b5zshy6vgfvdionl
Tags: 1.1.7+1.7.8-1ubuntu1
Rewrite build dependencies to allow cross builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# See the README file for information on usage and redistribution.
17
17
#
18
18
 
19
 
import Image, ImageColor, ImageDraw, ImageFont, ImagePath
 
19
from . import Image, ImageColor, ImageDraw, ImageFont, ImagePath
20
20
 
21
21
class Pen:
22
22
    def __init__(self, color, width=1, opacity=255):
68
68
        else:
69
69
            getattr(self.draw, op)(xy, fill=fill, outline=outline)
70
70
 
71
 
    def settransform(self, (xoffset, yoffset)):
 
71
    def settransform(self, offset):
 
72
        (xoffset, yoffset) = offset
72
73
        self.transform = (1, 0, xoffset, 0, 1, yoffset)
73
74
 
74
75
    def arc(self, xy, start, end, *options):