这个事例使用了一个简单的画图,并将其写入到http的包里面,只需几步, 打开http://localhost:999/即可看到, 其它还在研究当中, 研究出来自然跟大家分享.
package main
import (
"image"
"image/color"
"image/draw"
"image/png"
"net/http"
)
var (
blue color.Color = color.RGBA{0, 0, 255, 255}
picwidth int = 640
picheight int = 480
)
// 大家可以查看这个网址看看这个image包的使用方法 http://golang.org/doc/articles/image_draw.html
func main() {