Example #1
0
 def reset_img_transformations(self):
     for transformation in reversed(self.img_transformations):
         if transformation == rotate_matrix_p90:
             self.img_data = rotate_matrix_m90(self.img_data)
         elif transformation == rotate_matrix_m90:
             self.img_data = rotate_matrix_p90(self.img_data)
         else:
             self.img_data = transformation(self.img_data)
     self.img_transformations = []
     self.notify()
Example #2
0
 def rotate_img_m90(self):
     self.img_data = rotate_matrix_m90(self.img_data)
     self.img_transformations.append(rotate_matrix_m90)
     self.notify()