Fix results of Nearest Neighbour filter
ClosedPublic

Authored by tymond on Apr 4 2019, 9:28 AM.

Details

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

Diff Detail

Repository
R37 Krita
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
tymond created this revision.Apr 4 2019, 9:28 AM
Restricted Application added a reviewer: Krita. · View Herald TranscriptApr 4 2019, 9:28 AM
Restricted Application added a project: Krita. · View Herald Transcript
tymond requested review of this revision.Apr 4 2019, 9:28 AM
tymond updated this revision to Diff 55406.Apr 4 2019, 9:55 AM

Removed last parts of debug.

dkazakov accepted this revision.Apr 4 2019, 10:23 AM

The patch looks and works fine, please push! :)

This revision is now accepted and ready to land.Apr 4 2019, 10:23 AM
This revision was automatically updated to reflect the committed changes.