On Wed Nov 15 15:40:49 2023 +0000, Bartosz Kosiorek wrote:
I think yes. According to documentation:
Consider the pixel in the upper-left corner of an image with address
(0, 0). With PixelOffsetModeNone, the pixel covers the area between –0.5 and 0.5 in both the x and y directions; that is, the pixel center is at (0, 0). With PixelOffsetModeHalf, the pixel covers the area between 0 and 1 in both the x and y directions; that is, the pixel center is at (0.5, 0.5). https://learn.microsoft.com/en-us/windows/win32/api/gdiplusenums/ne-gdipluse...
Yes, it does. In the case of actual interpolation, it's more obvious, but for nearest neighbor something still has to do this work to properly map the float coordinates to integers.