Browse Source

Fix poor quality resampling.

Former-commit-id: 7c2cc88d5c9d1aa4743d2e722221b1f1918a003d
Former-commit-id: ca98fb8d2188645f32cb858487da272927bac425
Former-commit-id: 6d015b5e054a3b2065c3b998e63a5f7c1603217a
af/merge-core
James Jackson-South 11 years ago
parent
commit
5fd8f011bb
  1. 2
      src/ImageProcessor/Samplers/Resampler.cs

2
src/ImageProcessor/Samplers/Resampler.cs

@ -324,7 +324,7 @@ namespace ImageProcessor.Samplers
float du = sourceSize / (float)destinationSize; float du = sourceSize / (float)destinationSize;
float scale = du; float scale = du;
if (scale > 1) if (scale < 1)
{ {
scale = 1; scale = 1;
} }

Loading…
Cancel
Save