5
$\begingroup$

I was about to scale this image down to 64x64 pixels:

this

The result I got on MS Paint on Windows 7 was surprisingly good (i.e. crisp edges):

ms paint rescaled , whereas scaling it with GIMP resulted in cubic GIMP for cubic and lanczos3 GIMP for Lanczos3 interpolation, both of which look significantly worse to me. Linear and nearest-neighbor was obviously much worse still.

I have also written a small program to check all of the interpolation modes available in the System.Drawing.Drawing2D.InterpolationMode enumeration, to no avail. Unfortunately, most web search results on the topic of interpolation in MS Paint are still from the days before Vista, when nearest neighbor was the only option.

Does anyone know which interpolation algorithm the Windows 7 version of MS Paint uses?

$\endgroup$
2

1 Answer 1

0
$\begingroup$

I'd say it's InterpolationMode.NearestNeighbor plus a minimum width/height threshold below you cannot scale down.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.