Go语言学习之image、image/color、image/png、image/jpeg包(the way to go)
生命不止,继续 go go go !!!
golang同样为我们提供了很多关于图片处理的标准库,这里与大家一起学习分享。
image package
作用:
Package image implements a basic 2-D image library.
image包实现了一个基本的2D图像库.
方法:
func NewNRGBA
func NewNRGBA(r Rectangle) *NRGBA
NewNRGBA returns a new NRGBA image with the given bounds.
什么是NRGBA?
NRGBA is an in-memory image whose At method returns color.NRGBA values.
type NRGBA struct {
Pix []uint8
Stride int
Rect Rectangle
}
func (*NRGBA) Set
还没有评论,来说两句吧...