LoadFromImage
Last updated
Last updated
Load an image from an instance of image.Image
. It is recommended to use the Load method to load an image.
img
image.Image
The instance of the types that implement the image.Image interface
The instance of *imgo.Image
.
package main
import (
"github.com/fishtailstudio/imgo"
"image/png"
"os"
)
func main() {
file, err := os.Open("gopher.png")