mirror of
https://github.com/golang/go
synced 2024-11-19 21:04:43 -07:00
image: fix build
accidentally deleted one method TBR=rsc R=rsc CC=golang-dev https://golang.org/cl/4438090
This commit is contained in:
parent
2398a74bd8
commit
a2354cd4e4
@ -280,6 +280,13 @@ func (p *Alpha) At(x, y int) Color {
|
||||
return p.Pix[y*p.Stride+x]
|
||||
}
|
||||
|
||||
func (p *Alpha) Set(x, y int, c AlphaColor) {
|
||||
if !p.Rect.Contains(Point{x, y}) {
|
||||
return
|
||||
}
|
||||
p.Pix[y*p.Stride+x] = toAlphaColor(c).(AlphaColor)
|
||||
}
|
||||
|
||||
func (p *Alpha) SetAlpha(x, y int, c AlphaColor) {
|
||||
if !p.Rect.Contains(Point{x, y}) {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user