next bookmark url
http://127.0.0.1:3999/methods/24
doc
https://golang.org/pkg/image/#Image
https://pkg.go.dev/image#Image
https://pkg.go.dev/image/color
Image interface
package image type Image interface { ColorModel() color.Model Bounds() Rectangle At(x, y int) color.Color }
image demo
package main import ( "fmt" "image" ) func main() { m := image.NewRGBA(image.Rect(0, 0, 100, 100)) fmt.Println(m.Bounds()) fmt.Println(m.At(0, 0).RGBA()) }