Width

返回当前图像的宽度。

参数

返回值

int

例子

package main

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

func main() {
    img := imgo.Load("gopher.png")
    fmt.Println(img.Width())
}

输出:

189

最后更新于