标签:orm pack org image int ima ack port Golan
package main
import (
"golang.org/x/tour/pic"
"image/color"
"image"
)
type Image struct{}
func (i Image) ColorModel() color.Model {
return color.RGBAModel
}
func (i Image) Bounds() image.Rectangle {
return image.Rect(0, 0, 200, 100)
}
func (i Image) At(x, y int) color.Color {
return color.RGBA{1, 255, 255, 255}
}
func main() {
m := Image{}
pic.ShowImage(m)
}
标签:orm pack org image int ima ack port Golan
原文地址:https://www.cnblogs.com/t0000/p/13344229.html