ToImage
Return the instance of image.Image of the image.

Parameters

None

Return Values

The instance of image.Image.

Examples

package main
​
import (
"fmt"
"github.com/fishtailstudio/imgo"
)
​
func main() {
img := imgo.Load("gopher.png").ToImage()
fmt.Println(img.Bounds())
}
Output:
(0,0)-(189,256)
Copy link
On this page
Parameters
Return Values
Examples