Use replicated border in genericConverter

This commit is contained in:
jst 2012-12-10 21:26:34 +01:00
parent dc1fcd1d24
commit cfcbeb4bb2
1 changed files with 1 additions and 1 deletions

View File

@ -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),