Fix results of Nearest Neighbour filter
Summary:
Before this patch the NN filter would create intermediate colors
in some circumstances, especially when scaling with the scale <50%.
Now the filter will choose one of the colors around instead of
blending colors around to get the result color.
BUG:401788
Test Plan:
- added tests to test the behaviour of NN filter
- testing on the image: http://www.bealecorner.org/red/test-patterns/star-chart-bars144-600dpi.png
- testing on the image from bug report
Reviewers: dkazakov, Krita
Reviewed By: dkazakov, Krita
Tags: Krita
Differential Revision: https://phabricator.kde.org/D20246