ToImage
返回当前图像的 image.Image
类型的实例。
参数
无
返回值
image.Image
类型的实例。
例子
package main
import (
"fmt"
"github.com/fishtailstudio/imgo"
)
func main() {
img := imgo.Load("gopher.png").ToImage()
fmt.Println(img.Bounds())
}
输出:
(0,0)-(189,256)
最后更新于