Flip
Mirror flip the image vertically or horizontally.

Parameters

Parameter
Type
Description
flipType
imgo.FlipType
Use imgo.Horizontal for horizontal mirror flipping and imgo.Vertical for vertical mirror flipping.

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")
}
Copy link
On this page
Parameters
Return Values
Examples