MainColor
参数
返回值
例子
package main
import (
"fmt"
"github.com/fishtailstudio/imgo"
)
func main() {
r, g, b, a := imgo.Load("gopher.png").
MainColor().
RGBA()
fmt.Println(r, g, b, a)
}最后更新于
package main
import (
"fmt"
"github.com/fishtailstudio/imgo"
)
func main() {
r, g, b, a := imgo.Load("gopher.png").
MainColor().
RGBA()
fmt.Println(r, g, b, a)
}最后更新于