leptonica: scale should be a tuple for consistency

This commit is contained in:
James R. Barlow
2016-09-08 11:38:10 -07:00
parent 220f1ce161
commit ae16e95e42

View File

@@ -231,10 +231,10 @@ class Pix:
with LeptonicaErrorTrap():
return Pix(lept.pixDeskew(self._pix, reduction_factor))
def scale(self, scalex, scaley):
def scale(self, scale_xy):
"Returns the pix object rescaled according to the proportions given."
with LeptonicaErrorTrap():
return Pix(lept.pixScale(self._pix, scalex, scaley))
return Pix(lept.pixScale(self._pix, scale_xy[0], scale_xy[1]))
def rotate180(self):
with LeptonicaErrorTrap():