LoadFromImgo

Load an image from an instance of *imgo.Image . It is recommended to use the Load method to load an image.

Parameters

Parameter
Type
Description

i

*imgo.Image

The instance of *imgo.Image .

Return Values

The instance of *imgo.Image .

Examples

package main

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

func main() {
    img := imgo.Load("gopher.png")
    imgo.LoadFromImgo(img).
        Save("out.png")
}

Last updated