flip every y,x to x,y

This commit is contained in:
Laura Klünder 2017-10-29 11:32:44 +01:00
parent cce476c37a
commit a3be7b2842
7 changed files with 19 additions and 17 deletions

View file

@ -39,7 +39,7 @@ class SVGImage:
def __init__(self, bounds, scale: float=1, buffer=0):
# get image dimensions.
# note that these values describe the „viewport“ of the image, not its dimensions in pixels.
(self.bottom, self.left), (self.top, self.right) = bounds
(self.left, self.bottom), (self.right, self.top) = bounds
self.width = self.right-self.left
self.height = self.top-self.bottom
self.scale = scale