天天看點

PIL.Image.transpose 順時針旋轉

transpose(method) method of PIL.JpegImagePlugin.JpegImageFile instance

    Transpose image (flip or rotate in 90 degree steps)

    順時針旋轉

    :param method: One of :py:attr:`PIL.Image.FLIP_LEFT_RIGHT`,

      :py:attr:`PIL.Image.FLIP_TOP_BOTTOM`, :py:attr:`PIL.Image.ROTATE_90`,

      :py:attr:`PIL.Image.ROTATE_180`, :py:attr:`PIL.Image.ROTATE_270`,

      :py:attr:`PIL.Image.TRANSPOSE` or :py:attr:`PIL.Image.TRANSVERSE`.

    :returns: Returns a flipped or rotated copy of this image.