Rotate

Rotate the image clockwise. The size of the image may change after rotate.

Parameters

Parameter
Type
Description

angle

int

angle of rotation.

Return Values

The instance of *imgo.Image .

Examples

package main

import (
    "github.com/fishtailstudio/imgo"
)

func main() {
    imgo.Load("gopher.png").
        Rotate(90).
        Save("out.png")
}

Last updated