diff options
Diffstat (limited to 'libgo/go/image/names.go')
-rw-r--r-- | libgo/go/image/names.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/image/names.go b/libgo/go/image/names.go index 8595a35..17b0658 100644 --- a/libgo/go/image/names.go +++ b/libgo/go/image/names.go @@ -41,6 +41,11 @@ func (c *Uniform) Bounds() Rectangle { return Rectangle{Point{-1e9, -1e9}, Point func (c *Uniform) At(x, y int) color.Color { return c.C } +func (c *Uniform) RGBA64At(x, y int) color.RGBA64 { + r, g, b, a := c.C.RGBA() + return color.RGBA64{uint16(r), uint16(g), uint16(b), uint16(a)} +} + // Opaque scans the entire image and reports whether it is fully opaque. func (c *Uniform) Opaque() bool { _, _, _, a := c.C.RGBA() |