code: def transform(self, flip_x, flip_y, swap_xy):
          
          self.logger.debug("flip_x=%s flip_y=%s swap_xy=%s" % (
              flip_x, flip_y, swap_xy))
  
          with self.suppress_redraw:
              self.t_.set(flip_x=flip_x, flip_y=flip_y, swap_xy=swap_xy)
docs: Transform view of the image.
  
          .. note::
  
              Transforming the image is generally faster than rotating,
              if rotating in 90 degree increments. Also see :meth:`rotate`.
  
          Parameters
          ----------
          flipx, flipy : bool
              If `True`, flip the image in the X and Y axes, respectively
  
          swapxy : bool
              If `True`, swap the X and Y axes.