diff --git a/converter.go b/converter.go index bdc8185..9d30c1b 100644 --- a/converter.go +++ b/converter.go @@ -50,7 +50,7 @@ func replicateBorder(x, y int, rect image.Rectangle) (xx, yy int) { } func (c *genericConverter) at(x, y int) colorArray { - r, g, b, a := c.src.At(x, y).RGBA() + r, g, b, a := c.src.At(replicateBorder(x, y, c.src.Bounds())).RGBA() return colorArray{ float32(r), float32(g),