Ver Fonte

Use replicated border in genericConverter

jst há 13 anos atrás
pai
commit
cfcbeb4bb2
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      converter.go

+ 1 - 1
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),