Resizing an image with image.Bounds().Min not being (0,0) caused undesired effects.
This small change will add Min.Y as offset when calling filter.Interpolate()
The second round of resize has the xoffset, yoffset set to 0, 0 because it is them operating on the tempImg that has tempImg.Bounds().Min being (0,0).
The bug was noticed when doing a resize.Resize() after using rgbaimage.SubImage()
Before fix:
After fix: (with a slightly different SubImage Rectangle, but you get the point)
Thanks for finding this one. Seems to have sneaked in during a large change and I haven't checked for working SubImage after that. I'll write a unit test to cover that case.
Resizing an image with
image.Bounds().Min
not being (0,0) caused undesired effects. This small change will add Min.Y as offset when calling filter.Interpolate()The second round of resize has the xoffset, yoffset set to 0, 0 because it is them operating on the tempImg that has
tempImg.Bounds().Min
being (0,0).The bug was noticed when doing a
resize.Resize()
after usingrgbaimage.SubImage()
Before fix:
After fix: (with a slightly different SubImage Rectangle, but you get the point)