mirror of https://github.com/perkeep/perkeep.git
images/resize: remove commented-out code.
Accidentally snuck in as part of the giant CL https://camlistore.org/r/1556 Change-Id: I379c613360c4f4c7ca9f3cc67a3b0a570308fa51
This commit is contained in:
parent
4a53f4d687
commit
cdde1c8803
|
@ -355,8 +355,6 @@ func Resample(m image.Image, r image.Rectangle, w, h int) image.Image {
|
|||
for x := 0; x < w; x++ {
|
||||
xSrc := int(float64(r.Min.X) + float64(x)*xStep)
|
||||
ySrc := int(float64(r.Min.Y) + float64(y)*yStep)
|
||||
//xSrc = r.Min.X + x*r.Dx()/w
|
||||
//ySrc = r.Min.Y + y*r.Dy()/h
|
||||
r, g, b, a := m.At(xSrc, ySrc).RGBA()
|
||||
img.SetRGBA(x, y, color.RGBA{
|
||||
R: uint8(r >> 8),
|
||||
|
|
Loading…
Reference in New Issue