Function rotate

  • Rotates an image in multiples of 90 degrees.

    Parameters

    • image: Image

      The image to rotate.

    • angle: RotateAngle

      The angle to rotate the image by. Positive values rotate clockwise, negative values rotate counter-clockwise.

    Returns Image

    • The rotated image.