Advertisement
linuxlizard

Scan region size property

Mar 11th, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1.     @property
  2.     def size(self):
  3.         pixel_width = self.Width - self.XOffset
  4.         pixel_height = self.Height - self.YOffset
  5.         # return x,y  Note numpy and PIL want row,col which will be [1],[0]
  6.         return (pixel_width,pixel_height)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement