Use replicated border in genericConverter
This commit is contained in:
parent
dc1fcd1d24
commit
cfcbeb4bb2
|
@ -50,7 +50,7 @@ func replicateBorder(x, y int, rect image.Rectangle) (xx, yy int) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *genericConverter) at(x, y int) colorArray {
|
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{
|
return colorArray{
|
||||||
float32(r),
|
float32(r),
|
||||||
float32(g),
|
float32(g),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user