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