go-tour/images.go

13 lines
178 B
Go
Raw Normal View History

2020-02-11 01:56:18 +00:00
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())
}