From cfcbeb4bb270d0135900a8ee99dab8c90f291cb5 Mon Sep 17 00:00:00 2001 From: jst Date: Mon, 10 Dec 2012 21:26:34 +0100 Subject: [PATCH] Use replicated border in genericConverter --- converter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),