Flip

Mirror flip the image vertically or horizontally.

Parameters

Return Values

The instance of *imgo.Image .

Examples

package main

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

func main() {
    imgo.Load("gopher.png").
        Flip(imgo.Horizontal).
        Save("out.png")
}
package main

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

func main() {
    imgo.Load("gopher.png").
        Flip(imgo.Vertical).
        Save("out.png")
}

Last updated