Nikolay Sivov (@nsivov) commented about dlls/gdiplus/graphics.c:
} case InterpolationModeNearestNeighbor: {
FLOAT pixel_offset;
/* Using floorf from ucrtbase.dll is extremaly slow compared to own implementation (casting to INT) */
I meant, does resample_bitmap_pixel() need to use GpPointF input at all.